Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import z from "zod";
const SECRET_NAME_RE = /^[A-Z][A-Z0-9_]*$/;
/**
* Secret-name declarations. Host loads values from its secret store
* adapter (env, Bun.secrets, Vault, …) and fails fast when any
* `required: true` entry is missing at boot.
*/
export const secretSchema = z.object({
name: z
.string()
.regex(SECRET_NAME_RE, "secret name must be SCREAMING_SNAKE_CASE"),
required: z.boolean(),
});
export const secretsSchema = z.array(secretSchema).readonly();
export type Secret = z.infer<typeof secretSchema>;
export type Secrets = z.infer<typeof secretsSchema>;