Skip to content

Commit 26ec7af

Browse files
feat(worker,web): Support google secrets as a token type (#594)
1 parent 7e161e6 commit 26ec7af

35 files changed

+4624
-577
lines changed

docs/snippets/schemas/v3/app.schema.mdx

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,26 @@
3333
"properties": {
3434
"env": {
3535
"type": "string",
36-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
36+
"description": "The name of the environment variable that contains the token."
3737
}
3838
},
3939
"required": [
4040
"env"
4141
],
4242
"additionalProperties": false
43+
},
44+
{
45+
"type": "object",
46+
"properties": {
47+
"googleCloudSecret": {
48+
"type": "string",
49+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
50+
}
51+
},
52+
"required": [
53+
"googleCloudSecret"
54+
],
55+
"additionalProperties": false
4356
}
4457
]
4558
}
@@ -82,13 +95,26 @@
8295
"properties": {
8396
"env": {
8497
"type": "string",
85-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
98+
"description": "The name of the environment variable that contains the token."
8699
}
87100
},
88101
"required": [
89102
"env"
90103
],
91104
"additionalProperties": false
105+
},
106+
{
107+
"type": "object",
108+
"properties": {
109+
"googleCloudSecret": {
110+
"type": "string",
111+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
112+
}
113+
},
114+
"required": [
115+
"googleCloudSecret"
116+
],
117+
"additionalProperties": false
92118
}
93119
]
94120
}

docs/snippets/schemas/v3/azuredevops.schema.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,26 @@
1717
"properties": {
1818
"env": {
1919
"type": "string",
20-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
20+
"description": "The name of the environment variable that contains the token."
2121
}
2222
},
2323
"required": [
2424
"env"
2525
],
2626
"additionalProperties": false
27+
},
28+
{
29+
"type": "object",
30+
"properties": {
31+
"googleCloudSecret": {
32+
"type": "string",
33+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
34+
}
35+
},
36+
"required": [
37+
"googleCloudSecret"
38+
],
39+
"additionalProperties": false
2740
}
2841
]
2942
},

docs/snippets/schemas/v3/bitbucket.schema.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,26 @@
2121
"properties": {
2222
"env": {
2323
"type": "string",
24-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
24+
"description": "The name of the environment variable that contains the token."
2525
}
2626
},
2727
"required": [
2828
"env"
2929
],
3030
"additionalProperties": false
31+
},
32+
{
33+
"type": "object",
34+
"properties": {
35+
"googleCloudSecret": {
36+
"type": "string",
37+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
38+
}
39+
},
40+
"required": [
41+
"googleCloudSecret"
42+
],
43+
"additionalProperties": false
3144
}
3245
]
3346
},

docs/snippets/schemas/v3/connection.schema.mdx

Lines changed: 70 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,26 @@
2121
"properties": {
2222
"env": {
2323
"type": "string",
24-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
24+
"description": "The name of the environment variable that contains the token."
2525
}
2626
},
2727
"required": [
2828
"env"
2929
],
3030
"additionalProperties": false
31+
},
32+
{
33+
"type": "object",
34+
"properties": {
35+
"googleCloudSecret": {
36+
"type": "string",
37+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
38+
}
39+
},
40+
"required": [
41+
"googleCloudSecret"
42+
],
43+
"additionalProperties": false
3144
}
3245
]
3346
},
@@ -216,13 +229,26 @@
216229
"properties": {
217230
"env": {
218231
"type": "string",
219-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
232+
"description": "The name of the environment variable that contains the token."
220233
}
221234
},
222235
"required": [
223236
"env"
224237
],
225238
"additionalProperties": false
239+
},
240+
{
241+
"type": "object",
242+
"properties": {
243+
"googleCloudSecret": {
244+
"type": "string",
245+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
246+
}
247+
},
248+
"required": [
249+
"googleCloudSecret"
250+
],
251+
"additionalProperties": false
226252
}
227253
]
228254
},
@@ -405,13 +431,26 @@
405431
"properties": {
406432
"env": {
407433
"type": "string",
408-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
434+
"description": "The name of the environment variable that contains the token."
409435
}
410436
},
411437
"required": [
412438
"env"
413439
],
414440
"additionalProperties": false
441+
},
442+
{
443+
"type": "object",
444+
"properties": {
445+
"googleCloudSecret": {
446+
"type": "string",
447+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
448+
}
449+
},
450+
"required": [
451+
"googleCloudSecret"
452+
],
453+
"additionalProperties": false
415454
}
416455
]
417456
},
@@ -659,13 +698,26 @@
659698
"properties": {
660699
"env": {
661700
"type": "string",
662-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
701+
"description": "The name of the environment variable that contains the token."
663702
}
664703
},
665704
"required": [
666705
"env"
667706
],
668707
"additionalProperties": false
708+
},
709+
{
710+
"type": "object",
711+
"properties": {
712+
"googleCloudSecret": {
713+
"type": "string",
714+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
715+
}
716+
},
717+
"required": [
718+
"googleCloudSecret"
719+
],
720+
"additionalProperties": false
669721
}
670722
]
671723
},
@@ -814,13 +866,26 @@
814866
"properties": {
815867
"env": {
816868
"type": "string",
817-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
869+
"description": "The name of the environment variable that contains the token."
818870
}
819871
},
820872
"required": [
821873
"env"
822874
],
823875
"additionalProperties": false
876+
},
877+
{
878+
"type": "object",
879+
"properties": {
880+
"googleCloudSecret": {
881+
"type": "string",
882+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
883+
}
884+
},
885+
"required": [
886+
"googleCloudSecret"
887+
],
888+
"additionalProperties": false
824889
}
825890
]
826891
},

docs/snippets/schemas/v3/gitea.schema.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,26 @@
1717
"properties": {
1818
"env": {
1919
"type": "string",
20-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
20+
"description": "The name of the environment variable that contains the token."
2121
}
2222
},
2323
"required": [
2424
"env"
2525
],
2626
"additionalProperties": false
27+
},
28+
{
29+
"type": "object",
30+
"properties": {
31+
"googleCloudSecret": {
32+
"type": "string",
33+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
34+
}
35+
},
36+
"required": [
37+
"googleCloudSecret"
38+
],
39+
"additionalProperties": false
2740
}
2841
]
2942
},

docs/snippets/schemas/v3/github.schema.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,26 @@
1717
"properties": {
1818
"env": {
1919
"type": "string",
20-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
20+
"description": "The name of the environment variable that contains the token."
2121
}
2222
},
2323
"required": [
2424
"env"
2525
],
2626
"additionalProperties": false
27+
},
28+
{
29+
"type": "object",
30+
"properties": {
31+
"googleCloudSecret": {
32+
"type": "string",
33+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
34+
}
35+
},
36+
"required": [
37+
"googleCloudSecret"
38+
],
39+
"additionalProperties": false
2740
}
2841
]
2942
},

docs/snippets/schemas/v3/gitlab.schema.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,26 @@
1717
"properties": {
1818
"env": {
1919
"type": "string",
20-
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
20+
"description": "The name of the environment variable that contains the token."
2121
}
2222
},
2323
"required": [
2424
"env"
2525
],
2626
"additionalProperties": false
27+
},
28+
{
29+
"type": "object",
30+
"properties": {
31+
"googleCloudSecret": {
32+
"type": "string",
33+
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
34+
}
35+
},
36+
"required": [
37+
"googleCloudSecret"
38+
],
39+
"additionalProperties": false
2740
}
2841
]
2942
},

0 commit comments

Comments
 (0)