1 Service Accounts
1 Workloads
27 Bindings
3 Critical
2 High
2 Medium
20 Low
Description
Official Helm chart for HCP Terraform Operator for Kubernetes.
Overview
| Identity | Namespace | Automount | Secrets | Permissions | Workloads | Risk |
|---|---|---|---|---|---|---|
hcp-terraform-operator | default | ❌ | — | 27 | 2 | Critical |
Numbers in the last two columns indicate how many bindings or workloads involve each ServiceAccount.
Identities
🤖 hcp-terraform-operator
Namespace: default | Automount: ❌
🔑 Permissions (27)
| Role | Resource | Verbs | Risk | Tags |
|---|---|---|---|---|
ClusterRole hcp-terraform-operator-manager-role | apps/deployments | create · delete · get · list · patch · update · watch | Critical | Persistence PotentialPrivilegeEscalation PrivilegeEscalation Tampering WorkloadLifecycle |
Role hcp-terraform-operator-leader-election-role | coordination.k8s.io/leases | create · delete · get · list · patch · update · watch | Critical | ControlPlaneDisruption CriticalNamespace DenialOfService Tampering |
ClusterRole hcp-terraform-operator-manager-role | core/secrets | create · list · patch · update · watch | Critical | ClusterWideSecretAccess CredentialAccess DataExposure InformationDisclosure SecretAccess |
ClusterRole hcp-terraform-operator-manager-role | core/configmaps | create · list · patch · update · watch | High | ConfigMapAccess DataExposure InformationDisclosure |
Role hcp-terraform-operator-leader-election-role | core/configmaps | create · delete · get · list · patch · update · watch | High | ConfigMapAccess DataExposure InformationDisclosure PotentialPrivilegeEscalation Tampering |
ClusterRole hcp-terraform-operator-proxy-role | authorization.k8s.io/subjectaccessreviews | create | Medium | InformationDisclosure RBACQuery |
ClusterRole hcp-terraform-operator-proxy-role | authentication.k8s.io/tokenreviews | create | Medium | CredentialAccess InformationDisclosure RBACQuery |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/agentpools | create · delete · get · list · patch · update · watch | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/agentpools/finalizers | update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/agentpools/status | get · patch · update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/agenttokens | create · delete · get · list · patch · update · watch | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/agenttokens/finalizers | update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/agenttokens/status | get · patch · update | Low | |
ClusterRole hcp-terraform-operator-manager-role | core/events | create · patch | Low | |
Role hcp-terraform-operator-leader-election-role | core/events | create · patch | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/modules | create · delete · get · list · patch · update · watch | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/modules/finalizers | update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/modules/status | get · patch · update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/projects | create · delete · get · list · patch · update · watch | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/projects/finalizers | update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/projects/status | get · patch · update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/runscollectors | create · delete · get · list · patch · update · watch | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/runscollectors/finalizers | update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/runscollectors/status | get · patch · update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/workspaces | create · delete · get · list · patch · update · watch | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/workspaces/finalizers | update | Low | |
ClusterRole hcp-terraform-operator-manager-role | app.terraform.io/workspaces/status | get · patch · update | Low |
⚠️ Potential Abuse (11)
The following security risks were found based on the above permissions:
- Read secrets cluster-wide
- Read secrets in a namespace
- Read ConfigMaps cluster-wide
- Read ConfigMaps in a namespace
- Modify ConfigMaps in a namespace
- Manage Deployments cluster-wide (potential for privileged pod execution)
- Manage Deployments in a namespace (potential for privileged pod execution)
- Create TokenReviews (validate arbitrary tokens)
- Create SubjectAccessReviews (check arbitrary permissions)
- Manage Leases in kube-system or kube-node-lease namespace
📦 Workloads (2)
| Kind | Name | Container | Image |
|---|---|---|---|
| Deployment | hcp-terraform-operator | kube-rbac-proxy | quay.io/brancz/kube-rbac-proxy:v0.20.0 |
| Deployment | hcp-terraform-operator | manager | hashicorp/hcp-terraform-operator:2.10.0 |