Registry markers cause AWS SDK ProfileFileReader warnings due to invalid config format #917
Unanswered
adrian-arapiles
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The Profile Registry feature uses section markers
[granted_registry_start <name>]and[granted_registry_end <name>]in the AWS config file to manage synced profiles. These markers violate the AWS config file format specification and cause repetitive warnings from AWS SDKs.Steps to Reproduce
granted registry add <repo>granted registry syncExpected Behavior
No warnings should be emitted when applications read the AWS config file managed by Granted.
Actual Behavior
AWS SDKs emit warnings because the registry markers are not valid profile sections. Valid AWS config sections must be either
[default]or[profile <name>].Example Warnings (Java AWS SDK v2):
WARN s.a.a.p.internal.ProfileFileReader : Ignoring profile 'granted_registry_start XXXX' on line 4 because it did not start with 'profile ' and it was not 'default'.These warnings appear multiple times during application startup as the SDK parses the config file repeatedly.
Current Config File Format:
I don't see any way to achieve that, but a possible approach to that could be:
Proposed solution
Open to any discussion or approach to avoid these warnings.
Thanks in advance 😄 .
Beta Was this translation helpful? Give feedback.
All reactions