暴露 SPIRE OIDC discovery endpoint #52
@@ -13,6 +13,7 @@ homelab_dns:
|
|||||||
- { zone: ad.ddupan.top, name: retrolab, type: A, values: [10.60.0.10] }
|
- { zone: ad.ddupan.top, name: retrolab, type: A, values: [10.60.0.10] }
|
||||||
- { zone: ad.ddupan.top, name: netbox, type: A, values: [192.168.10.127] }
|
- { zone: ad.ddupan.top, name: netbox, type: A, values: [192.168.10.127] }
|
||||||
- { zone: ad.ddupan.top, name: s3, type: A, values: [192.168.10.127] }
|
- { zone: ad.ddupan.top, name: s3, type: A, values: [192.168.10.127] }
|
||||||
|
- { zone: ad.ddupan.top, name: spire-oidc, type: A, values: [192.168.10.127] }
|
||||||
|
|
||||||
split_horizon:
|
split_horizon:
|
||||||
# LAN and pod resolvers should eventually render the same set from here.
|
# LAN and pod resolvers should eventually render the same set from here.
|
||||||
|
|||||||
@@ -50,9 +50,14 @@ PostgreSQL保存 registration state;SPIRE Server 的 disk KeyManager 仍使用
|
|||||||
https://spire-oidc.ad.ddupan.top
|
https://spire-oidc.ad.ddupan.top
|
||||||
```
|
```
|
||||||
|
|
||||||
首次部署时 OIDC Discovery Provider 仅为 ClusterIP,内部为明文 HTTP;尚未创建
|
OIDC Discovery Provider 在 Pod 内部使用明文 HTTP,由现有 Envoy Gateway 的
|
||||||
外部 DNS 或 Gateway route。接入 OpenBao 前,在现有 Envoy Gateway 上终止 TLS、
|
`https` listener 使用 `*.ad.ddupan.top` wildcard certificate 终止 TLS。对应的
|
||||||
增加内网 DNS,并验证 discovery document 的 `issuer` 与上述 URL 完全一致。
|
`HTTPRoute` 将 `spire-oidc.ad.ddupan.top` 转发到 ClusterIP Service;AD DNS 记录
|
||||||
|
声明在 `../../infrastructure/dns/records.yml`,由 Samba DNS Ansible 流程应用。
|
||||||
|
|
||||||
|
接入 OpenBao 前必须从集群内和 LAN 分别验证 discovery document 的 `issuer` 与
|
||||||
|
上述 URL 完全一致。该 endpoint 只发布公开的 discovery metadata 和 JWKS,不能
|
||||||
|
在其 HTTPRoute 上添加 Authelia forward-auth。
|
||||||
|
|
||||||
## 首次部署与验证
|
## 首次部署与验证
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: spire-oidc-discovery-provider
|
||||||
|
namespace: spire-server
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: eg
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
sectionName: https
|
||||||
|
hostnames:
|
||||||
|
- spire-oidc.ad.ddupan.top
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: spire-spiffe-oidc-discovery-provider
|
||||||
|
port: 80
|
||||||
@@ -14,3 +14,4 @@ resources:
|
|||||||
- helmrepository.yaml
|
- helmrepository.yaml
|
||||||
- helmrelease-crds.yaml
|
- helmrelease-crds.yaml
|
||||||
- helmrelease.yaml
|
- helmrelease.yaml
|
||||||
|
- httproute.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user