deploy(dns): wire MCP transport key

This commit is contained in:
Andrew Stoltz
2026-06-15 19:58:52 -05:00
parent 9f4805f1d6
commit d4f24f6f43
2 changed files with 11 additions and 0 deletions

View File

@@ -172,6 +172,14 @@ spec:
name: dns-api-keys name: dns-api-keys
key: api_key key: api_key
optional: true optional: true
- name: FlowerCore__Mcp__ApiKey__Key
valueFrom:
secretKeyRef:
name: dns-api-keys
key: api_key
optional: true
- name: FlowerCore__Mcp__ServiceName
value: flowercore.dns
- name: FlowerCore__Auth__Enabled - name: FlowerCore__Auth__Enabled
value: "true" value: "true"
- name: FlowerCore__Auth__Oidc__Enabled - name: FlowerCore__Auth__Oidc__Enabled

View File

@@ -934,6 +934,9 @@ public sealed class FleetManifestLintTests
EnvSecretName(dnsWeb, "FlowerCore__Auth__ApiKey").Should().Be("dns-api-keys"); EnvSecretName(dnsWeb, "FlowerCore__Auth__ApiKey").Should().Be("dns-api-keys");
EnvSecretKey(dnsWeb, "FlowerCore__Auth__ApiKey").Should().Be("api_key"); EnvSecretKey(dnsWeb, "FlowerCore__Auth__ApiKey").Should().Be("api_key");
EnvSecretOptional(dnsWeb, "FlowerCore__Auth__ApiKey").Should().Be("true"); EnvSecretOptional(dnsWeb, "FlowerCore__Auth__ApiKey").Should().Be("true");
EnvSecretName(dnsWeb, "FlowerCore__Mcp__ApiKey__Key").Should().Be("dns-api-keys");
EnvSecretKey(dnsWeb, "FlowerCore__Mcp__ApiKey__Key").Should().Be("api_key");
EnvSecretOptional(dnsWeb, "FlowerCore__Mcp__ApiKey__Key").Should().Be("true");
var webhook = AppDocuments("fc-dns") var webhook = AppDocuments("fc-dns")
.Single(document => document.Kind == "Deployment" && document.Name == "dns-acme-webhook") .Single(document => document.Kind == "Deployment" && document.Name == "dns-acme-webhook")