Skip to content

Fix masked Netlify OAuth secret validation - #5049

Merged
steve8708 merged 2 commits into
mainfrom
steve8708/changes-8099
Sep 15, 2026
Merged

steve8708 merged 2 commits into
mainfrom
steve8708/changes-8099

Conversation

@steve8708

Copy link
Copy Markdown
Contributor

Netlify masks secret values in getEnvVars responses, so the Beta production guard was rejecting a provisioned relay secret.

Use API metadata for context/secret/runtime-scope validation, then resolve the value through netlify env:get without emitting it. Keep the existing production Google credentials untouched.

@github-actions

github-actions Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Here's a visual recap of what changed:

Visual recap

Open the full interactive recap

builder-io-integration[bot]

This comment was marked as outdated.

@builder-io-integration builder-io-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Builder reviewed your changes — looks good ✅

Review Details

Incremental Code Review Summary

The latest commit addresses the previously reported secret-validation gap. The workflow now pipes the suppressed netlify env:get --json output into a Node resolver that explicitly requires a non-empty AGENT_NATIVE_GOOGLE_OAUTH_RELAY_SECRET; failures from the CLI, invalid JSON, {}, or a missing/empty field propagate through the pipeline and fail the deployment. The metadata validation still avoids relying on Netlify's masked value, and the production Google credential definitions remain untouched.

Two independent incremental reviews found no new actionable issues. The added regression coverage exercises both the empty {} response and a valid resolved secret. The previously reported review comment was verified fixed and resolved before this review.

Risk assessment: Standard deployment/secret-validation risk.

✅ No new high- or medium-severity findings.
✅ Secret values remain suppressed from workflow output.
✅ Workflow test coverage now covers the zero-exit empty response.

🧪 Browser testing: Skipped — PR only modifies backend/config/docs, no UI impact

@github-actions
github-actions Bot temporarily deployed to pr-5049-starter September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-plan September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-clips September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-fw September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-assets September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-forms September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-content September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-dispatch September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-mail September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-calendar September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-design September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-analytics September 15, 2026 11:31 Destroyed
@github-actions
github-actions Bot temporarily deployed to pr-5049-slides September 15, 2026 11:31 Destroyed
@steve8708
steve8708 merged commit 7282f0f into main Sep 15, 2026
84 checks passed
@steve8708
steve8708 deleted the steve8708/changes-8099 branch September 15, 2026 11:47
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.

1 participant