Skip to content
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

datasource: add environment variable support #18498

Merged
merged 17 commits into from
Oct 19, 2021

Conversation

anrossi
Copy link
Contributor

@anrossi anrossi commented Oct 7, 2021

Signed-off-by: Anthony Rossi [email protected]

Commit Message: Add support to DataSource to read data from environment variables.
Additional Description:
Risk Level: Low
Testing: Unit test for well-known environment variable, no environment variable, and empty environment variable.
Docs Changes: N/A
Release Notes: config: added environment_variable to the DataSource.
Platform Specific Features: N/A
Fixes #18277

@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
envoyproxy/api-shepherds assignee is @htuch
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #18498 was opened by anrossi.

see: more, trace.

Signed-off-by: Anthony Rossi <[email protected]>
Copy link
Member

@davinci26 davinci26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, overall looks good, small question regarding the error handling

@davinci26
Copy link
Member

rendered docs are at https://storage.googleapis.com/envoy-pr/77eb7d6/docs/version_history/current.html and they look good.

You can find them in Upload Docs to GCS step of the docs CI job

@davinci26 davinci26 self-assigned this Oct 7, 2021
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm api

This is the same validation logic as envoy.extensions.matching.common_inputs.environment_variable.v3 FWIW.

@repokitteh-read-only repokitteh-read-only bot removed the api label Oct 8, 2021
@htuch
Copy link
Member

htuch commented Oct 8, 2021

/assign-from @envoyproxy/first-pass-reviewers

@repokitteh-read-only
Copy link

@envoyproxy/first-pass-reviewers assignee is @rojkov

🐱

Caused by: a #18498 (comment) was created by @htuch.

see: more, trace.

Copy link
Member

@rojkov rojkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Added a couple of comments.

/wait

Copy link
Member

@rojkov rojkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This looks good, needs fixing the format check.

To test it you can run ./tools/code_format/check_format.py fix

davinci26
davinci26 previously approved these changes Oct 11, 2021
Copy link
Member

@davinci26 davinci26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, assuming the CI passes now and the remaining comments are addressed.

@rojkov
Copy link
Member

rojkov commented Oct 12, 2021

/wait

Signed-off-by: Anthony Rossi <[email protected]>
davinci26
davinci26 previously approved these changes Oct 12, 2021
Copy link
Member

@davinci26 davinci26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Copy link
Member

@davinci26 davinci26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Anthony Rossi <[email protected]>
rojkov
rojkov previously approved these changes Oct 15, 2021
Copy link
Member

@rojkov rojkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo two final nits.
/wait

@rojkov
Copy link
Member

rojkov commented Oct 18, 2021

Sorry, you need to merge the main branch again to fix the coverage check.

/wait

@anrossi
Copy link
Contributor Author

anrossi commented Oct 18, 2021

It looks like there's some kind of outage preventing the CI from running on the merged changes.

@davinci26
Copy link
Member

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18498 (comment) was created by @davinci26.

see: more, trace.

@htuch
Copy link
Member

htuch commented Oct 19, 2021

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Check envoy-presubmit didn't fail.

🐱

Caused by: a #18498 (comment) was created by @htuch.

see: more, trace.

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@htuch
Copy link
Member

htuch commented Oct 19, 2021

Known flake on the CodeQL build, will force merge.

@htuch htuch merged commit 5d4a457 into envoyproxy:main Oct 19, 2021
@anrossi anrossi deleted the feature/env-var-datasource branch October 19, 2021 07:03
wrowe added a commit to wrowe/envoy that referenced this pull request Aug 23, 2022
Addresses issue envoyproxy#18498 - likely shows up legacy changes required for c++20

Signed-off-by: William A Rowe Jr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Securely provide password for private key/PFX via Environment Variable
4 participants