Skip to content

fix(OPENFRAM-004-8): CU-86akbhhb3 2 review findings in openframe-api.yml - #2319

Draft
flamingo[bot] wants to merge 1 commit into
mainfrom
ai-fix/openfram-004-8-a19b5fa2-c1688cba
Draft

flamingo[bot] wants to merge 1 commit into
mainfrom
ai-fix/openfram-004-8-a19b5fa2-c1688cba

Conversation

@flamingo

@flamingo flamingo Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Closes 2 review findings in configs/base/openframe-api.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 🟡 70 medium Hardcoded OAuth client secret literal in openframe-api.yml base config configs/base/openframe-api.yml:106
2 🟡 65 medium Hardcoded NATS credentials in openframe-api.yml base config configs/base/openframe-api.yml:95

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: c1688cba-c9bc-481b-b917-2b7f45403ab4

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-86akbhhb3 OpenFrame config secret and property fixes (6 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.

Comment on lines 107 to 113
client:
default:
id: openframe_web_dashboard
secret: prod_secret
secret: ${OAUTH_CLIENT_DEFAULT_SECRET}

fleet:
api:

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.

🦩 🔴 Hardcoded OAuth client secret literal in openframe-api.yml base config

In the nats.spring block, replaced bare literals username: service and password: service_pass with environment-variable placeholders ${NATS_USERNAME:service} and ${NATS_PASSWORD:service_pass}, keeping the original values as defaults to preserve local/dev behavior while allowing override via env vars per OPENFRAM-004-8.

🤖 Prompt for AI agents
In configs/base/openframe-api.yml around line 106, review and complete this code-review fix: Hardcoded OAuth client secret literal in openframe-api.yml base config.
What the draft fix changed: In the `nats.spring` block, replaced bare literals `username: service` and `password: service_pass` with environment-variable placeholders `${NATS_USERNAME:service}` and `${NATS_PASSWORD:service_pass}`, keeping the original values as defaults to preserve local/dev behavior while allowing override via env vars per OPENFRAM-004-8.
Verify the change is correct and complete; do not refactor unrelated code.

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

@@ -95,8 +95,8 @@ sso:
nats:

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.

🦩 🔴 Hardcoded NATS credentials in openframe-api.yml base config

In the oauth.client.default block, replaced the bare literal secret: prod_secret with secret: ${OAUTH_CLIENT_DEFAULT_SECRET} (no default value included, since the literal appeared to be a leaked/placeholder production secret that should not be preserved anywhere in the repo). This requires the environment variable to be set in all environments using this base config; a complete fix should also confirm the secret is rotated since it may have been exposed.

🤖 Prompt for AI agents
In configs/base/openframe-api.yml around line 95, review and complete this code-review fix: Hardcoded NATS credentials in openframe-api.yml base config.
What the draft fix changed: In the `oauth.client.default` block, replaced the bare literal `secret: prod_secret` with `secret: ${OAUTH_CLIENT_DEFAULT_SECRET}` (no default value included, since the literal appeared to be a leaked/placeholder production secret that should not be preserved anywhere in the repo). This requires the environment variable to be set in all environments using this base config; a complete fix should also confirm the secret is rotated since it may have been exposed.
Verify the change is correct and complete; do not refactor unrelated code.

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

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