feat: Support SigV4 for analytics Prometheus storage#5388
Conversation
Add AWS SigV4 signing support for the Prometheus analytics storage backend, enabling Flipt to work with AWS Managed Prometheus (AMP) for analytics. Changes: - Add PrometheusSigV4Config with fields for region, access key, secret key, profile, role ARN, external ID, FIPS STS endpoint, and service name - Integrate prometheus/sigv4 RoundTripper into the Prometheus client - Add configuration and client tests for SigV4 support Closes #5387
|
👋 Hi @markphelps! Thanks for your contribution to this project. It looks like one or more of your commits are missing a DCO (Developer Certificate of Origin) sign-off. The DCO is a simple way for you to certify that you have the right to submit this code under the project's license. How to fix this: # For future commits, use the -s flag
git commit -s -m "Your commit message"
# To sign off on existing commits in this PR
git rebase HEAD~$(git rev-list --count origin/v2..HEAD) --signoff
git push --force-with-leaseThe 📋 View the failing DCO check for more details For more information about the DCO, visit: https://developercertificate.org/ |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v2 #5388 +/- ##
==========================================
+ Coverage 60.54% 60.62% +0.07%
==========================================
Files 138 138
Lines 13672 13689 +17
==========================================
+ Hits 8278 8299 +21
+ Misses 4690 4686 -4
Partials 704 704
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Roman Dmytrenko <[email protected]>
Signed-off-by: Roman Dmytrenko <[email protected]>
Summary
Adds SigV4 authentication support for Flipt's analytics Prometheus storage backend (issue #5387).
Changes
PrometheusSigV4Configstruct with AWS SigV4 configuration fieldsConfiguration Example
Testing
All existing tests pass. Added new tests for SigV4 configuration and signing.
closes #5387