Skip to content

fix(OPENFRAM-004-8): CU-86akdypzw 2 review findings in openframe-authorization-server.yml - #2345

Draft
flamingo[bot] wants to merge 1 commit into
mainfrom
ai-fix/openfram-004-8-55d0867a-16dc4bdf
Draft

flamingo[bot] wants to merge 1 commit into
mainfrom
ai-fix/openfram-004-8-55d0867a-16dc4bdf

Conversation

@flamingo

@flamingo flamingo Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Closes 2 review findings in configs/base/openframe-authorization-server.yml.

Draft — this is a starting point, not a finished change. The fix required judgment, so read it before trusting it.

# Fix confidence Finding Location
1 🟢 90 high Symmetric encryption password/salt in authorization-server config default to hardcoded literal fallback values configs/base/openframe-authorization-server.yml:86
2 🟡 85 medium ENCRYPTION_PASSWORD/ENCRYPTION_SALT defaults are secrets, not safe local-dev values configs/base/openframe-authorization-server.yml:86

What changed — and what was deliberately left — is explained per finding as inline review comments on the lines each finding touched.


Run: https://product-hub.flamingo.so/admin/code-review
Run id: 16dc4bdf-608c-4c65-84b9-63df756e4657

Merging this PR is recorded as acceptance of the rule that produced it;
closing it unmerged is recorded as rejection. Both feed rule health, so
closing a wrong suggestion is useful rather than merely tidy.

ClickUp task: CU-86akdypzw OpenFrame Kubernetes manifest hardening secondary (12 PRs)

@flamingo flamingo Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 What this fix changed, finding by finding

2 finding(s) fixed in this draft — 2 explained inline on the diff.

@@ -84,10 +84,11 @@ security:
expiration-seconds: 604800

encryption:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 🔴 Symmetric encryption password/salt in authorization-server config default to hardcoded literal fallback values

Replaced the hardcoded literal fallback kdCJxik7VWRlG5L8jKHBeJQK5unssi7u1uHOd01b75ilr8n for ENCRYPTION_PASSWORD with an empty default (${ENCRYPTION_PASSWORD:}) in the security.encryption.password key, removing the baked-in secret material from source control as required by OPENFRAM-004-8.

🤖 Prompt for AI agents
In configs/base/openframe-authorization-server.yml around line 86, review and complete this code-review fix: Symmetric encryption password/salt in authorization-server config default to hardcoded literal fallback values.
What the draft fix changed: Replaced the hardcoded literal fallback `kdCJxik7VWRlG5L8jKHBeJQK5unssi7u1uHOd01b75ilr8n` for `ENCRYPTION_PASSWORD` with an empty default (`${ENCRYPTION_PASSWORD:}`) in the `security.encryption.password` key, removing the baked-in secret material from source control as required by OPENFRAM-004-8.
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟢 90 high — react 👍/👎 to teach the reviewer

@@ -84,10 +84,11 @@ security:
expiration-seconds: 604800

encryption:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 🟠 ENCRYPTION_PASSWORD/ENCRYPTION_SALT defaults are secrets, not safe local-dev values

Replaced the hardcoded literal fallback 74f62c51327175b05abe1ad78030565c for ENCRYPTION_SALT with an empty default (${ENCRYPTION_SALT:}) in the security.encryption.salt key, so no reusable real cryptographic default is present in this shared base config; deployments must now supply both env vars explicitly (a startup failure/validation on empty values would need to be enforced elsewhere in the app, which is outside this config file's scope).

🤖 Prompt for AI agents
In configs/base/openframe-authorization-server.yml around line 86, review and complete this code-review fix: ENCRYPTION_PASSWORD/ENCRYPTION_SALT defaults are secrets, not safe local-dev values.
What the draft fix changed: Replaced the hardcoded literal fallback `74f62c51327175b05abe1ad78030565c` for `ENCRYPTION_SALT` with an empty default (`${ENCRYPTION_SALT:}`) in the `security.encryption.salt` key, so no reusable real cryptographic default is present in this shared base config; deployments must now supply both env vars explicitly (a startup failure/validation on empty values would need to be enforced elsewhere in the app, which is outside this config file's scope).
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟡 85 medium — react 👍/👎 to teach the reviewer

@flamingo flamingo Bot changed the title fix(OPENFRAM-004-8): 2 review findings in openframe-authorization-server.yml fix(OPENFRAM-004-8): CU-86akdypzw 2 review findings in openframe-authorization-server.yml Sep 14, 2026
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.

0 participants