History

fix runtime release anonymous issuer seeding

Seed ANONYMOUS_AUTH_ISSUER to the managed site port when building runtime artifacts so fresh installs use a reachable JWKS issuer instead of a transient build-time port.

Rhys Sullivan committed 8 months ago

Commit 6fd8bd31 parent 8144a6e1 file · +2 −1Browse files

Unified · Split

executor/scripts/release/build-release.ts+2−1
@@ -22,6 +22,7 @@ const targets: ReleaseTarget[] = [ · 21 unmodified lines
2222 ];
2323
2424 const convexBackendRepo = "get-convex/convex-backend";
25+const defaultManagedSitePort = 5411;
2526
2627 function hostPlatformArch(): { platform: "linux" | "darwin"; arch: "x64" | "arm64" } {
2728 if (process.platform !== "linux" && process.platform !== "darwin") {
@@ -264,7 +265,7 @@ async function seedManagedRuntimeState( · 236 unmodified lines
264265
265266 const envEntries: Array<{ name: string; value: string }> = [
266267 { name: "WORKOS_CLIENT_ID", value: "disabled" },
267− { name: "ANONYMOUS_AUTH_ISSUER", value: `http://${config.hostInterface}:${config.siteProxyPort}` },
268+ { name: "ANONYMOUS_AUTH_ISSUER", value: `http://${config.hostInterface}:${defaultManagedSitePort}` },
268269 { name: "ANONYMOUS_AUTH_PRIVATE_KEY_PEM", value: anonymousAuth.privateKeyPem },
269270 { name: "ANONYMOUS_AUTH_PUBLIC_KEY_PEM", value: anonymousAuth.publicKeyPem },
270271 { name: "MCP_API_KEY_SECRET", value: anonymousAuth.apiKeySecret },