-
Notifications
You must be signed in to change notification settings - Fork 101
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
Read emulatorEnabled
value for storage emulators from mounted secret instead of environment variables
#819
Read emulatorEnabled
value for storage emulators from mounted secret instead of environment variables
#819
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shreyas-s-rao for the PR.
I've tested with fakegcs and it works as expected there. But when testing with real GCS, it's not working, checking that I found the below issue. Can you PTAL.
New addition as part of 3d32db9:
|
3d32db9
to
be75e89
Compare
be75e89
to
e9ab312
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shreyas-s-rao for this PR!
Everything looks good, just one tiny nit from me for the sake of correctness.
@shreyas-s-rao You need rebase this pull request with latest master branch. Please check. |
…t instead of environment variables
…ig.IsEmulatorEnabled`
…error if emulator is enabled but `storageAPIEndpoint`/`domain` is not provided
4205657
to
ace57cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @shreyas-s-rao.
/area compliance security
/kind task
What this PR does / why we need it:
Read
emulatorEnabled
value for storage emulators from mounted secret instead of environment variables, to avoid mounting and exposing data from secrets as environment variables, even if they are non-credential fields.Changes in this PR:
emulatorEnabled
fields for providers Azure ABS and Google GCS from mounted secret files/JSON, instead of from environment variablesGOOGLE_EMULATOR_ENABLED
AZURE_EMULATOR_ENABLED
IsEmulatorEnabled
toSnapstoreConfig
struct, to allow programatic downstream users of etcdbr code to set emulator enablement when creatingSnapstoreConfig
. For instance, etcd-druid can set this value to true when running local e2e tests against Azurite emulator.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
/invite @anveshreddy18 @renormalize
Release note: