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

Validate environment variables #1865

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Conversation

ashley-cui
Copy link
Contributor

Validate env var keys with regex. Remove Required asterisk for value. This might sound weird but Podman and shells in general allow setting env vars without values.

Fixes: #1622

Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

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

Looks good, this is likely to cause a lot of retries to get green due to #1836

test/check-application Show resolved Hide resolved
jelly
jelly previously approved these changes Oct 7, 2024
@martinpitt
Copy link
Member

martinpitt commented Oct 12, 2024

Whoops, this slipped through the cracks.. This needs a pixel update due to the dropped "isRequired".

https://cockpit-logs.us-east-1.linodeobjects.com/pull-1865-00c54cd3-20241012-061114-fedora-40/log.html

Validate env var keys with regex. Remove Required asterisk for value.
This might sound weird but Podman and shells in general allow setting
env vars without values.
@martinpitt martinpitt merged commit 486e316 into cockpit-project:main Oct 13, 2024
33 checks passed
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.

Environment variable validation
3 participants