You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instance principal would work only on OKE cluster.
75
77
Access should be granted using Access Policies(See [Access Policies](#access-polices) section).
78
+
79
+
<aname="auth-workload-identity"></a>
80
+
### Workload Identity
81
+
Workload Identity works only in OKE Enhanced clusters.
82
+
83
+
Access should be granted using Access Policies(See [Access Policies for Workloads](#access-policies-workloads) section).
84
+
85
+
Worklaod Identity uses a Resource Principal auth, which requires settings a couple ENV variables on the pod, including the region where the cluster is deployed. To achieve this, make sure to specify the `provider.oci.auth.types.workloadIdentity.enabled=true` and `provider.oci.auth.types.workloadIdentity.region=<region>` parameters in the `values.yaml` for the Helm chart deployment, or as an inline parameters.
86
+
76
87
<aname="access-policies"></a>
77
88
### Access Policies
78
89
Access to the vault and secrets should be explicity granted using Policies in case of Instance principal authencation or other users(non owner of vault) or groups of tenancy in case of user principal authentication.
@@ -103,6 +114,13 @@ It involves two steps
103
114
104
115
More information on [Policy](https://docs.oracle.com/en-us/iaas/Content/Identity/Concepts/policysyntax.htm)
105
116
117
+
<aname="access-policies-workload"></a>
118
+
### Access Policies for Workloads
119
+
120
+
With Workload Identity authentication, only a policy is required, which defines the kubernetes workload the policy works for:
121
+
122
+
`allow any-user to use secret-family in compartment <compartment-name> where ALL {request.principal.type='workload', request.principal.namespace ='<namespace>', request.principal.service_account = 'oci-secrets-store-csi-driver-provider-sa', request.principal.cluster_id = 'ocid1.cluster.oc1....'}`
123
+
106
124
<aname="deployment"></a>
107
125
### Deployment
108
126
Provider and Driver would be deployed as Daemonset. `kube-system` namespace is preferred, but not restricted.
@@ -132,7 +150,7 @@ Default values are provided in `charts/oci-secrets-store-csi-driver-provider/val
0 commit comments