Skip to content

Commit 1efda8d

Browse files
docs: org and cloud scoped access
Signed-off-by: Ricky Moorhouse <[email protected]>
1 parent c002afe commit 1efda8d

File tree

4 files changed

+37
-10
lines changed

4 files changed

+37
-10
lines changed

deployment/deployment.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ spec:
2121
containers:
2222
- env:
2323
- name: MGMT_CREDS
24-
value: /app/management
24+
value: /app/mgmt-cloud
25+
- name: ORG_CREDS
26+
value: /app/mgmt-org
2527
- name: DP_CREDS
2628
value: /app/datapower
2729
- name: ANALYTICS_CERTS
@@ -51,8 +53,10 @@ spec:
5153
volumeMounts:
5254
- mountPath: /config
5355
name: trawler-config
54-
- mountPath: /app/management
55-
name: mgmt-creds
56+
- mountPath: /app/mgmt-cloud
57+
name: mgmt-cloud-creds
58+
- mountPath: /app/mgmt-org
59+
name: mgmt-org-creds
5660
- mountPath: /app/datapower
5761
name: datapower-creds
5862
# Update the following for your analytics deployment (replace analytics with your subsystem name)
@@ -71,10 +75,14 @@ spec:
7175
name: trawler-config
7276
optional: true
7377
name: trawler-config
74-
- name: mgmt-creds
78+
- name: mgmt-cloud-creds
7579
secret:
7680
optional: true
77-
secretName: trawler-mgmt-creds
81+
secretName: trawler-mgmt-cloud-creds
82+
- name: mgmt-org-creds
83+
secret:
84+
optional: true
85+
secretName: trawler-mgmt-org-creds
7886
- name: trawler-certificate
7987
secret:
8088
defaultMode: 420

deployment/secret-mgmt-org.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
stringData:
3+
client_id:
4+
client_secret:
5+
# Uncomment and insert the values for the below as needed
6+
# username:
7+
# password:
8+
# realm:
9+
kind: Secret
10+
metadata:
11+
name: trawler-mgmt-org-creds
12+
type: Opaque

deployment/secret-mgmt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ stringData:
88
# realm:
99
kind: Secret
1010
metadata:
11-
name: trawler-mgmt-creds
11+
name: trawler-mgmt-cloud-creds
1212
type: Opaque

docs/install.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ To install trawler, you can make use of the sample yaml files within the [deploy
77
- Select which nets you want to enable.
88
- Adjustments to `secret-mgmt.yaml`
99
- Set the credentials to use for connecting to cloud manager.
10+
- Adjustments to `secret-mgmt-org.yaml`
11+
- Set the credentials to use for org level metrics - this should be a user added to the provider orgs.
1012
- Adjustments to `secret-dp.yaml`
1113
- Set the credentials to use for connecting to datapower.
1214
- Adjustments to `kustomization.yaml`:
@@ -39,11 +41,16 @@ namespace: apic-trawler
3941

4042
## API Manager credentials
4143

42-
For the manager_net you will need to provide trawler credentials to make the API Calls - these can either be client_credentials grants or traditional username/password. For this you will need the following permissions:
44+
For the manager_net you will need to provide trawler credentials to make the API Calls - these can either be client_credentials grants, api key or traditional username/password. For this you will need the following permissions:
4345

44-
- cloud:view
45-
- org:view
46-
- provider-org:view
46+
- cloud:view
47+
- org:view
48+
- provider-org:view
49+
50+
The credentials secrets must contain client_id and client_secret for a client credentials grant or the CLI credentials and if you are not using a client credentials grant you will also need one of the following sets of keys:
51+
52+
- api_key (a [platform REST API Key](https://www.ibm.com/docs/en/api-connect/10.0.8_lts?topic=applications-managing-platform-rest-api-keys))
53+
- username, password, realm (a user defined with appropriate access and the realm they are created in)
4754

4855
## Prometheus discovery
4956

0 commit comments

Comments
 (0)