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

feat: add support for forbidding environment variables in gitops files #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yannrouillard
Copy link
Contributor

@yannrouillard yannrouillard commented Sep 16, 2024

This new check is used first to ensure that no one override by mistake environment variables set for easy Kafka configuration and that is required to have the permissions working.

It can be enabled by adding:

  additionalChecks: ["forbiddenEnvironmentVariables"]

in the schema definition.

This new check can be enabled by adding:
```
  additionalChecks: ["forbiddenEnvironmentVariables"]
```
in the schema definition.
@yannrouillard yannrouillard force-pushed the feat/add-support-for-forbidding-env-variables branch from 27cfd71 to e506f9d Compare September 16, 2024 21:04
FORBIDDEN_ENVIRONMENT_VARIABLES = {
"KAFKA_APPLICATION_ID": """KAFKA_APPLICATION_ID is automatically set in your container and should not be overridden.
More info at https://kpler.atlassian.net/l/cp/jb4uJQs3#Use-connection-information-in-environment-variables""",
"KAFKA_BOOTSTRAP_SERVERS": """KAFKA_BOOSTRAP_SERVERS is automatically set in your container and should not be overridden.

Choose a reason for hiding this comment

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

@yannrouillard there is a typo BOOSTRAP

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.

2 participants