@fabrika/installation-init 0.9.0-dev.3 → 0.9.0-dev.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -5
- package/src/admin.ts +19 -9
- package/src/auth-methods.ts +90 -0
- package/src/environment.ts +32 -4
- package/src/index.ts +49 -0
- package/src/log.ts +1 -1
- package/src/mcp.ts +102 -0
- package/src/pin.ts +26 -0
- package/src/prompt.ts +3 -3
- package/src/proxy-manifest.ts +221 -0
- package/src/secrets-file.ts +61 -0
- package/src/secrets.ts +78 -0
- package/src/service-environment.ts +231 -0
- package/types/src/admin.d.ts +6 -1
- package/types/src/auth-methods.d.ts +34 -0
- package/types/src/environment.d.ts +5 -0
- package/types/src/index.d.ts +8 -1
- package/types/src/mcp.d.ts +18 -0
- package/types/src/pin.d.ts +2 -0
- package/types/src/proxy-manifest.d.ts +109 -0
- package/types/src/secrets-file.d.ts +18 -0
- package/types/src/secrets.d.ts +32 -0
- package/types/src/service-environment.d.ts +93 -0
package/types/src/index.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
export { ADMIN_ROLE_KEY, createIamAdminClient, type EnrollmentOutcome, ensureFirstAdministrator, type FirstAdministratorApi, type FirstAdministratorRequest, type FirstAdministratorResult, type IamAdminClient, type IamAdminConnection, } from './admin';
|
|
2
|
+
export { AUTH_METHODS_FLAG, type AuthMethods, checkedOidcIssuer, OIDC_CLIENT_ID_FLAG, OIDC_CLIENT_ID_INPUT, OIDC_CLIENT_SECRET_INPUT, OIDC_ISSUER_FLAG, OIDC_ISSUER_INPUT, type OidcClient, readAuthMethods, refuseFlags, } from './auth-methods';
|
|
2
3
|
export { CHECKOUT_FLAG, sidecarCheckoutDir } from './checkout';
|
|
3
4
|
export { type Confirmations, confirmations, UNATTENDED_FLAG } from './confirmations';
|
|
4
5
|
export { EMAIL_FLAGS, type InstallationEmail, readInstallationEmail } from './email';
|
|
5
|
-
export { configureEnvironment, type EnvironmentConfig, type EnvironmentEffects, type ExistingEnvironmentProtection, existingEnvironmentProtection, triggerPlatformWorkflow, } from './environment';
|
|
6
|
+
export { configureEnvironment, type EnvironmentConfig, type EnvironmentEffects, environmentVariables, type ExistingEnvironmentProtection, existingEnvironmentProtection, triggerPlatformWorkflow, } from './environment';
|
|
6
7
|
export { ghRepoExists, hasGhCli } from './gh';
|
|
7
8
|
export { action, detail, fail, info, ok, step, url, warn } from './log';
|
|
9
|
+
export { type IamOAuthConfig, type McpClient, parseMcpClientsJson, platformIamOAuthConfig } from './mcp';
|
|
8
10
|
export { type CommandEnv, describeArgument, readEnv, readFlag, requiredSetting, setting, shellWord } from './options';
|
|
11
|
+
export { assertPinnedTag } from './pin';
|
|
9
12
|
export { confirm } from './prompt';
|
|
10
13
|
export { branchProtectionCommand, DEPLOYMENT_BRANCH_POLICY, environmentPolicyCommand, environmentReviewerCommand, type GhAttempt, isPlanLimited, PLAN_LIMITED, probeSidecarBranchProtection, type ProtectionOutcome, protectSidecarBranch, } from './protection';
|
|
14
|
+
export { type PlatformHosts, type PlatformOAuthResourceTemplate, type PlatformOAuthScopeGrant, platformOrigin, type PlatformProxyApp, platformProxyAppFor, type PlatformProxyComposition, type PlatformProxyManifest, type PlatformProxyManifestTemplate, type PlatformProxyPlacement, type PlatformProxyService, platformServiceTableDigest, resolvePlatformProxyManifest, } from './proxy-manifest';
|
|
11
15
|
export { INITIAL_SCAFFOLD_COMMIT_MESSAGE, REFRESH_SCAFFOLD_COMMIT_MESSAGE, scaffoldSidecarRepository, type SidecarScaffoldEffects, type SidecarScaffoldInput, type SidecarScaffoldResult, } from './scaffold';
|
|
16
|
+
export { generateInstallationSecrets, generateSigningKeys, generateVaultKey, type InstallationSecrets, randomPxKey, randomSecret } from './secrets';
|
|
17
|
+
export { checkedSecretsFilePath, renderSecretsFile, SECRETS_FILE_FLAG, SECRETS_FILE_VARIABLE, writeSecretsFile } from './secrets-file';
|
|
18
|
+
export { deployedServiceEnvironment, type DeployedServiceInput, deriveIamProxySecret, IAM_OAUTH_CONFIG_VARIABLE, IAM_OIDC_CLIENT_SECRET_VARIABLE, INSTALLATION_SECRET_VARIABLES, type InstallationAuthentication, installationServiceEnvironment, type InstallationServiceInput, type PlatformData, type PlatformPlacementInput, type PlatformService, type PlatformServiceEnvironment, type PlatformStorage, } from './service-environment';
|
|
12
19
|
export { attempt, capture, probe, run, type ShellAttempt, type ShellStep } from './shell';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type OAuthManagedClient, type OAuthResourceDto } from '@fabrika/iam-contract';
|
|
2
|
+
import { type PlatformProxyComposition, type PlatformProxyManifestTemplate } from './proxy-manifest';
|
|
3
|
+
/** One operator-registered MCP client: its CIMD identity, plus where IAM fetches it when that differs. */
|
|
4
|
+
export interface McpClient extends OAuthManagedClient {
|
|
5
|
+
readonly metadataUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
/** The document IAM parses from `FABRIKA_IAM_OAUTH_CONFIG`. */
|
|
8
|
+
export interface IamOAuthConfig {
|
|
9
|
+
readonly clients: readonly McpClient[];
|
|
10
|
+
readonly resources: readonly OAuthResourceDto[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Parse the operator's MCP client list — a JSON array. Anything malformed, an empty list or a repeated
|
|
14
|
+
* client id is refused here, before a deploy writes a value IAM would refuse to boot with.
|
|
15
|
+
*/
|
|
16
|
+
export declare const parseMcpClientsJson: (raw: string) => readonly McpClient[];
|
|
17
|
+
/** IAM's OAuth configuration for one placed installation: the clients, and one resource per app that serves one. */
|
|
18
|
+
export declare const platformIamOAuthConfig: (template: PlatformProxyManifestTemplate, composition: PlatformProxyComposition, clients: readonly McpClient[]) => IamOAuthConfig;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { type InstallationEndpointTable } from '@fabrika/auth-core';
|
|
2
|
+
import { type InstallationProxyApp } from '@fabrika/proxy-core/manifest';
|
|
3
|
+
/** The platform services an installation's proxy fronts. Each name is a service hostname in the topology. */
|
|
4
|
+
export type PlatformProxyService = 'iam' | 'control' | 'operations';
|
|
5
|
+
/** The public hostname of each platform service, without a scheme and without a port. */
|
|
6
|
+
export type PlatformHosts = Readonly<Record<PlatformProxyService, string>>;
|
|
7
|
+
/** `https://<host>` — the origin a browser, a token's `iss` and a return-origin registry all use. */
|
|
8
|
+
export declare const platformOrigin: (scheme: "http" | "https", host: string) => string;
|
|
9
|
+
/** What one OAuth scope lets a token do: the owning app's actions, resolved by IAM at the token endpoint. */
|
|
10
|
+
export interface PlatformOAuthScopeGrant {
|
|
11
|
+
readonly scope: string;
|
|
12
|
+
readonly actions: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A path an app serves to OAuth clients, protected only on an installation that enables it.
|
|
16
|
+
*
|
|
17
|
+
* The resource URI is the app's public origin plus `path`, so the template holds the path and a deploy
|
|
18
|
+
* binds the origin. Copied from the owning service module by the generator, like `table`.
|
|
19
|
+
*/
|
|
20
|
+
export interface PlatformOAuthResourceTemplate {
|
|
21
|
+
readonly path: string;
|
|
22
|
+
readonly scopes: readonly string[];
|
|
23
|
+
readonly scopeGrants: readonly PlatformOAuthScopeGrant[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* One fronted app, in the form that is the same on every installation: protected by its service contract (ADR-0022
|
|
27
|
+
* "Installation entries"), copied in by the generator and never written by hand.
|
|
28
|
+
*/
|
|
29
|
+
export interface PlatformProxyApp {
|
|
30
|
+
/** The IAM app id. It is the audience of every token the proxy mints for this app's host. */
|
|
31
|
+
readonly id: string;
|
|
32
|
+
/** The topology service that answers for it. */
|
|
33
|
+
readonly service: PlatformProxyService;
|
|
34
|
+
/**
|
|
35
|
+
* The proxy's public listener this app answers on.
|
|
36
|
+
*
|
|
37
|
+
* On a `zerops-subdomain` installation a port IS a hostname — Zerops mints one generated host per
|
|
38
|
+
* HTTP port — so this is the only installation-independent half of `hosts`. A custom-domain
|
|
39
|
+
* installation ignores it: every domain arrives on one listener and the `Host` header decides.
|
|
40
|
+
*/
|
|
41
|
+
readonly port: number;
|
|
42
|
+
/** Where the proxy dials it over the project's private network. */
|
|
43
|
+
readonly upstream: string;
|
|
44
|
+
/** The service's rows; with an `oauthResource`, the table served when the composition names an authorization server. */
|
|
45
|
+
readonly table: InstallationEndpointTable;
|
|
46
|
+
/** Present only on an app that can serve OAuth clients; off unless the composition names an authorization server. */
|
|
47
|
+
readonly oauthResource?: PlatformOAuthResourceTemplate;
|
|
48
|
+
/**
|
|
49
|
+
* Present exactly with `oauthResource`: the service's table when it serves no OAuth client. The service picks the
|
|
50
|
+
* same one, by the digest the deploy writes beside it (`platformServiceTableDigest`).
|
|
51
|
+
*/
|
|
52
|
+
readonly tableWithoutOAuth?: InstallationEndpointTable;
|
|
53
|
+
}
|
|
54
|
+
/** Everything about an installation's manifest that does not depend on WHICH installation it is. */
|
|
55
|
+
export interface PlatformProxyManifestTemplate {
|
|
56
|
+
readonly apps: readonly PlatformProxyApp[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The template's entry for one platform service.
|
|
60
|
+
*
|
|
61
|
+
* The app IDS live in the template, so a caller that needs one — the deploy's schema reconcile needs
|
|
62
|
+
* the console's — reads it from there rather than restating a literal that could drift from the
|
|
63
|
+
* document the proxy is actually configured with.
|
|
64
|
+
*/
|
|
65
|
+
export declare const platformProxyAppFor: (template: PlatformProxyManifestTemplate, service: PlatformProxyService) => PlatformProxyApp;
|
|
66
|
+
/** Where one app answers in a particular composition. */
|
|
67
|
+
export interface PlatformProxyPlacement {
|
|
68
|
+
/** Public hostnames, without a port — `parseProxyManifest` refuses a `:port` suffix. */
|
|
69
|
+
readonly hosts: readonly string[];
|
|
70
|
+
/** Overrides the private dial address. The local composition runs IAM on a port of its own. */
|
|
71
|
+
readonly upstream?: string;
|
|
72
|
+
}
|
|
73
|
+
/** One composition of the platform: a deployed installation, or the local Docker stack. */
|
|
74
|
+
export interface PlatformProxyComposition {
|
|
75
|
+
/** The scheme the BROWSER speaks to these apps — configuration, never a header (see `ProxyApp.scheme`). */
|
|
76
|
+
readonly scheme: 'http' | 'https';
|
|
77
|
+
readonly placement: Readonly<Record<PlatformProxyService, PlatformProxyPlacement>>;
|
|
78
|
+
/**
|
|
79
|
+
* The public IAM origin that issues OAuth tokens. Present only when the installation enables MCP
|
|
80
|
+
* authoring; absent leaves every `oauthResource` unregistered and serves each service's table without OAuth.
|
|
81
|
+
*/
|
|
82
|
+
readonly authorizationServer?: string;
|
|
83
|
+
/** The port browsers reach every app on, when it is not the scheme's default. The local composition's is 18080. */
|
|
84
|
+
readonly publicPort?: number;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The RFC 8707 resource URI and RFC 9728 metadata URL of an app's OAuth resource, bound to the app's
|
|
88
|
+
* FIRST host: the proxy refuses a resource on a host the app does not answer on.
|
|
89
|
+
*/
|
|
90
|
+
export declare const platformOAuthResourceUris: (composition: Pick<PlatformProxyComposition, "scheme" | "publicPort">, hosts: readonly string[], template: PlatformOAuthResourceTemplate) => {
|
|
91
|
+
readonly resource: string;
|
|
92
|
+
readonly resourceMetadata: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Bind a template to one composition and get the document the proxy actually parses.
|
|
96
|
+
*
|
|
97
|
+
* The result is returned THROUGH `parseProxyManifest`, so a duplicate id, a repeated host or a `:port`
|
|
98
|
+
* suffix is refused right here instead of at a deployed proxy's next build.
|
|
99
|
+
*/
|
|
100
|
+
export declare const resolvePlatformProxyManifest: (template: PlatformProxyManifestTemplate, composition: PlatformProxyComposition) => PlatformProxyManifest;
|
|
101
|
+
/** The platform proxy's manifest: one installation entry per platform service. */
|
|
102
|
+
export interface PlatformProxyManifest {
|
|
103
|
+
apps: InstallationProxyApp[];
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* `FABRIKA_SERVICE_TABLE_DIGEST` for a service: the digest of the table this manifest publishes for it, which the
|
|
107
|
+
* service compares with its own and refuses to start under another.
|
|
108
|
+
*/
|
|
109
|
+
export declare const platformServiceTableDigest: (manifest: PlatformProxyManifest, appId: string) => string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** `--secrets-file`: where the local copy goes. A new file, outside the source checkout. */
|
|
2
|
+
export declare const SECRETS_FILE_FLAG = "--secrets-file";
|
|
3
|
+
export declare const SECRETS_FILE_VARIABLE = "FABRIKA_PLATFORM_SECRETS_FILE";
|
|
4
|
+
/**
|
|
5
|
+
* Settle the path before anything is contacted.
|
|
6
|
+
*
|
|
7
|
+
* Refused when it exists, because overwriting one would destroy another installation's only copy, and
|
|
8
|
+
* when it is inside the source checkout, where it would dirty the checkout a deploy uploads and could be
|
|
9
|
+
* committed.
|
|
10
|
+
*/
|
|
11
|
+
export declare const checkedSecretsFilePath: (path: string, sourceDir: string) => string;
|
|
12
|
+
/**
|
|
13
|
+
* The file's text: comment lines, then shell-sourceable assignments, named as the commands that read
|
|
14
|
+
* them name them. `header` is the provider's own lines, each written as a `#` comment.
|
|
15
|
+
*/
|
|
16
|
+
export declare const renderSecretsFile: (header: readonly string[], assignments: readonly (readonly [string, string])[]) => string;
|
|
17
|
+
/** Create the file with mode 0600, failing rather than replacing one that appeared since the check. */
|
|
18
|
+
export declare const writeSecretsFile: (path: string, text: string) => Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A 256-bit secret in base64url, never starting with `-` or `_`.
|
|
3
|
+
*
|
|
4
|
+
* The re-roll is copied from `@fabrika/local-stack`'s `prepare.ts` and it is not superstition: a
|
|
5
|
+
* credential beginning with `-` reads as a FLAG to anything that later takes it on a command line, no
|
|
6
|
+
* matter how it is quoted. One rolled password beginning with `-` made `mc alias set` print its usage
|
|
7
|
+
* and loop forever. It costs nothing and removes a bug that appears about one install in sixteen.
|
|
8
|
+
*/
|
|
9
|
+
export declare const randomSecret: () => string;
|
|
10
|
+
/** The `px_` prefix IAM's own credentials carry, so a key looks like what it is wherever it turns up. */
|
|
11
|
+
export declare const randomPxKey: () => string;
|
|
12
|
+
/** The control plane's vault KEK. base64, NOT base64url: the vault imports these bytes as an AES key. */
|
|
13
|
+
export declare const generateVaultKey: () => string;
|
|
14
|
+
/** IAM's token-signing material: a JSON array with one ES256 private JWK, index 0 the active signer. */
|
|
15
|
+
export declare const generateSigningKeys: () => string;
|
|
16
|
+
/** Everything a container installation is seeded with. Several of these are shared by more than one service. */
|
|
17
|
+
export interface InstallationSecrets {
|
|
18
|
+
/** IAM's token-signing material: a JSON array of ES256 private JWKs, index 0 active. */
|
|
19
|
+
readonly signingKeys: string;
|
|
20
|
+
/** Authenticates IAM's management `/rpc/*` surface. Held by IAM, control and Operations. */
|
|
21
|
+
readonly rpcKey: string;
|
|
22
|
+
/** Authenticates IAM's `/auth/mint/*` surface, which the proxy calls on the cold path. */
|
|
23
|
+
readonly proxyKey: string;
|
|
24
|
+
/** The `px_` admin bearer IAM admits as a synthetic global admin. `platform init` and `admin` take it. */
|
|
25
|
+
readonly provisioningKey: string;
|
|
26
|
+
/** The catalog credential control and Operations share. No `px_` prefix — it is not an IAM credential. */
|
|
27
|
+
readonly operationsSyncKey: string;
|
|
28
|
+
/** The control plane's vault KEK: 32 raw bytes at base64. Its loss is unrecoverable by design. */
|
|
29
|
+
readonly vaultKey: string;
|
|
30
|
+
}
|
|
31
|
+
/** Roll one installation's secrets. Pure entropy in, no I/O, nothing persisted. */
|
|
32
|
+
export declare const generateInstallationSecrets: () => InstallationSecrets;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { OidcClient } from './auth-methods';
|
|
2
|
+
import type { InstallationEmail } from './email';
|
|
3
|
+
import type { IamOAuthConfig } from './mcp';
|
|
4
|
+
import { type PlatformHosts } from './proxy-manifest';
|
|
5
|
+
import type { InstallationSecrets } from './secrets';
|
|
6
|
+
/** The four services an installation configures. Each is a service of the platform's own topology. */
|
|
7
|
+
export type PlatformService = 'iam' | 'operations' | 'control' | 'proxy';
|
|
8
|
+
/** Each service's variables, in the order they are written. */
|
|
9
|
+
export type PlatformServiceEnvironment = Readonly<Record<PlatformService, ReadonlyMap<string, string>>>;
|
|
10
|
+
/** IAM's OAuth configuration for MCP clients (ADR-0049): written only when the installation enables MCP authoring. */
|
|
11
|
+
export declare const IAM_OAUTH_CONFIG_VARIABLE = "FABRIKA_IAM_OAUTH_CONFIG";
|
|
12
|
+
/** IAM's OIDC client secret, as IAM's Bun runtime reads it. The operator's credential: written sensitive, never generated. */
|
|
13
|
+
export declare const IAM_OIDC_CLIENT_SECRET_VARIABLE = "OIDC_CLIENT_SECRET";
|
|
14
|
+
/**
|
|
15
|
+
* How people sign in to IAM; `oidc` absent means OIDC is off. Neither method is not a value, as IAM refuses to boot
|
|
16
|
+
* with neither.
|
|
17
|
+
*/
|
|
18
|
+
export type InstallationAuthentication = {
|
|
19
|
+
readonly passwordEnabled: true;
|
|
20
|
+
readonly oidc?: OidcClient;
|
|
21
|
+
} | {
|
|
22
|
+
readonly passwordEnabled: false;
|
|
23
|
+
readonly oidc: OidcClient;
|
|
24
|
+
};
|
|
25
|
+
/** An object store's coordinates, in the provider's own spelling (values or references to them). */
|
|
26
|
+
export interface PlatformStorage {
|
|
27
|
+
readonly bucket: string;
|
|
28
|
+
readonly accessKeyId: string;
|
|
29
|
+
readonly secretAccessKey: string;
|
|
30
|
+
readonly endpoint: string;
|
|
31
|
+
}
|
|
32
|
+
/** Where each service's data lives. */
|
|
33
|
+
export interface PlatformData {
|
|
34
|
+
readonly iamDatabase: string;
|
|
35
|
+
readonly controlDatabase: string;
|
|
36
|
+
readonly operationsDatabase: string;
|
|
37
|
+
/** Control's run logs. */
|
|
38
|
+
readonly runLogs: PlatformStorage;
|
|
39
|
+
/** Operations' artifacts and source maps. */
|
|
40
|
+
readonly operationsBlobs: PlatformStorage;
|
|
41
|
+
}
|
|
42
|
+
/** Where the installation answers. Both the bring-up and every deploy derive their variables from these. */
|
|
43
|
+
export interface PlatformPlacementInput {
|
|
44
|
+
readonly environment: string;
|
|
45
|
+
readonly scheme: 'http' | 'https';
|
|
46
|
+
readonly hosts: PlatformHosts;
|
|
47
|
+
/** The private address the platform proxy dials IAM at, which owns the session (`host:port`). */
|
|
48
|
+
readonly iamUpstream: string;
|
|
49
|
+
}
|
|
50
|
+
/** What `installationServiceEnvironment` needs. Everything in it is settled before the first write. */
|
|
51
|
+
export interface InstallationServiceInput extends PlatformPlacementInput {
|
|
52
|
+
readonly secrets: InstallationSecrets;
|
|
53
|
+
readonly data: PlatformData;
|
|
54
|
+
/** IAM sends its own mail with it, and Control hands it to applications whose job declares `mailer: 'installation'`. */
|
|
55
|
+
readonly email: InstallationEmail;
|
|
56
|
+
readonly authentication: InstallationAuthentication;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* EVERY fabrika variable a bring-up places, per service.
|
|
60
|
+
*
|
|
61
|
+
* The proxy manifest is deliberately absent: the deploy owns it, in the same run as the code it
|
|
62
|
+
* describes (ADR-0027).
|
|
63
|
+
*/
|
|
64
|
+
export declare const installationServiceEnvironment: (input: InstallationServiceInput) => PlatformServiceEnvironment;
|
|
65
|
+
/**
|
|
66
|
+
* The fabrika variables whose VALUE a bring-up generates, per service.
|
|
67
|
+
*
|
|
68
|
+
* Their presence on a live service is what "this project already holds an installation" means, and they
|
|
69
|
+
* are written as credentials. A provider adds the names of its own that carry a generated value.
|
|
70
|
+
*/
|
|
71
|
+
export declare const INSTALLATION_SECRET_VARIABLES: Readonly<Record<PlatformService, readonly string[]>>;
|
|
72
|
+
/**
|
|
73
|
+
* The secret the platform proxy sends IAM's route, so IAM honours the request id only from the proxy
|
|
74
|
+
* (ADR-0022 rule 5). Derived from the provisioning key, which every deploy holds, so each deploy writes the same value
|
|
75
|
+
* and nothing stores or reads one back. Never from the proxy key: namespace proxies hold that one.
|
|
76
|
+
*/
|
|
77
|
+
export declare const deriveIamProxySecret: (provisioningKey: string) => string;
|
|
78
|
+
/** What a deploy derives the service environment from. */
|
|
79
|
+
export interface DeployedServiceInput extends PlatformPlacementInput {
|
|
80
|
+
/** `FABRIKA_IAM_PROVISIONING_KEY`, which the IAM proxy secret is derived from. */
|
|
81
|
+
readonly provisioningKey: string;
|
|
82
|
+
/** The digest of the console table the deploy's manifest publishes (`platformServiceTableDigest`). */
|
|
83
|
+
readonly controlTableDigest: string;
|
|
84
|
+
/** Present only when the installation enables MCP authoring. */
|
|
85
|
+
readonly oauthConfig?: IamOAuthConfig;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The per-installation configuration a deploy writes, derived from where the installation answers.
|
|
89
|
+
*
|
|
90
|
+
* IAM's OAuth configuration is present only when MCP authoring is enabled; without it the variable is left
|
|
91
|
+
* as it is, and the manifest — whose `/mcp` row then admits no OAuth token — is what turns MCP off.
|
|
92
|
+
*/
|
|
93
|
+
export declare const deployedServiceEnvironment: (input: DeployedServiceInput) => PlatformServiceEnvironment;
|