Repository navigation
Deploy and infra hardening: NetworkPolicy, image signing, mainnet guard, registry admin init - #1478
Merged
fejilaup-cloud merged 4 commits intoNov 22, 2026
Conversation
Closes AtomicIP#1256 Adds a default-deny ingress policy for the namespace and allows ingress to the api-server only from the ingress-nginx namespace (HTTP) and the monitoring namespace (metrics). Includes a test script that checks the policy shape and that kustomize renders it.
Closes AtomicIP#1257 Build job now signs the pushed image digest with keyless cosign, attaches an SPDX SBOM as a cosign attestation, and attests build provenance. The production promotion verifies the signature, pinned to this workflow's OIDC identity, before opening the promotion PR. Includes a structural test for the workflow.
Closes AtomicIP#1258 Mainnet deployments must now pass --confirm-network mainnet. --fresh on mainnet additionally requires --allow-mainnet-fresh, since it deletes the deployer key that administers live contracts. The guard runs before any tool check or key operation. Adds a test script covering the refusal and pass-through cases.
Closes AtomicIP#1259 deploy.sh now calls initialize on the IP Registry with the deployer as admin before initializing the atomic swap contract. The new scripts/verify_deployment.sh confirms the admin is set by simulating initialize with --send=no and expecting AlreadyInitialized (error 37). It submits nothing. The check runs in the deploy validation step. Tests use a stub stellar binary.
|
@uchechithelmaonye-cpu 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four independent fixes for the deployment and infrastructure backlog. Each is one commit with its own test script.
Changes
deploy/k8s/base/networkpolicy.yaml): default-deny ingress for the namespace. The api-server accepts ingress only fromingress-nginx(HTTP) andmonitoring(metrics). Test:scripts/test_k8s_networkpolicy.sh..github/workflows/gitops-promote.yml): the build job signs the pushed digest with keyless cosign, attaches an SPDX SBOM attestation, and attests build provenance. Production promotion runscosign verifypinned to this workflow's OIDC identity before opening the PR. Test:scripts/test_image_signing_workflow.sh.scripts/deploy.sh): mainnet requires--confirm-network mainnet.--freshon mainnet also requires--allow-mainnet-fresh. The guard runs before any key operation. Test:scripts/test_deploy_fresh_guard.sh.scripts/deploy.sh,scripts/verify_deployment.sh): deploy now callsinitializeon the IP Registry with the deployer as admin, before the swap init.verify_deployment.shconfirms the admin is set by simulatinginitializewith--send=noand expectingAlreadyInitialized(error 37). Test:scripts/test_ip_registry_init.sh.Notes
initializeprobe described above.deploy/k8s/basedoes not render withkubectl kustomizeby default becausejobs/loads scripts from outside its directory. This was already the case before this PR. The new test uses--load-restrictor=LoadRestrictionsNone.ingress-nginxandmonitoring. Adjust them if the cluster uses different names.Closes
Closes #1256
Closes #1257
Closes #1258
Closes #1259