Skip to content

fix(mesh-values): high-entropy JWT secrets for the #1829 startup gate#170

Merged
brandonrc merged 2 commits into
mainfrom
fix/mesh-jwt-secret-entropy-1829
Jun 16, 2026
Merged

fix(mesh-values): high-entropy JWT secrets for the #1829 startup gate#170
brandonrc merged 2 commits into
mainfrom
fix/mesh-jwt-secret-entropy-1829

Conversation

@brandonrc

Copy link
Copy Markdown
Contributor

Problem

The backend (artifact-keeper#1829) rejects low-entropy JWT secrets at startup in all environments (needs ≥32 chars and ≥16 distinct chars). The mesh overlays use mesh-test-jwt-main / mesh-test-jwt-peer (18 chars, 10–11 distinct), so the mesh backends crash-loop with JWT_SECRET is unsuitable: low entropy and the release-gate mesh-tests job fails.

Fix

Replace both with high-entropy, clearly non-production test secrets (distinct main vs peer preserved). Companion fix for the single-instance test overlays is in artifact-keeper-test#224.

…#1829 startup gate

The backend (artifact-keeper#1829) rejects low-entropy JWT secrets at startup
(>=32 chars, >=16 distinct chars). The mesh overlays used 'mesh-test-jwt-main'
and 'mesh-test-jwt-peer' (18 chars, 10-11 distinct), so the mesh backends
crash-loop with 'JWT_SECRET is unsuitable: low entropy' and the release-gate
mesh-tests job fails. Replace with high-entropy non-production test secrets
(distinct main vs peer preserved).
@brandonrc brandonrc requested a review from a team as a code owner June 16, 2026 04:27
@gitguardian

gitguardian Bot commented Jun 16, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 15 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
34021147 Triggered Generic High Entropy Secret be54bb2 charts/artifact-keeper/values-mesh-peer.yaml View secret
34021148 Triggered Generic High Entropy Secret be54bb2 charts/artifact-keeper/values-mesh-main.yaml View secret
34032178 Triggered Generic High Entropy Secret 92a4f5d .github/workflows/helm-ci.yml View secret
34032178 Triggered Generic High Entropy Secret 92a4f5d .github/workflows/helm-ci.yml View secret
34032179 Triggered Generic High Entropy Secret 92a4f5d .github/workflows/helm-ci.yml View secret
34032179 Triggered Generic High Entropy Secret 92a4f5d .github/workflows/helm-ci.yml View secret
34032178 Triggered Generic High Entropy Secret 92a4f5d .github/workflows/helm-ci.yml View secret
34032178 Triggered Generic High Entropy Secret 92a4f5d charts/artifact-keeper/ci/test-values.yaml View secret
34032179 Triggered Generic High Entropy Secret 92a4f5d .github/workflows/helm-ci.yml View secret
29340989 Triggered Generic Password 92a4f5d .github/workflows/helm-ci.yml View secret
34032178 Triggered Generic High Entropy Secret 92a4f5d .github/workflows/helm-ci.yml View secret
29340989 Triggered Generic Password 92a4f5d .github/workflows/helm-ci.yml View secret
34032179 Triggered Generic High Entropy Secret 92a4f5d .github/workflows/helm-ci.yml View secret
29340989 Triggered Generic Password 92a4f5d .github/workflows/helm-ci.yml View secret
29340989 Triggered Generic Password 92a4f5d .github/workflows/helm-ci.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@github-actions

Copy link
Copy Markdown

Missing linked issue

This PR does not reference a tracking issue in its body. Every PR must link to an issue in this repository so we can trace work back to a planned change.

How to fix

  1. Edit the PR description and add a line like Closes #123, Fixes #123, or Resolves #123 referring to an open issue in artifact-keeper/artifact-keeper-iac.
  2. Save the description. This check will re-run automatically.

Accepted keywords (case-insensitive, any tense): close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved.

Policy reference: see the PR template.

Maintainer bypass: apply the no-issue-required label to this PR to skip the check (use sparingly, e.g. for trivial typo fixes or release-tag chores).

The install-test/helm-ci matrix used --set secrets.jwtSecret=ci-test (7 chars)
and ci/test-values.yaml used 'ci-test-jwt-secret' (18 chars), both of which the
backend now rejects at startup (#1829 requires >=32 chars, >=16 distinct). Use a
high-entropy, helm/shell-safe non-production value across helm-ci.yml and
ci/test-values.yaml; bump the meilisearch master key to >=16 bytes while here.
@brandonrc brandonrc merged commit 19fddef into main Jun 16, 2026
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant