-
Notifications
You must be signed in to change notification settings - Fork 18
fix: GitHub app auth env vars #53
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
Merged
+11
−11
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: warestack/watchflow
Length of output: 1648
🏁 Script executed:
Repository: warestack/watchflow
Length of output: 996
🌐 Web query:
Helm --set vs --set-string security best practices for secrets💡 Result:
What’s the difference?
--set: Helm parses types (e.g.,true→bool,123→int).--set-string: Same as--set, but forces the value to be a string, preventing unwanted type coercion (useful for things that look like numbers/bools, IDs with leading zeros, etc.). Helm documents this directly: “to force string values, use--set-string”. [1]Security reality for secrets (best practice)
For secrets,
--setvs--set-stringis mostly a correctness choice, not a meaningful security improvement:helm get values/ access to the release Secret), so passing secrets as values at all increases the blast radius. [3]Recommended approaches (instead of
--set/--set-stringfor secrets)existingSecret,secretName,existingSecretKey, etc.), so the secret value isn’t carried around in Helm values/history.helm-secretsso the repository stores only ciphertext and decryption happens at deploy time. [4]If you still use CLI flags
--set-stringfor any secret that could be mis-parsed (e.g.,007,true,1234) to avoid breaking auth due to type coercion. [1]-f values.yamlover flags for anything sensitive/long-lived, and keep secret files encrypted (SOPS) or out of source control.Sources
[1] Helm
upgradecommand docs (flags--set,--set-string,--set-file, etc.) (helm.sh)[2] Helm “Advanced” topic: release info contains chart contents + values and may include sensitive data; RBAC/Secrets vs ConfigMaps notes (helm.sh)
[3] Google Cloud Community (Apigee Hybrid): sensitive Helm values visible via Helm release Secrets /
helm get values; recommends restricting access (googlecloudcommunity.com)[4] Baeldung: encrypting values with SOPS and using
helm-secretsto deploy without exposing secrets in repo (baeldung.com)[5] GitGuardian Helm install docs: favor Kubernetes Secrets over inline sensitive parameters (docs.gitguardian.com)
Citations:
Change all secret values to use
--set-stringto prevent type coercion.Lines 97–104 pass multiple secrets using
--set, which allows Helm to interpret values as booleans, numbers, or other types. If a secret value resembles a boolean (true,false) or number, Helm may reinterpret it, breaking authentication at deploy time. Use--set-stringwith quoted expansions instead.Proposed fix
🤖 Prompt for AI Agents