logical.certbotClifunctionno test imports itfunction certbotCli(p: CertificateProfile): stringThe cli.ini of certbot: the authority, the account's contact, the DNS plugin and where its credentials are.
The requirements of Archon that a profile makes, over the kinds it has (package, directory, file, service), and the text of each file. Nothing here runs a program or reads a machine.
import { postgresRequirements } from "./services.ts";
const r = postgresRequirements({ machine: "olympia", version: 18, port: 5432, listen: ["localhost"] });
r.kind; // "ok"logical.certbotClifunctionno test imports itfunction certbotCli(p: CertificateProfile): stringThe cli.ini of certbot: the authority, the account's contact, the DNS plugin and where its credentials are.
logical.certificateRequirementsfunctionno test imports itfunction certificateRequirements(p: CertificateProfile): Result<readonly Requirement[], readonly string[]>The requirements of a machine that obtains and renews a certificate.
logical.issueUnitfunctionno test imports itfunction issueUnit(p: CertificateProfile): stringThe unit that obtains the certificate once, where it is not yet there.
logical.mailNamefunctionno test imports itfunction mailName(p: MailRelayProfile): stringThe name the machine says in mail: <machine>.<tag>.<domain>.
logical.mailRelayRequirementsfunctionno test imports itfunction mailRelayRequirements(p: MailRelayProfile): Result<readonly Requirement[], readonly string[]>The requirements of a send-only mail relay.
logical.mainCffunctionno test imports itfunction mainCf(p: MailRelayProfile): stringPostfix's main.cf of a null client that relays everything over implicit TLS.
logical.mcpAccessRequirementsfunctionno test imports itfunction mcpAccessRequirements(p: McpAccessProfile): Result<readonly Requirement[], readonly string[]>The requirements of a machine that serves a program as a tool server over ssh: the account's .ssh folder and its authorized_keys, which let in only the keys of the profile and only to that program.
logical.mcpAuthorizedKeysfunctionno test imports itfunction mcpAuthorizedKeys(p: McpAccessProfile): Result<string, readonly string[]>The authorized_keys of the account: a line for each key that forces <program> mcp (with --read-only for a key that may only read), and so no shell, no terminal and no forwarding (restrict).
logical.postgresDropInfunctionno test imports itfunction postgresDropIn(p: PostgresProfile): stringThe drop-in of PostgreSQL's configuration: the port, the addresses, the logs.
logical.postgresRequirementsfunctionno test imports itfunction postgresRequirements(p: PostgresProfile): Result<readonly Requirement[], readonly string[]>The requirements of a PostgreSQL cluster, the one Ubuntu's package makes.
logical.recipientMapfunctionno test imports itfunction recipientMap(p: MailRelayProfile): stringEvery address of a local account goes to the mailbox of the fleet.
logical.SECRET_PATHSconstno test imports itconst SECRET_PATHS: { readonly mailSasl: "/etc/postfix/sasl_passwd"; readonly cloudflareCredentials: "/etc/letsencrypt/cloudflare.ini"; }Where the secrets of the services are put on a machine, by the owner and never in the model.
logical.senderMapfunctionno test imports itfunction senderMap(p: MailRelayProfile): stringEvery sender becomes <user>+<machine>.<tag>@<domain>, as RFC 5233 subaddresses.
certbotClifunctionno test imports itfunction certbotCli(p: CertificateProfile): stringThe cli.ini of certbot: the authority, the account's contact, the DNS plugin and where its credentials are.
certificateRequirementsfunctionfunction certificateRequirements(p: CertificateProfile): Result<readonly Requirement[], readonly string[]>The requirements of a machine that obtains and renews a certificate.
issueUnitfunctionfunction issueUnit(p: CertificateProfile): stringThe unit that obtains the certificate once, where it is not yet there.
mailNamefunctionno test imports itfunction mailName(p: MailRelayProfile): stringThe name the machine says in mail: <machine>.<tag>.<domain>.
mailRelayRequirementsfunctionfunction mailRelayRequirements(p: MailRelayProfile): Result<readonly Requirement[], readonly string[]>The requirements of a send-only mail relay.
mainCffunctionfunction mainCf(p: MailRelayProfile): stringPostfix's main.cf of a null client that relays everything over implicit TLS.
mcpAccessRequirementsfunctionfunction mcpAccessRequirements(p: McpAccessProfile): Result<readonly Requirement[], readonly string[]>The requirements of a machine that serves a program as a tool server over ssh: the account's .ssh folder and its authorized_keys, which let in only the keys of the profile and only to that program.
mcpAuthorizedKeysfunctionfunction mcpAuthorizedKeys(p: McpAccessProfile): Result<string, readonly string[]>The authorized_keys of the account: a line for each key that forces <program> mcp (with --read-only for a key that may only read), and so no shell, no terminal and no forwarding (restrict).
postgresDropInfunctionfunction postgresDropIn(p: PostgresProfile): stringThe drop-in of PostgreSQL's configuration: the port, the addresses, the logs.
postgresRequirementsfunctionfunction postgresRequirements(p: PostgresProfile): Result<readonly Requirement[], readonly string[]>The requirements of a PostgreSQL cluster, the one Ubuntu's package makes.
recipientMapfunctionfunction recipientMap(p: MailRelayProfile): stringEvery address of a local account goes to the mailbox of the fleet.
SECRET_PATHSconstno test imports itconst SECRET_PATHS: { readonly mailSasl: "/etc/postfix/sasl_passwd"; readonly cloudflareCredentials: "/etc/letsencrypt/cloudflare.ini"; }Where the secrets of the services are put on a machine, by the owner and never in the model.
senderMapfunctionfunction senderMap(p: MailRelayProfile): stringEvery sender becomes <user>+<machine>.<tag>@<domain>, as RFC 5233 subaddresses.