Skip to content

Commit 88fa123

Browse files
authored
Configure ORY Oathkeeper oauth2 default endpoints (#18209)
* Move hydra to deprecated namespace * Remove hydra crd * Adapt last-order
1 parent ec5348a commit 88fa123

File tree

3 files changed

+3
-211
lines changed

3 files changed

+3
-211
lines changed

installation/resources/crds/ory/oauth2clients.crd.yaml

-198
This file was deleted.

resources/ory/values.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ oathkeeper:
6969
enabled: true
7070
config:
7171
# REQUIRED IF ENABLED - The OAuth 2.0 Token Endpoint that will be used to validate the client credentials.
72-
token_url: http://ory-hydra-public.kyma-system.svc.cluster.local:4444/oauth2/token
72+
token_url: http://ory-hydra-public.hydra-deprecated.svc.cluster.local:4444/oauth2/token
7373
oauth2_introspection:
7474
# Set enabled to true if the authenticator should be enabled and false to disable the authenticator. Defaults to false.
7575
enabled: true
7676
config:
7777
# REQUIRED IF ENABLED - The OAuth 2.0 Token Introspection endpoint.
78-
introspection_url: http://ory-hydra-admin.kyma-system.svc.cluster.local:4445/oauth2/introspect
78+
introspection_url: http://ory-hydra-admin.hydra-deprecated.svc.cluster.local:4445/oauth2/introspect
7979
# Sets the strategy to be used to validate/match the token scope. Supports "hierarchic", "exact", "wildcard", "none". Defaults
8080
# to "none".
8181
scope_strategy: exact
@@ -84,7 +84,7 @@ oathkeeper:
8484
enabled: true
8585
config:
8686
jwks_urls:
87-
- http://ory-hydra-public.kyma-system.svc.cluster.local:4444/.well-known/jwks.json
87+
- http://ory-hydra-public.hydra-deprecated.svc.cluster.local:4444/.well-known/jwks.json
8888
scope_strategy: wildcard
8989
authorizers:
9090
allow:

tests/fast-integration/test/fixtures/commerce-mock/lastorder-function.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,6 @@ spec:
170170
}
171171
}
172172
---
173-
apiVersion: hydra.ory.sh/v1alpha1
174-
kind: OAuth2Client
175-
metadata:
176-
name: lastorder
177-
spec:
178-
grantTypes:
179-
- "client_credentials"
180-
scope: "read write"
181-
secretName: lastorder-oauth
182-
---
183173
apiVersion: gateway.kyma-project.io/v1beta1
184174
kind: APIRule
185175
metadata:

0 commit comments

Comments
 (0)