corewire / provider-keycloak

Apache License 2.0
0 stars 0 forks source link

Secret credentials format #1

Open driosalido opened 11 months ago

driosalido commented 11 months ago

Hi! I'm trying to use the provider but I don't know how to provide the keycloak credentials through a kubernetes secret. Could you please share an example?

Thanks!

Breee commented 11 months ago

Greetings,

the latest version of the provider is here: https://github.com/crossplane-contrib/provider-keycloak

however:

---
apiVersion: v1
kind: Secret
metadata:
  name: keycloak-credentials
type: Opaque
stringData:
  credentials: |
    {
      "client_id": "xxxxxx",
      "client_secret": "xxxxxx",
      "url": "https://keycloak.example.com",
      "base_path": "/auth",
      "realm": "master"
    }   
---
apiVersion: keycloak.crossplane.io/v1beta1
kind: ProviderConfig
metadata:
  name: keycloak-config
  namespace: crossplane-system
spec:
  credentials:
    source: Secret
    secretRef:
      name: keycloak-credentials
      key: credentials
      namespace: crossplane-system

added it here: https://github.com/crossplane-contrib/provider-keycloak/blob/main/examples/credentials.yaml