mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 02:27:44 +08:00
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
# Example only. Copy into a private overlay and replace every placeholder.
|
|
# This file is intentionally excluded from all committed Kustomizations.
|
|
# Assertions signed by this keyset must use all three Worker-specific values:
|
|
# aud=qinglong3-worker-credential-management,
|
|
# typ=ql3-worker-credential-management+jwt, and
|
|
# ql3_purpose=worker-credential-management. Plugin Package assertions are not
|
|
# accepted even when they use the same issuer and signing key.
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: ql3-worker-credential-management-identity
|
|
namespace: qinglong3-system
|
|
type: Opaque
|
|
stringData:
|
|
keyset.json: |
|
|
{
|
|
"schemaVersion": 1,
|
|
"generation": 1,
|
|
"issuer": "https://identity.example.test/",
|
|
"audience": "qinglong3-worker-credential-management",
|
|
"keys": [
|
|
{
|
|
"alg": "EdDSA",
|
|
"crv": "Ed25519",
|
|
"kid": "REPLACE_WITH_KEY_ID",
|
|
"kty": "OKP",
|
|
"use": "sig",
|
|
"x": "REPLACE_WITH_ED25519_PUBLIC_JWK_X"
|
|
}
|
|
],
|
|
"revokedKids": [],
|
|
"assuranceMappings": [
|
|
{
|
|
"acr": "urn:example:mfa",
|
|
"assurance": "multi_factor",
|
|
"requiredAmr": ["pwd", "otp"]
|
|
}
|
|
],
|
|
"constraints": {
|
|
"maxAssertionBytes": 8192,
|
|
"maxLifetimeMs": 300000,
|
|
"maxAuthenticationAgeMs": 300000,
|
|
"clockSkewMs": 5000
|
|
}
|
|
}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: ql3-worker-credential-management-tls
|
|
namespace: qinglong3-system
|
|
type: kubernetes.io/tls
|
|
stringData:
|
|
tls.crt: REPLACE_WITH_SERVER_CERTIFICATE_CHAIN
|
|
tls.key: REPLACE_WITH_SERVER_PRIVATE_KEY
|
|
ca.crt: REPLACE_WITH_1_TO_16_CLIENT_CERTIFICATE_AUTHORITIES
|
|
client.crl: REPLACE_WITH_1_TO_16_CLIENT_CERTIFICATE_REVOCATION_LISTS
|
|
---
|
|
# Non-CloudNativePG deployments only. The reviewed CloudNativePG overlay uses
|
|
# the operator-managed ql3-postgres-worker-credential-manager-auth and
|
|
# ql3-postgres-ca Secrets instead of this resource.
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: ql3-cluster-worker-credential-management-database
|
|
namespace: qinglong3-system
|
|
type: Opaque
|
|
stringData:
|
|
postgres-worker-credential-manager-url: REPLACE_WITH_WORKER_MANAGER_DSN
|
|
postgres-tls-servername: REPLACE_WITH_POSTGRES_DNS_NAME
|
|
postgres-ca.crt: REPLACE_WITH_POSTGRES_CA_CERTIFICATE
|