Toolkit: Cloud Secret Managers, Infisical, Checkov & More
The course used Vault, SOPS, OPA, Conftest and Kyverno because they are open, scriptable and run offline. Around them is a large ecosystem; this page maps it so you can recognise the tools in job ads and existing setups. Check current pricing and features before choosing anything.
Secret stores
| Tool | What it is | Notes |
|---|---|---|
| AWS Secrets Manager | managed secret store with rotation Lambdas, resource policies, cross-account sharing | priced per secret and per API call; RDS can manage its own master password there |
| AWS SSM Parameter Store | key/value config with SecureString (KMS-encrypted) |
cheap or free for standard parameters; no built-in rotation |
| Azure Key Vault | secrets, keys and certificates | RBAC per vault; Key Vault references in App Service; managed HSM tier |
| Google Secret Manager | versioned secrets with IAM per secret | rotation via Pub/Sub notifications; regional replication policies |
| HCP Vault Dedicated | HashiCorp-managed Vault clusters | same API as this course |
| OpenBao | open-source Vault fork | Vault in Production & OpenBao |
| Infisical | open-source secrets platform with a web UI, environments, secret syncs to clouds and CI, dynamic secrets | self-hosted or SaaS; developer-friendly CLI (infisical run -- …) |
| Doppler | SaaS secrets manager organised by project and environment | syncs into clouds, Kubernetes, CI |
| 1Password / Bitwarden secrets automation | password managers with service accounts for machines | good when people already live in them |
| CyberArk Conjur, Akeyless, Delinea | enterprise secrets management | common in regulated industries |
| Kubernetes-native | External Secrets Operator, Vault Secrets Operator, Sealed Secrets, Secrets Store CSI driver | External Secrets & Sealed Secrets |
The cloud stores pair naturally with workload identity (IAM roles for service accounts on EKS, Workload Identity on GKE and AKS): pods and CI jobs get credentials from the platform and read secrets without any secret zero.
Encrypted files
| Tool | Approach |
|---|---|
| SOPS | values encrypted, keys readable; age, PGP, cloud KMS, Vault transit (SOPS) |
| git-crypt | transparent whole-file encryption in Git with GPG; coarse-grained, no per-environment keys |
| Ansible Vault | encrypted variables files for Ansible (Ansible) |
| helm-secrets, KSOPS | SOPS integrations for Helm and Kustomize |
| age | single files, scripts, backups (age) |
Secret scanning
gitleaks and TruffleHog are covered in the CI/CD course; add GitHub secret scanning with push protection, GitLab secret detection, GitGuardian (SaaS, also scans Slack and Jira), detect-secrets (Yelp, baseline-oriented) and Trivy's secret scanner for images.
Policy as code
| Tool | Language | Use |
|---|---|---|
| OPA, Conftest, Gatekeeper | Rego | this course |
| Regal | Rego linter | style and bug-pattern checks for policies (regal lint policy/) |
| Kyverno, kyverno-json | CEL, YAML | Kubernetes admission and JSON validation |
| ValidatingAdmissionPolicy | CEL | built into Kubernetes (Admission Controllers) |
| Kubewarden | WebAssembly policies (Rust, Go, Rego…) | admission policies in any language |
| Checkov | Python rule packs (+ custom YAML/Python) | hundreds of built-in IaC checks: Terraform, CloudFormation, Kubernetes, Dockerfiles, GitHub Actions |
| Trivy misconfiguration (formerly tfsec), KICS | built-in rule packs (Rego inside) | same space as Checkov; Trivy also scans images (Scanning with Trivy) |
| kube-linter, Polaris | built-in checks | Kubernetes best practices |
| HashiCorp Sentinel | Sentinel | policy sets in HCP Terraform / Terraform Enterprise |
| Spacelift, env0, Scalr policies | Rego | plan policies in IaC automation platforms |
| AWS SCPs, Azure Policy, GCP Organization Policy | JSON | guardrails enforced by the cloud itself |
| Cedar, OpenFGA | Cedar, relationship models | application authorization (not infrastructure) |
Ready-made packs (Checkov, Trivy) give coverage on day one; custom Rego covers your rules (naming, tags, approved modules, environment-specific limits). Most teams run both.
Distributing policies: OPA bundles
Policies are versioned artifacts. OPA packages them as bundles (a tarball with Rego, data and a manifest) that OPA servers download, and Conftest can pull from OCI registries (conftest push/conftest pull). Building and inspecting one is offline:
mkdir -p policy/terraform policy/k8s
cat > policy/terraform/db.rego <<'REGO'
package terraform.db
deny contains msg if {
some rc in input.resource_changes
rc.type == "aws_db_instance"
not rc.change.after.storage_encrypted
msg := sprintf("%s: storage must be encrypted", [rc.address])
}
REGO
cat > policy/k8s/images.rego <<'REGO'
package k8s.images
deny contains msg if {
some c in input.spec.template.spec.containers
endswith(c.image, ":latest")
msg := sprintf("%s uses :latest", [c.name])
}
REGO
cat > policy/.manifest <<'JSON'
{"revision": "policies-v1.3.0", "roots": ["terraform", "k8s"]}
JSON
opa build -b policy/ -o bundle.tar.gz
tar -tzf bundle.tar.gz 2> /dev/null | sort
opa inspect -f json bundle.tar.gz | jq -c '{revision: .manifest.revision, roots: .manifest.roots, namespaces: (.namespaces | keys)}'
echo '{"spec": {"template": {"spec": {"containers": [{"name": "app", "image": "x:latest"}]}}}}' > d.json
opa eval -b bundle.tar.gz -i d.json -f raw 'data.k8s.images.deny'/.manifest
/data.json
/policy/k8s/images.rego
/policy/terraform/db.rego
{"revision":"policies-v1.3.0","roots":["terraform","k8s"],"namespaces":["data","data.k8s.images","data.terraform.db"]}
["app uses :latest"]
roots declares which parts of data the bundle owns, so several bundles (a central security bundle, a team bundle) can be combined without overwriting each other.
Test yourself
When do ready-made rule packs like Checkov or Trivy fall short?
- They can't parse Terraform
- They can't know your organisation's own rules (naming, tags, approved modules), which need custom policies
- They are always slower
- They only work in Kubernetes
What does roots in an OPA bundle manifest declare?
- The OPA version
- Which paths under
datathe bundle owns - The signing key
- The Git repository