<p>We are trying integrate our workflow service with SSO(using OKTA for OIDC). now I got Okta ClientID and Secret key. Need to update the workflow configmap with K8 secrets.</p>
<p>I created K8 secrets with the below commands but my configmap is not picking up them. Can you please point me what I am missing?</p>
<pre><code>kubectl create secret -n argo generic client-id-secret --from-literal=client-id-key=xyuawyeioweh
kubectl create secret -n argo generic client-secret-secret --from-literal=client-secret-key=xxxxxxxxxxx
</code></pre>
<p>This is my configmap:</p>
<pre><code>sso: |
    issuer: https://xxxxxx
    clientId:
      name: client-id-secret
      key: xxxxxxxxx
    clientSecret:
      name: client-secret-secret
      key: xxxxxxxxxxxx
    redirectUrl: https://workflows.apps/oauth2/callback
</code></pre>
<p>Thank you
CS</p>

<p>Looks like you are trying to call secret inside the config map.
You can not do so. In Kubernetes world, both are separate objects and you have to use them in pod/deployment etc definition.</p>
<p>In your above scenario, mount/use the secrets in the deployment/pod and have some script to read those inside pods and populate your sso configuration with the same.</p>
<p>Share your deployment YAML for more accurate answer.</p>
