Skip to content

fix(ci): reject placeholder secret values in validation step#3097

Merged
crivetimihai merged 1 commit intomainfrom
fix-ce-secret-sync
Feb 21, 2026
Merged

fix(ci): reject placeholder secret values in validation step#3097
crivetimihai merged 1 commit intomainfrom
fix-ce-secret-sync

Conversation

@crivetimihai
Copy link
Copy Markdown
Member

Summary

  • Hardens the validation step to reject placeholder secret values (-, changeme, CHANGE_ME) early, before building/pushing the Docker image (~3 min savings)
  • The previous validation only checked for empty values, letting - placeholders through
  • Also updated all 5 CF_* secrets in the production environment to strong random values (they were set to -)

Root cause of #3096 failure

The GitHub Secrets in the production environment were set to - (single dash) as placeholders. The secret sync correctly wrote - to Code Engine, and the verification correctly caught it. Proof: every - in the CI log was masked as *** (e.g., us***south, ***name), which only happens when a secret value is literally -.

Closes #3096

The validation step only checked for empty secrets, allowing
placeholder values like '-' to pass. This caused the workflow to
build and push the Docker image (~3 min) before failing at the
verification step. Now rejects '-', 'changeme', and 'CHANGE_ME'
early with a helpful error pointing to GitHub Settings.

Also sets all 5 CF_* secrets in the production environment to
strong random values (they were previously set to '-').

Closes #3096

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai merged commit 62b0faf into main Feb 21, 2026
42 checks passed
@crivetimihai crivetimihai deleted the fix-ce-secret-sync branch February 21, 2026 20:07
vishu-bh pushed a commit that referenced this pull request Feb 24, 2026
The validation step only checked for empty secrets, allowing
placeholder values like '-' to pass. This caused the workflow to
build and push the Docker image (~3 min) before failing at the
verification step. Now rejects '-', 'changeme', and 'CHANGE_ME'
early with a helpful error pointing to GitHub Settings.

Also sets all 5 CF_* secrets in the production environment to
strong random values (they were previously set to '-').

Closes #3096

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
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