-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 environment_credentials option confusing #2784
Comments
Agreed that it is confusing, I have seen a few example configs where people have put environment variables and stuff into it. If we can change the docs to more explicitly say it needs to literally be
You'll have to use |
Signed-off-by: Anders Eknert <anders.eknert@bisnode.com>
Thanks for the pointer on using If we keep it as it is, I agree that we should at least update the docs. |
What if the parser for |
Each config object? This is the only one I'm aware of where an empty object masquerades as a boolean true. To me it makes sense that if an option is boolean in nature, it should also be boolean in config. The current Custom marshaling isn't strictly necessary either - that was only an attempt (poor one perhaps) to have the config option changed to be a boolean without breaking existing configurations. |
Having default values for |
We run into this with custom plugins and possibly elsewhere. @patrick-east added a section in the docs because it was common enough. I think that making the default |
@tsandall @anderseknert Are we sure setting it to null works? The version of OPA is 0.32.0 |
I am sure that it used to work, yes. However, trying it now with the example you provided I get the same error. Moving the same options into a config file works, so this is either a regression, or the option truly is confusing :) I'll file a new bug ticket. Thanks for reporting! |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. |
I don't think there's much to be done here, so will close this. If others find this confusing they'll hopefully be able to find this issue. |
As documented the option
expects a value of type "
{}
" without any further explanation of what it's meant to contain. From looking at the code it seems this option is used as a boolean, where the presence of an object activates the environment credentials option, so making the option expect a boolean would make sense IMO. Another problem with the current option is that it only works when provided in a config file - as a command line option this breaks:Expected Behavior
services[_].credentials.s3_signing.environment_credentials
is enabled iftrue
is providedActual Behavior
services[_].credentials.s3_signing.environment_credentials
is enabled if{}
is providedThe text was updated successfully, but these errors were encountered: