Skip to content

test: generate TLS test keys instead of committing them - #1424

Merged
scttbnsn merged 4 commits into
dev/v1.8from
test/v1.8-generate-tls-fixtures
Oct 20, 2026
Merged

scttbnsn merged 4 commits into
dev/v1.8from
test/v1.8-generate-tls-fixtures

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

The migration and QA proxy stacks now get their self-signed key and cert from test/generate-tls-fixtures.sh (gitignored output) instead of committed copies, which had also long since expired. The unreferenced server.key/crt and the mosquitto minica/dev certs are deleted, and the gitleaks entries for the removed keys stay, because the Secrets scan reads history, which still holds them.

✨ Added

  • Add test/generate-tls-fixtures.sh.
  • Generate migration and QA proxy self-signed TLS fixtures.
  • Add tests for certificate names, key matching, and validity.
  • Ignore generated fixture files.

🔧 Changed

  • Document fixture generation before Compose use.
  • Update Mosquitto TLS guidance.

🗑️ Removed

  • Remove committed migration and server TLS files.

🔒 Security

  • Set generated private keys to mode 600.

  • Keep the Gitleaks entries for the removed keys, since history still holds them.

  • Confirm CI runs test/generate-tls-fixtures.test.sh.

  • Confirm each Compose workflow generates fixtures before startup.

  • Test execution status is unavailable.

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Error Error Oct 20, 2026 12:11am UTC
drydockdemo-website Ready Ready Preview Oct 20, 2026 12:11am UTC

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 28b5dfc6-d61a-40f5-be8b-70f5a1fe0afd
📥 Commits

Reviewing files that changed from the base of the PR and between b6a05f5 and ed54328.

📒 Files selected for processing: 2
  • .github/tests/ci-verify-workflow.test.ts
  • .gitleaksignore

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 921a7cb5-9043-4489-a24d-24883a87df3b
📥 Commits

Reviewing files that changed from the base of the PR and between 84d1745 and b6a05f5.

⛔ Files ignored due to path filters: 6
  • test/mosquitto/config/minica-key.pem is excluded by !**/*.pem
  • test/mosquitto/config/minica.pem is excluded by !**/*.pem
  • test/mosquitto/config/mosquitto.dev/cert.pem is excluded by !**/*.pem
  • test/mosquitto/config/mosquitto.dev/key.pem is excluded by !**/*.pem
  • test/qa-proxy-certs/cert.pem is excluded by !**/*.pem
  • test/qa-proxy-certs/key.pem is excluded by !**/*.pem
📒 Files selected for processing: 12
  • .gitignore
  • .gitleaksignore
  • test/generate-tls-fixtures.sh
  • test/generate-tls-fixtures.test.sh
  • test/migration-test-compose.yml
  • test/migration/tls.crt
  • test/migration/tls.key
  • test/mosquitto/config/mosquitto.conf
  • test/qa-proxy-compose.yml
  • test/qa-traefik-compose.yml
  • test/server.crt
  • test/server.key
💤 Files with no reviewable changes: 5
  • test/server.crt
  • test/migration/tls.key
  • test/server.key
  • test/migration/tls.crt
  • .gitleaksignore

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

📝 Walkthrough

The changes add a script that generates temporary self-signed TLS fixtures and a test that validates the generated files. They remove committed TLS certificates and private keys, update ignore rules, remove obsolete secret-scanner entries, and add fixture-generation guidance to test configuration comments.

Priority: ⬇️ Low

Change: Feature

Merge Risk: ⚪ Minimal · up to b6a05

This change replaces committed test TLS keys with generated throwaway fixtures. Developers must run the generation script before using the migration and QA proxy stacks. No merge-blocking risk was identified.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch had an error being deployed

1 failed and 1 active deployments
Preview – drydock-website — ed543283 Deployed Oct 20, 2026 by vercel[bot]
Preview – drydockdemo-website — ed543283 Deployed Oct 20, 2026 by vercel[bot]
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