apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: name: auth spec: data: - remoteRef: key: edge-backend-jwt-secret secretKey: APP_SECRET refreshInterval: 1m secretStoreRef: name: gcp-provider kind: ClusterSecretStore target: name: auth creationPolicy: Owner --- apiVersion: iam.cnrm.cloud.google.com/v1beta1 kind: IAMPolicyMember metadata: name: essa-edge-backend-jwt-secret spec: member: serviceAccount:ext-sec-${cluster_hash}@${gcp_project_id}.iam.gserviceaccount.com resourceRef: apiVersion: secretmanager.cnrm.cloud.google.com/v1beta1 kind: SecretManagerSecret external: projects/${gcp_project_id}/secrets/edge-backend-jwt-secret role: roles/secretmanager.secretAccessor --- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: name: session spec: data: - remoteRef: key: edge-auth-proxy-session-secret secretKey: SESSION_SECRET refreshInterval: 1m secretStoreRef: name: gcp-provider kind: ClusterSecretStore target: name: session creationPolicy: Owner --- apiVersion: iam.cnrm.cloud.google.com/v1beta1 kind: IAMPolicyMember metadata: name: essa-edge-auth-proxy-session-secret spec: member: serviceAccount:ext-sec-${cluster_hash}@${gcp_project_id}.iam.gserviceaccount.com resourceRef: apiVersion: secretmanager.cnrm.cloud.google.com/v1beta1 kind: SecretManagerSecret external: projects/${foreman_gcp_project_id}/secrets/edge-auth-proxy-session-secret role: roles/secretmanager.secretAccessor