@cyc-seattle/platform 1.34.0 → 1.36.0
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/README.md +7 -7
- package/dist/outputs.d.ts +2 -0
- package/dist/outputs.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,13 +6,13 @@ app owns. The apps that run on it live in their own repos, such as
|
|
|
6
6
|
|
|
7
7
|
## Stacks
|
|
8
8
|
|
|
9
|
-
| Stack | Holds
|
|
10
|
-
| ------------------------------- |
|
|
11
|
-
| [`bootstrap`](stacks/bootstrap) | Service accounts and project IAM, the Pulumi state buckets and KMS keys,
|
|
12
|
-
| [`infra`](stacks/infra) | The VPC, the cluster subnet and its Cloud NAT on a static address, the private services peering, the prod and dev Cloud SQL instances, the DNS zones, Artifact Registry and its cleanup policy, the GKE Autopilot cluster, the shared Gateway, its address, certificates, and dev's DNS records, the `dev` and `prod` namespaces with their quotas and network policies, dev's RBAC, the prod Job alerts, the log exclusions, and each environment's `platform/outputs.json` | `deploy-runner`, from Actions after approval. A deployer, with `mise run deploy`, when breaking glass. |
|
|
13
|
-
| [`smoke`](stacks/smoke) | One `WebService` in dev, at `smoke.dev.cycsail.team`, for the integration tests
|
|
14
|
-
| [`backend`](stacks/backend) | Directus, with the schema apply from `schemas/`, its roles, policies, and permission rules, the sync machine users, its OIDC client, and MCP, and the clubspot-sync and gsuite-sync CronJobs, with dev's Clubspot and Workspace fakes
|
|
15
|
-
| [`authentik`](stacks/authentik) | Authentik, the sign-in at `login.<domain>`: its server and worker, database, secrets, and A record, dev's Mailpit, and its own configuration: flows, stages, policies, the Google source, the `staff` group, and the Directus OIDC and portal proxy applications
|
|
9
|
+
| Stack | Holds | Applied by |
|
|
10
|
+
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
|
|
11
|
+
| [`bootstrap`](stacks/bootstrap) | Service accounts and project IAM, the Pulumi state buckets and KMS keys, the org's GitHub repos and settings, and Firebase on the project | A human with project Owner and `gh` `admin:org`. Never CI. |
|
|
12
|
+
| [`infra`](stacks/infra) | The VPC, the cluster subnet and its Cloud NAT on a static address, the private services peering, the prod and dev Cloud SQL instances, the DNS zones, Artifact Registry and its cleanup policy, the GKE Autopilot cluster, the shared Gateway, its address, certificates, and dev's DNS records, the `dev` and `prod` namespaces with their quotas and network policies, dev's RBAC, the prod Job alerts, the log exclusions, the public website's Firebase Hosting site, and each environment's `platform/outputs.json` | `deploy-runner`, from Actions after approval. A deployer, with `mise run deploy`, when breaking glass. |
|
|
13
|
+
| [`smoke`](stacks/smoke) | One `WebService` in dev, at `smoke.dev.cycsail.team`, for the integration tests | `deploy-dev`, from Actions for each queued PR. A deployer, with `PULUMI_STACK=dev mise run deploy`, when breaking glass. |
|
|
14
|
+
| [`backend`](stacks/backend) | Directus, with the schema apply from `schemas/`, its roles, policies, and permission rules, the sync machine users, its OIDC client, and MCP, and the clubspot-sync and gsuite-sync CronJobs, with dev's Clubspot and Workspace fakes | `deploy-dev`, from Actions for each queued PR, and `deploy-runner` on a push to `main`, after `infra`. |
|
|
15
|
+
| [`authentik`](stacks/authentik) | Authentik, the sign-in at `login.<domain>`: its server and worker, database, secrets, and A record, dev's Mailpit, and its own configuration: flows, stages, policies, the Google source, the `staff` group, and the Directus OIDC and portal proxy applications | `deploy-dev`, from Actions for each queued PR, and `deploy-runner` on a push to `main`, after `backend`. |
|
|
16
16
|
|
|
17
17
|
## @cyc-seattle/platform
|
|
18
18
|
|
package/dist/outputs.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export type PlatformOutputs = z.infer<typeof platformOutputsSchema>;
|
|
|
22
22
|
export declare const outputsObject = "platform/outputs.json";
|
|
23
23
|
/** The state bucket of an environment, as `stacks/bootstrap/state.ts` names it. */
|
|
24
24
|
export declare function stateBucket(project: string, environment: string): string;
|
|
25
|
+
/** The bucket Directus keeps an environment's uploaded files in, as `stacks/infra/directus-files.ts` names it. */
|
|
26
|
+
export declare function directusFilesBucket(project: string, environment: string): string;
|
|
25
27
|
/** Parses and validates the outputs file's text. `source` names the file in error messages. */
|
|
26
28
|
export declare function parsePlatformOutputs(text: string, source: string): PlatformOutputs;
|
|
27
29
|
export interface PlatformOutputsArgs {
|
package/dist/outputs.js
CHANGED
|
@@ -24,6 +24,10 @@ export const outputsObject = "platform/outputs.json";
|
|
|
24
24
|
export function stateBucket(project, environment) {
|
|
25
25
|
return `${project}-pulumi-${environment}`;
|
|
26
26
|
}
|
|
27
|
+
/** The bucket Directus keeps an environment's uploaded files in, as `stacks/infra/directus-files.ts` names it. */
|
|
28
|
+
export function directusFilesBucket(project, environment) {
|
|
29
|
+
return `${project}-directus-files-${environment}`;
|
|
30
|
+
}
|
|
27
31
|
/** Parses and validates the outputs file's text. `source` names the file in error messages. */
|
|
28
32
|
export function parsePlatformOutputs(text, source) {
|
|
29
33
|
let json;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyc-seattle/platform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"description": "Pulumi components for CYC's shared Google Cloud platform: WebService, the platform outputs reader, and the stacks that build the platform",
|
|
5
5
|
"author": "CYC Community Sailing Center",
|
|
6
6
|
"license": "Apache-2.0",
|