kuriko 0.0.0-stage → 0.2.1
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/LICENSE +18 -0
- package/README.md +12 -2
- package/kuriko.mjs +408 -0
- package/module/.terraform.lock.hcl +42 -0
- package/module/README.md +15 -0
- package/module/main.tf +656 -0
- package/module/outputs.tf +39 -0
- package/module/variables.tf +68 -0
- package/module/versions.tf +7 -0
- package/package.json +17 -4
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# This file is maintained automatically by "terraform init".
|
|
2
|
+
# Manual edits may be lost in future updates.
|
|
3
|
+
|
|
4
|
+
provider "registry.terraform.io/hashicorp/google" {
|
|
5
|
+
version = "8.8.1"
|
|
6
|
+
constraints = "8.8.1"
|
|
7
|
+
hashes = [
|
|
8
|
+
"h1:cj2w8+P7qqGDbhG+PIJcXmtu0CMBNLqdTNLpLgvhJrw=",
|
|
9
|
+
"zh:1510c0a5ec95676bf9df8f4c4798eb21f1ddb49f1d0bfc52e323fcdec5240bad",
|
|
10
|
+
"zh:18122322d83564567bfa8c4075f1b33263bf30217345c4cf967e5d9fb7df6134",
|
|
11
|
+
"zh:3468de1e43ad4bee6d5191c23be7dbb39f6c1559027c598f99869f7e7fe180ba",
|
|
12
|
+
"zh:55bfd12669b8dd9913e5ee00df060c3f53c2976a92291262c02eaa0504e6b5d4",
|
|
13
|
+
"zh:5b643a92495934a22c594aca095eace27c817d83ef896042e4360b87216285df",
|
|
14
|
+
"zh:5e9326c8392700c2d8a998b19ff253b7fcbe01a39e14c5518233da1b98d4d99b",
|
|
15
|
+
"zh:9522b2ed7cd335488c7a91509bb70cf134a318b697c38255ed184209d11f0436",
|
|
16
|
+
"zh:a55f6fb2f998b39dad5bb107c4c1b7ff022aa54cc77fe31e98d3ae8894833ce4",
|
|
17
|
+
"zh:a7509f8d1db99156bbf1b72e1acc25ccf093a8fd4af264464e1b054e90a87eb8",
|
|
18
|
+
"zh:b3ad9d84fc076f71cdd1574ca417e7b565b79a2d1e7afcc5ec211f1aaa8c0227",
|
|
19
|
+
"zh:f569b65999264a9416862bca5cd2a6177d94ccb0424f3a4ef424428912b9cb3c",
|
|
20
|
+
"zh:fd2a9f9741792a11d7f1fa9affe080c8b40b93e5f6a0b61cb25dfcd9c87dc44e",
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
provider "registry.terraform.io/hashicorp/random" {
|
|
25
|
+
version = "3.8.1"
|
|
26
|
+
constraints = "3.8.1"
|
|
27
|
+
hashes = [
|
|
28
|
+
"h1:u8AKlWVDTH5r9YLSeswoVEjiY72Rt4/ch7U+61ZDkiQ=",
|
|
29
|
+
"zh:08dd03b918c7b55713026037c5400c48af5b9f468f483463321bd18e17b907b4",
|
|
30
|
+
"zh:0eee654a5542dc1d41920bbf2419032d6f0d5625b03bd81339e5b33394a3e0ae",
|
|
31
|
+
"zh:229665ddf060aa0ed315597908483eee5b818a17d09b6417a0f52fd9405c4f57",
|
|
32
|
+
"zh:2469d2e48f28076254a2a3fc327f184914566d9e40c5780b8d96ebf7205f8bc0",
|
|
33
|
+
"zh:37d7eb334d9561f335e748280f5535a384a88675af9a9eac439d4cfd663bcb66",
|
|
34
|
+
"zh:741101426a2f2c52dee37122f0f4a2f2d6af6d852cb1db634480a86398fa3511",
|
|
35
|
+
"zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3",
|
|
36
|
+
"zh:a902473f08ef8df62cfe6116bd6c157070a93f66622384300de235a533e9d4a9",
|
|
37
|
+
"zh:b85c511a23e57a2147355932b3b6dce2a11e856b941165793a0c3d7578d94d05",
|
|
38
|
+
"zh:c5172226d18eaac95b1daac80172287b69d4ce32750c82ad77fa0768be4ea4b8",
|
|
39
|
+
"zh:dab4434dba34aad569b0bc243c2d3f3ff86dd7740def373f2a49816bd2ff819b",
|
|
40
|
+
"zh:f49fd62aa8c5525a5c17abd51e27ca5e213881d58882fd42fec4a545b53c9699",
|
|
41
|
+
]
|
|
42
|
+
}
|
package/module/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Kuriko on GCP (Terraform)
|
|
2
|
+
|
|
3
|
+
Installs Kuriko into one GCP project: Cloud Run (web, gateway, migrate job), Cloud SQL Postgres 17, Secret Manager, Cloud KMS, Artifact Registry, and three service accounts. The IAM layout is the security model; see the header of `main.tf`.
|
|
4
|
+
|
|
5
|
+
Before applying, the security team creates the IdP client secret (it never passes through Terraform):
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
printf '%s' "$CLIENT_SECRET" | gcloud secrets create kuriko-idp-client-secret --data-file=- --project=$PROJECT
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Data source credentials go in Secret Manager the same way, under any name (an existing one is fine). The install's `policy.yaml` names them, and `kuriko policy apply` lets the gateway read exactly those secrets, and nothing else.
|
|
12
|
+
|
|
13
|
+
Cloud Run URLs are deterministic (`https://kuriko-web-<project number>.<region>.run.app`), so the IdP redirect URI is known before the first apply: `terraform output idp_redirect_uri`.
|
|
14
|
+
|
|
15
|
+
Works with organizations that enforce domain-restricted sharing: the two public services turn off Cloud Run's invoker check rather than granting `allUsers`.
|