Skip to content

fix(k8s,restore,docker): harden pod security contexts, add PDBs, clarify CONTRACT_STATE_FILE, and link upstream issues - #120

Merged
Busiii-adetiba merged 2 commits into
SynapsVault:mainfrom
yakubuv988-design:yakubuv988-design/fix/k8s-hardening-pdb-restore-and-upstream-links
Oct 19, 2026
Merged

Busiii-adetiba merged 2 commits into
SynapsVault:mainfrom
yakubuv988-design:yakubuv988-design/fix/k8s-hardening-pdb-restore-and-upstream-links

Conversation

@yakubuv988-design

Copy link
Copy Markdown
Contributor

Summary

  • Clarifies CONTRACT_STATE_FILE (and adds --post-restore-sql) in scripts/restore.sh, rejecting JSON contract snapshots with a clear message pointing to scripts/rollback-contracts.cjs.
  • Hardens Deployment/frontend with a non-root pod securityContext, readOnlyRootFilesystem: true, dropped capabilities, and emptyDir mounts for nginx runtime directories.
  • Enables readOnlyRootFilesystem: true with a /tmp emptyDir volume on Deployment/backend.
  • Adds PodDisruptionBudget manifests for backend and frontend in k8s/pdb.yaml and registers them in k8s/kustomization.yaml.
  • Links upstream issues in backend/Dockerfile and frontend/Dockerfile.

Closes #46
Closes #55
Closes #56
Closes #57

…ify CONTRACT_STATE_FILE, and link upstream issues

- Clarify CONTRACT_STATE_FILE (--post-restore-sql) semantics in scripts/restore.sh and reject JSON contract snapshots
- Harden frontend pod and container securityContext and enable readOnlyRootFilesystem on backend and frontend deployments
- Add PodDisruptionBudgets for backend and frontend in k8s/pdb.yaml
- Link upstream SynapsVault/backend and SynapsVault/frontend issues in Dockerfiles

Closes SynapsVault#46, Closes SynapsVault#55, Closes SynapsVault#56, Closes SynapsVault#57
@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@yakubuv988-design Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Busiii-adetiba
Busiii-adetiba merged commit 8f3cbf7 into SynapsVault:main Oct 19, 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

2 participants