Skip to content

Commit 67a4bad

Browse files
committed
chore: allow optional policy use
1 parent 24154ab commit 67a4bad

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

ibm_catalog.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@
314314
"description": "Set to `true` to automatically run the CI pipeline."
315315
},
316316
{
317+
"key": "force_create_standard_api_key",
318+
"type": "boolean",
319+
"default_value": true,
320+
"description": "Set to `true` to force create a standard api key. By default the generated apikey will be a service api key. It is recommended to use a Git Token when using the service api key. In the case where the user has been invited to an account and that user not the account owner, during toolchain creation the default compliance repositories will be created in that user's account and the service api will not have access to those repositories. In this case a Git Token for the repositories is required. See `repo_git_token_secret_name` for more details. The alternative is to set `force_create_standard_api_key` to `true` to create a standard api key.",
321+
"required": false
322+
},
323+
{
317324
"key": "create_git_token",
318325
"required": false,
319326
"type": "boolean",
@@ -872,6 +879,13 @@
872879
"description": "Set to `true` to automatically run the CI pipeline."
873880
},
874881
{
882+
"key": "force_create_standard_api_key",
883+
"type": "boolean",
884+
"default_value": true,
885+
"description": "Set to `true` to force create a standard api key. By default the generated apikey will be a service api key. It is recommended to use a Git Token when using the service api key. In the case where the user has been invited to an account and that user not the account owner, during toolchain creation the default compliance repositories will be created in that user's account and the service api will not have access to those repositories. In this case a Git Token for the repositories is required. See `repo_git_token_secret_name` for more details. The alternative is to set `force_create_standard_api_key` to `true` to create a standard api key.",
886+
"required": false
887+
},
888+
{
875889
"key": "create_git_token",
876890
"required": false,
877891
"type": "boolean",

kubernetes/stack_definition.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@
100100
"default": "devsecops-rg",
101101
"custom_config": {}
102102
},
103+
{
104+
"name": "force_create_standard_api_key",
105+
"required": false,
106+
"type": "boolean",
107+
"hidden": false,
108+
"default": true,
109+
"custom_config": {}
110+
},
103111
{
104112
"name": "prefix",
105113
"required": false,
@@ -757,6 +765,10 @@
757765
"name": "create_icr_namespace",
758766
"value": "ref:../../inputs/create_icr_namespace"
759767
},
768+
{
769+
"name": "force_create_standard_api_key",
770+
"value": "ref:../../inputs/force_create_standard_api_key"
771+
},
760772
{
761773
"name": "create_git_token",
762774
"value": "ref:../../inputs/create_git_token"

stack_definition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
"required": false,
192192
"type": "boolean",
193193
"hidden": false,
194-
"default": false,
194+
"default": true,
195195
"custom_config": {}
196196
},
197197
{

0 commit comments

Comments
 (0)