-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from Kuadrant/tls-oidc-service
Serve OIDC (Wristband) HTTP endpoints over TLS
- Loading branch information
Showing
12 changed files
with
122 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# The following manifest contains a self-signed issuer CR | ||
# More document can be found at https://docs.cert-manager.io | ||
# WARNING: Targets CertManager 1.4.0 check https://docs.cert-manager.io/en/latest/tasks/upgrading/index.html for breaking changes | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: selfsigned-issuer | ||
namespace: system | ||
spec: | ||
selfSigned: {} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: ca-cert | ||
namespace: system | ||
spec: | ||
commonName: "*.$(AUTHORINO_NAMESPACE).svc" | ||
issuerRef: | ||
kind: Issuer | ||
name: selfsigned-issuer | ||
secretName: authorino-ca-cert # this secret will not be prefixed, since it's not managed by kustomize | ||
isCA: true | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: ca-issuer | ||
namespace: system | ||
spec: | ||
ca: | ||
secretName: authorino-ca-cert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
resources: | ||
- certificate.yaml | ||
- issuer.yaml | ||
- oidc-server-cert.yaml | ||
# - webhook-server-cert.yaml | ||
|
||
configurations: | ||
- kustomizeconfig.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# The following manifest contains a certificate CR for Authorino OIDC server (OpenID Connect config and JWKS for the Festival Wristbands) | ||
# More document can be found at https://docs.cert-manager.io | ||
# WARNING: Targets CertManager 1.4.0 check https://docs.cert-manager.io/en/latest/tasks/upgrading/index.html for breaking changes | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: oidc-server-cert | ||
namespace: system | ||
spec: | ||
dnsNames: | ||
- $(OIDC_SERVICE_NAME).$(AUTHORINO_NAMESPACE).svc | ||
- $(OIDC_SERVICE_NAME).$(AUTHORINO_NAMESPACE).svc.cluster.local | ||
issuerRef: | ||
kind: Issuer | ||
name: ca-issuer | ||
secretName: authorino-oidc-server-cert # this secret will not be prefixed, since it's not managed by kustomize |
15 changes: 3 additions & 12 deletions
15
deploy/base/certmanager/certificate.yaml → ...base/certmanager/webhook-server-cert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
deploy/base/wristband_service.yaml → deploy/base/oidc_service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: wristband | ||
name: oidc | ||
labels: | ||
app: authorino | ||
spec: | ||
selector: | ||
app: authorino | ||
control-plane: controller-manager | ||
ports: | ||
- name: oidc | ||
port: 8003 | ||
- name: https | ||
port: 8083 | ||
protocol: TCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: controller-manager | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
volumeMounts: | ||
- name: oidc-cert | ||
mountPath: /etc/ssl/certs/tls.crt | ||
subPath: tls.crt | ||
readOnly: true | ||
- name: oidc-cert | ||
mountPath: /etc/ssl/private/tls.key | ||
subPath: tls.key | ||
readOnly: true | ||
volumes: | ||
- name: oidc-cert | ||
secret: | ||
defaultMode: 420 | ||
secretName: authorino-oidc-server-cert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters