Skip to content

Commit 4a229f4

Browse files
2 parents 5cbbea6 + 523f19d commit 4a229f4

File tree

3 files changed

+109
-14
lines changed

3 files changed

+109
-14
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Click the "Add to project" button, and select create in new project.
1616
## 3. Set the input configuration for the stack
1717

1818
- Clone this repository locally - and checkout the dev branch.
19-
- Create a file with name ".def.json" with the following content.
19+
- Create a file with name ".def.json" with the following content.
20+
- The signing key is the base64 key obtained from the `gpg --export-secret-key <Email Address> | base64` command. See https://cloud.ibm.com/docs/devsecops?topic=devsecops-devsecops-image-signing#cd-devsecops-gpg-export for details.
2021

2122
**Important**:
2223
- Ensure region is either us-south or eu-de as watsonx can only be deployed in those 2 locations for now.
@@ -30,7 +31,8 @@ Click the "Add to project" button, and select create in new project.
3031
"resource_group_name": "<target resource group - name of a new resource group that the stack will creates>",
3132
"region": "<region where resources are deployed>",
3233
"sample_app_git_url": "https://github.com/IBM/gen-ai-rag-watsonx-sample-application",
33-
"watsonx_admin_api_key": "<optional - admin key to use for watson if different from ibmcloud_api_key>"
34+
"watsonx_admin_api_key": "<optional - admin key to use for watson if different from ibmcloud_api_key>",
35+
"signing_key": "signing key used to sign build artifacts"
3436
}
3537
}
3638
```
@@ -44,7 +46,8 @@ Example:
4446
"resource_group_name": "stack-service-rg",
4547
"region": "eu-de",
4648
"sample_app_git_url": "https://github.com/IBM/gen-ai-rag-watsonx-sample-application",
47-
"watsonx_admin_api_key": "<optional - admin key to use for watson if different from ibmcloud_api_key>"
49+
"watsonx_admin_api_key": "<optional - admin key to use for watson if different from ibmcloud_api_key>",
50+
"signing_key": "signing key used to sign build artifacts"
4851
}
4952
}
5053
```

ibm_catalog.json

Lines changed: 74 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,74 @@
3131
},
3232
"iam_permissions": [
3333
{
34-
"service_name": "iam-identity",
35-
"resources": [
36-
{
37-
"name": "Placeholder - will be refined",
38-
"description": "Placeholder - will be refined",
39-
"role_crns": [
40-
"crn:v1:bluemix:public:iam::::role:Administrator"
41-
]
42-
}
34+
"service_name": "iam-groups",
35+
"role_crns": [
36+
"crn:v1:bluemix:public:iam::::role:Administrator"
4337
]
38+
},
39+
{
40+
"role_crns": [
41+
"crn:v1:bluemix:public:iam::::serviceRole:Manager",
42+
"crn:v1:bluemix:public:iam::::role:Editor"
43+
],
44+
"service_name": "cloud-object-storage"
45+
},
46+
{
47+
"role_crns": [
48+
"crn:v1:bluemix:public:iam::::role:Administrator"
49+
],
50+
"service_name": "iam-identity"
51+
},
52+
{
53+
"role_crns": [
54+
"crn:v1:bluemix:public:iam::::serviceRole:Writer",
55+
"crn:v1:bluemix:public:iam::::role:Administrator"
56+
],
57+
"service_name": "atracker"
58+
},
59+
{
60+
"role_crns": [
61+
"crn:v1:bluemix:public:iam::::serviceRole:Manager",
62+
"crn:v1:bluemix:public:iam::::role:Editor"
63+
],
64+
"service_name": "kms"
65+
},
66+
{
67+
"service_name": "compliance",
68+
"role_crns": [
69+
"crn:v1:bluemix:public:iam::::serviceRole:Manager",
70+
"crn:v1:bluemix:public:iam::::role:Editor"
71+
]
72+
},
73+
{
74+
"role_crns": [
75+
"crn:v1:bluemix:public:iam::::role:Editor"
76+
],
77+
"service_name": "pm-20"
78+
},
79+
{
80+
"role_crns": [
81+
"crn:v1:bluemix:public:iam::::role:Editor"
82+
],
83+
"service_name": "data-science-experience"
84+
},
85+
{
86+
"role_crns": [
87+
"crn:v1:bluemix:public:iam::::role:Editor"
88+
],
89+
"service_name": "aiopenscale"
90+
},
91+
{
92+
"role_crns": [
93+
"crn:v1:bluemix:public:iam::::role:Editor"
94+
],
95+
"service_name": "conversation"
96+
},
97+
{
98+
"role_crns": [
99+
"crn:v1:bluemix:public:iam::::role:Editor"
100+
],
101+
"service_name": "discovery"
44102
}
45103
],
46104
"architecture": {
@@ -109,6 +167,13 @@
109167
"type": "string",
110168
"hidden": false,
111169
"default_value": "https://github.com/IBM/gen-ai-rag-watsonx-sample-application"
170+
},
171+
{
172+
"name": "signing_key",
173+
"required": false,
174+
"type": "password",
175+
"hidden": false,
176+
"default_value": "replace"
112177
}
113178
],
114179
"install_type": "fullstack"

stack_definition.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@
3838
"type": "string",
3939
"hidden": false,
4040
"default": "https://github.com/IBM/gen-ai-rag-watsonx-sample-application"
41-
}
41+
},
42+
{
43+
"name": "signing_key",
44+
"required": false,
45+
"type": "password",
46+
"hidden": false,
47+
"default": "replace"
48+
}
4249
],
4350
"members": [
4451
{
@@ -336,12 +343,20 @@
336343
{
337344
"name": "cd_code_engine_app_min_scale",
338345
"value": "1"
346+
},
347+
{
348+
"name": "ci_signing_key_secret_name",
349+
"value": "signing-key"
350+
},
351+
{
352+
"name": "pipeline_ibmcloud_api_key_secret_name",
353+
"value": "ibmcloud-api-key"
339354
}
340355
]
341356
},
342357
{
343358
"name": "6 - Sample RAG app configuration",
344-
"version_locator": "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.20c3a1a0-12bc-411a-b590-0c604546c965",
359+
"version_locator": "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.f375f9df-af21-4299-b11d-e5813f918efa",
345360
"inputs": [
346361
{
347362
"name": "toolchain_region",
@@ -406,6 +421,18 @@
406421
{
407422
"name": "toolchain_region",
408423
"value": "ref:../../inputs/region"
424+
},
425+
{
426+
"name": "signing_key",
427+
"value": "ref:../../inputs/signing_key"
428+
},
429+
{
430+
"name": "secrets_manager_guid",
431+
"value": "ref:../2b - Security Service - Secret Manager/outputs/secrets_manager_guid"
432+
},
433+
{
434+
"name": "secrets_manager_crn",
435+
"value": "notneeded"
409436
}
410437
]
411438
}

0 commit comments

Comments
 (0)