terraform-cloud-operator
v2.5.0
1 Service Accounts
1 Workloads
21 Bindings
2 Critical
1 High
2 Medium
16 Low
Description
Official Helm chart for HCP Terraform Operator for Kubernetes.
Overview
Identity | Namespace | Automount | Secrets | Permissions | Workloads | Risk |
---|---|---|---|---|---|---|
terraform-cloud-operator-controller-manager | default | ❌ | — | 21 | 2 | Critical |
Numbers in the last two columns indicate how many bindings or workloads involve each ServiceAccount.
Identities
🤖 terraform-cloud-operator-controller-manager
Namespace: default
| Automount: ❌
🔑 Permissions (21)
Role | Resource | Verbs | Risk | Tags |
---|---|---|---|---|
ClusterRole terraform-cloud-operator-manager-role | apps/deployments | create · delete · get · list · patch · update · watch | Critical | Persistence PotentialPrivilegeEscalation PrivilegeEscalation Tampering WorkloadLifecycle |
Role terraform-cloud-operator-leader-election-role | coordination.k8s.io/leases | create · delete · get · list · patch · update · watch | Critical | ControlPlaneDisruption CriticalNamespace DenialOfService Tampering |
Role terraform-cloud-operator-leader-election-role | core/configmaps | create · delete · get · list · patch · update · watch | High | ConfigMapAccess DataExposure InformationDisclosure PotentialPrivilegeEscalation Tampering |
ClusterRole terraform-cloud-operator-proxy-role | authorization.k8s.io/subjectaccessreviews | create | Medium | InformationDisclosure RBACQuery |
ClusterRole terraform-cloud-operator-proxy-role | authentication.k8s.io/tokenreviews | create | Medium | CredentialAccess InformationDisclosure RBACQuery |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/agentpools | create · delete · get · list · patch · update · watch | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/agentpools/finalizers | update | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/agentpools/status | get · patch · update | Low | |
ClusterRole terraform-cloud-operator-manager-role | core/configmaps | create · list · update · watch | Low | |
ClusterRole terraform-cloud-operator-manager-role | core/events | create · patch | Low | |
Role terraform-cloud-operator-leader-election-role | core/events | create · patch | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/modules | create · delete · get · list · patch · update · watch | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/modules/finalizers | update | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/modules/status | get · patch · update | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/projects | create · delete · get · list · patch · update · watch | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/projects/finalizers | update | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/projects/status | get · patch · update | Low | |
ClusterRole terraform-cloud-operator-manager-role | core/secrets | create · list · update · watch | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/workspaces | create · delete · get · list · patch · update · watch | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/workspaces/finalizers | update | Low | |
ClusterRole terraform-cloud-operator-manager-role | app.terraform.io/workspaces/status | get · patch · update | Low |
⚠️ Potential Abuse (8)
The following security risks were found based on the above permissions:
- 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 | terraform-cloud-operator | kube-rbac-proxy | quay.io/brancz/kube-rbac-proxy:v0.18.0 |
Deployment | terraform-cloud-operator | manager | hashicorp/terraform-cloud-operator:2.5.0 |