9c3bdba3f9
Two-stage Dockerfile: the runtime image carries neither uv nor a build toolchain, runs as uid 10001, drops every capability and needs no writable filesystem (verified with --read-only and no tmpfs). k8s/ is what runs, dev/ is the Flux plumbing that applies it, self-managing after three manual applies — the same shape every kong-* repo settled on. Three choices worth naming: - One namespace for the estate. What isolates an agent is its Keycloak client and the audiences it may request, not a namespace boundary. - The GitRepository uses anonymous HTTPS rather than SSH with a Vault-held deploy key. The repo is already anonymously readable on gitea, so a key would guard nothing while adding two objects to create by hand before anything deploys. If the repos ever go private this becomes the kong-* SSH pattern. - The lab CA certificate is committed. It is a certificate, never a key, and checking it in means the deployment has no hidden prerequisite. replicas: 1 is a constraint, not a default — conversation history lives in the process, so a second replica would route a user's "yes" to a pod that never saw the question. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
37 lines
1.8 KiB
YAML
37 lines
1.8 KiB
YAML
# The lab CA, so the agent can verify keycloak.sttlab.local and every gateway
|
|
# rather than disabling verification. A CA certificate is public by
|
|
# construction — this is the certificate, never the key, and it is checked in
|
|
# deliberately so the deployment has no hidden prerequisite.
|
|
#
|
|
# Issued by the sttlab-local-ca ClusterIssuer, valid until 2026-11-24. When it
|
|
# is rotated this file must be regenerated:
|
|
# kubectl -n cert-manager get secret sttlab-local-ca \
|
|
# -o jsonpath='{.data.tls\.crt}' | base64 -d
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: sttlab-ca
|
|
namespace: agents
|
|
data:
|
|
ca.crt: |
|
|
-----BEGIN CERTIFICATE-----
|
|
MIIDPDCCAiSgAwIBAgIUd/utDf+f0yQR3v3qTjZqx+wvTZMwDQYJKoZIhvcNAQEL
|
|
BQAwGTEXMBUGA1UEAwwOKi5zdHRsYWIubG9jYWwwHhcNMjUxMTI0MTUzODQ1WhcN
|
|
MjYxMTI0MTUzODQ1WjAZMRcwFQYDVQQDDA4qLnN0dGxhYi5sb2NhbDCCASIwDQYJ
|
|
KoZIhvcNAQEBBQADggEPADCCAQo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