/** Substrate v1.0's install: its control plane's namespace, API Service and owner client. */ export declare const SUBSTRATE_NAMESPACE = "ate-system"; export declare const SUBSTRATE_API_SERVICE = "api"; export declare const SUBSTRATE_OWNER_ACCOUNT = "ate-client"; /** The audience ate-api-server accepts: its Service's DNS name. */ export declare const SUBSTRATE_AUDIENCE = "api.ate-system.svc"; /** Preferred host ports for the edge: the Harness API's and the gates' TLS fronts. */ export declare const PREFERRED_EDGE_PORTS: { readonly harness: 8793; readonly gates: 8794; readonly keys: 8795; }; /** The name actors dial for the edge, unique to the Tenant's namespace. */ export declare function edgeHost(namespace: string): string; /** * RBAC for the sandboxes service on Substrate: in the Tenant's namespace, its state ConfigMaps * and a token for its own ServiceAccount (its Substrate identity); in Substrate's namespace, a * port-forward to ate-api-server; cluster-wide, reading Substrate's trust bundles and watching * worker pods (label `ate.dev/worker-pool`), so it can suspend the Tenant's actors on one that * stops before Substrate's 30 minutes are up (suspend before drain). */ export declare function substrateManifests(namespace: string): object[]; /** * CoreDNS's Corefile with `host` resolving to `address` for actors: a `hosts` block in the * default server block, marked so a later `enable` replaces it. Undefined when the Corefile has * no `.:53` block or already has a `hosts` plugin of its own. */ export declare function corefileWithEdge(corefile: string, host: string, address: string): string | undefined; /** * Keys at Substrate's egress (ADR-142): the keys provider, `sandboxes provider` from the sandboxes * image, runs beside Substrate's egress in its namespace. One per cluster: its config Secret holds * an entry per Tenant, by atespace. Substrate learns it at its own install * (`--credential-provider`); `enable` deploys it and checks that registration, never changing * Substrate's install. */ export declare const KEYS_PROVIDER_NAME = "keys.nylorun.dev"; export declare const KEYS_PROVIDER = "nylorun-keys-provider"; export declare const KEYS_PROVIDER_PORT = 50051; /** The address Substrate's egress dials, as `ate-setup`'s `--credential-provider` names it. */ export declare const KEYS_PROVIDER_ADDRESS = "nylorun-keys-provider.ate-system.svc:50051"; /** The flag to install Substrate with, so its egress asks the keys provider. */ export declare const KEYS_PROVIDER_FLAG = "--credential-provider='[{\"name\":\"keys.nylorun.dev\",\"address\":\"nylorun-keys-provider.ate-system.svc:50051\"}]'"; /** One Tenant's entry in the keys provider's config. */ export interface KeysProviderTenant { readonly decideUrl: string; readonly token: string; readonly edgeCa: string; readonly outside?: { readonly url: string; readonly token: string; }; } /** Whether Substrate's egress was installed with the keys provider among its providers. */ export declare function keysProviderRegistered(deployment: unknown): boolean; /** * The keys provider: its ServiceAccount, Deployment, Service, a NetworkPolicy that admits only * Substrate's egress, and its config Secret. Mutual TLS as Substrate's reference provider serves * it: its servicedns pod certificate, callers' podidentity certificates. */ export declare function keysProviderManifests(image: string, tenants: Record): object[];