-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
bugSomething is not working.Something is not working.help wantedWe are looking for help on this one.We are looking for help on this one.
Description
Hi there,
I encountered a weird behavior that the metadata for a client is not saved to the database and also not in the deployed definition of the cluster.
Steps to reproduce:
- Helm deployment of hydra-maester version 0.6.1
- Applying the demo from here: https://github.com/ory/hydra-maester/blob/master/config/samples/hydra_v1alpha1_oauth2client_user_credentials.yaml
Outcome:
After doing this the client saved in the hydra database does not contain the expected metadata of {"property1": 1, "proerty2": "2"}.
The output of kubectl describe oauth2client my-oauth2-client-2 also does not show the metadata:
Name: my-oauth2-client-2
Namespace: default
Labels: <none>
Annotations: <none>
API Version: hydra.ory.sh/v1alpha1
Kind: OAuth2Client
Metadata:
Creation Timestamp: 2021-04-15T15:16:59Z
Finalizers:
finalizer.ory.hydra.sh
Generation: 2
Managed Fields:
API Version: hydra.ory.sh/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:spec:
.:
f:audience:
f:grantTypes:
f:hydraAdmin:
.:
f:endpoint:
f:port:
f:url:
f:metadata:
f:redirectUris:
f:responseTypes:
f:scope:
f:secretName:
f:tokenEndpointAuthMethod:
Manager: kubectl-client-side-apply
Operation: Update
Time: 2021-04-15T15:16:59Z
API Version: hydra.ory.sh/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:finalizers:
.:
v:"finalizer.ory.hydra.sh":
f:status:
.:
f:reconciliationError:
Manager: manager
Operation: Update
Time: 2021-04-15T15:16:59Z
Resource Version: 3572774
Self Link: /apis/hydra.ory.sh/v1alpha1/namespaces/default/oauth2clients/my-oauth2-client-2
UID: f1e8e9c3-729d-4a90-a722-ee290b39d7b8
Spec:
Audience:
audience-a
audience-b
Grant Types:
client_credentials
implicit
authorization_code
refresh_token
Hydra Admin:
Endpoint: /clients
Port: 4445
URL: http://hydra.default.svc.cluster.local
Metadata: <------------------------------------------------------------------------ See here!
Redirect Uris:
https://client/account
http://localhost:8080
Response Types:
id_token
code
token
Scope: read write
Secret Name: my-secret-456
Token Endpoint Auth Method: client_secret_basic
Best, Dennis
mmatloch
Metadata
Metadata
Assignees
Labels
bugSomething is not working.Something is not working.help wantedWe are looking for help on this one.We are looking for help on this one.