-
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 #137 from Kuadrant/server-tls-cert
TLS for the external authorization service
- Loading branch information
Showing
16 changed files
with
343 additions
and
85 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
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,17 @@ | ||
# The following manifest contains a certificate CR for Authorino external authorization server | ||
# 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: server-cert | ||
namespace: system | ||
spec: | ||
dnsNames: | ||
- authorino-authorization | ||
- authorino-authorization.$(AUTHORINO_NAMESPACE).svc | ||
- authorino-authorization.$(AUTHORINO_NAMESPACE).svc.cluster.local | ||
issuerRef: | ||
kind: Issuer | ||
name: ca-issuer | ||
secretName: authorino-server-cert # this secret will not be prefixed, since it's not managed by kustomize |
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
29 changes: 29 additions & 0 deletions
29
deploy/overlays/cluster-wide/patches/server_cert_patch.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,29 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: controller-manager | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
env: | ||
- name: TLS_CERT | ||
value: /etc/ssl/certs/tls.crt | ||
- name: TLS_CERT_KEY | ||
value: /etc/ssl/private/tls.key | ||
volumeMounts: | ||
- name: tls-cert | ||
subPath: tls.crt | ||
mountPath: /etc/ssl/certs/tls.crt | ||
readOnly: true | ||
- name: tls-cert | ||
subPath: tls.key | ||
mountPath: /etc/ssl/private/tls.key | ||
readOnly: true | ||
volumes: | ||
- name: tls-cert | ||
secret: | ||
defaultMode: 420 | ||
secretName: authorino-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: controller-manager | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
env: | ||
- name: TLS_CERT | ||
value: /etc/ssl/certs/tls.crt | ||
- name: TLS_CERT_KEY | ||
value: /etc/ssl/private/tls.key | ||
volumeMounts: | ||
- name: tls-cert | ||
subPath: tls.crt | ||
mountPath: /etc/ssl/certs/tls.crt | ||
readOnly: true | ||
- name: tls-cert | ||
subPath: tls.key | ||
mountPath: /etc/ssl/private/tls.key | ||
readOnly: true | ||
volumes: | ||
- name: tls-cert | ||
secret: | ||
defaultMode: 420 | ||
secretName: authorino-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: envoy | ||
labels: | ||
app: authorino | ||
svc: envoy | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: authorino | ||
svc: envoy | ||
template: | ||
metadata: | ||
labels: | ||
app: authorino | ||
svc: envoy | ||
spec: | ||
containers: | ||
- name: envoy | ||
image: envoyproxy/envoy:v1.17-latest | ||
command: ["/usr/local/bin/envoy"] | ||
args: | ||
- --config-path /usr/local/etc/envoy/envoy.yaml | ||
- --service-cluster front-proxy | ||
- --log-level info | ||
- --component-log-level filter:trace,http:debug,router:debug | ||
ports: | ||
- name: web | ||
containerPort: 8000 | ||
- name: admin | ||
containerPort: 8001 | ||
volumeMounts: | ||
- name: config | ||
mountPath: /usr/local/etc/envoy | ||
readOnly: true | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: envoy | ||
items: | ||
- key: envoy.yaml | ||
path: envoy.yaml | ||
replicas: 1 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: envoy | ||
labels: | ||
app: authorino | ||
spec: | ||
selector: | ||
app: authorino | ||
svc: envoy | ||
ports: | ||
- name: web | ||
port: 8000 | ||
protocol: TCP | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress-wildcard-host | ||
spec: | ||
rules: | ||
- host: "talker-api-authorino.127.0.0.1.nip.io" | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/" | ||
backend: | ||
service: | ||
name: envoy | ||
port: | ||
number: 8000 |
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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- envoy.yaml |
77 changes: 0 additions & 77 deletions
77
examples/envoy/envoy-deploy.yaml → examples/envoy/overlays/notls/configmap.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../../base | ||
- configmap.yaml |
Oops, something went wrong.