Skip to content

Commit dc3bdd5

Browse files
authored
docs: fix op instructions (#2683)
1 parent 9f29acf commit dc3bdd5

File tree

1 file changed

+54
-23
lines changed

1 file changed

+54
-23
lines changed

docs/openbanking/install-cn.md

Lines changed: 54 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
Use the listing below for a detailed estimation of the minimum required resources. The table contains the default resources recommendation per service. Depending on the use of each service the resources need may increase or decrease.
77

8-
| Service | CPU Unit | RAM | Disk Space | Processor Type | Required |
9-
|-------------------|----------|-------|------------|----------------|------------------------------------|
10-
| Auth server | 2.5 | 2.5GB | N/A | 64 Bit | Yes |
11-
| config - job | 0.3 | 0.3GB | N/A | 64 Bit | Yes on fresh installs |
12-
| persistence - job | 0.3 | 0.3GB | N/A | 64 Bit | Yes on fresh installs |
13-
| auth-server-key-rotation - job | 0.3 | 0.3GB | N/A | 64 Bit | No [Strongly recommended] |
14-
| cleanup - job | 0.3 | 0.3GB | N/A | 64 Bit | No [Strongly recommended] |
15-
| nginx | 1 | 1GB | N/A | 64 Bit | No |
16-
| config-api | 1.2 | 1GB | N/A | 64 Bit | No |
8+
| Service | CPU Unit | RAM | Processor Type | Required |
9+
|--------------------------------|----------|-------|----------------|--------------------------|
10+
| Auth server | 2.5 | 2.5GB | 64 Bit | Yes |
11+
| config - job | 0.3 | 0.3GB | 64 Bit | Yes on fresh installs |
12+
| persistence - job | 0.3 | 0.3GB | 64 Bit | Yes on fresh installs |
13+
| auth-server-key-rotation - job | 0.3 | 0.3GB | 64 Bit | No [Strongly recommended]|
14+
| cleanup - job | 0.3 | 0.3GB | 64 Bit | No [Strongly recommended]|
15+
| nginx | 1 | 1GB | 64 Bit | No |
16+
| config-api | 1 | 1.2GB | 64 Bit | No |
1717

1818
## Installation
1919

@@ -24,18 +24,43 @@ Use the listing below for a detailed estimation of the minimum required resource
2424

2525
| Certificate / key | Description |
2626
|----------------------------------|-----------------------------------------------------------------------------------------|
27-
|OB Issuing CA | Used in nginx as a certificate authority |
2827
|OB Root CA | Used in nginx as a certificate authority |
28+
|OB Issuing CA | Used in nginx as a certificate authority |
2929
|OB Signing CA | Used in nginx as a certificate authority |
3030
|OB AS Transport key `obtransport.key` | Used for mTLS. This will also be added to the JVM |
3131
|OB AS Transport crt `obtransport.pem` | Used for mTLS. This will also be added to the JVM |
32+
|OB transport truststore `ob-transport-truststore.p12` | Used in SSA Validation. Generated from OB Root CA and Issuing CA |
3233
|OB AS signing crt `obsigning.pem` | Added to the JVM. Used in SSA Validation |
3334
|OB AS signing key `obsigning.key` | Added to the JVM. Used in SSA Validation |
34-
|OB transport truststore `ob-transport-truststore.p12` | Used in SSA Validation. Generated from OB Root CA and Issuing CA |
3535

36-
- Based on the provider/platform you're using, you can follow the [docs](../install/helm-install/README.md) to install your platform prerequistes, nginx-ingress, and the yaml changes needed in `override.yaml` based on the Gluu persistence choosed.
36+
- Download the Open Banking values file `openbanking-values.yaml`:
37+
```bash
38+
wget https://raw.githubusercontent.com/GluuFederation/flex/main/charts/gluu/openbanking-values.yaml
39+
```
40+
- Based on the provider/platform you're using, you can follow the [docs](../install/helm-install/README.md) to install your platform prerequisites, nginx-ingress, and the yaml changes needed in `openbanking-values.yaml` based on the Gluu persistence choosed.
41+
42+
- The `auth-server` and `persistence` images are hosted in a private repository and require authentication to pull:
43+
44+
- Create a Kubernetes secret in the `gluu` namespace using your provided registry credentials:
3745

38-
- To enable mTLS in ingress-nginx, add the following to your `override.yaml`:
46+
```bash
47+
kubectl create secret docker-registry -n gluu regcred --docker-server=https://index.docker.io/v1/ --docker-username=<some-username> --docker-password=<some-password>
48+
```
49+
50+
- Update `openbanking-values.yaml`:
51+
52+
```yaml
53+
auth-server:
54+
image:
55+
pullSecrets:
56+
- name: regcred
57+
persistence:
58+
image:
59+
pullSecrets:
60+
- name: regcred
61+
```
62+
63+
- To enable mTLS in ingress-nginx, add the following to your `openbanking-values.yaml`:
3964
```yaml
4065
nginx-ingress:
4166
ingress:
@@ -122,7 +147,7 @@ Use the listing below for a detailed estimation of the minimum required resource
122147

123148
- `cnObInternalSigningAlias` (Internal Label): This is the internal label ("alias") used by the Authorization Server to locate your private key inside its local Java Keystore (.jks). Set this to match your kid value exactly(`cnObStaticSigningKeyKid`).
124149

125-
1. Add those values to `override.yaml`:
150+
1. Add those values to `openbanking-values.yaml`:
126151
```yaml
127152
global:
128153
# -- Open banking external signing jwks uri. Used in SSA Validation.
@@ -155,12 +180,12 @@ Use the listing below for a detailed estimation of the minimum required resource
155180

156181
The above password is needed in custom scripts such as the `Client Registration script`
157182

158-
- After finishing all the tweaks to the `override.yaml` file, run `helm install` or `helm upgrade` if `Gluu` is already installed
183+
- After finishing all the tweaks to the `openbanking-values.yaml` file, run `helm install` or `helm upgrade` if `Gluu` is already installed
159184

160185
```bash
161186
helm repo add gluu-flex https://docs.gluu.org/charts
162187
helm repo update
163-
helm install gluu gluu-flex/gluu -n gluu -f override.yaml
188+
helm install gluu gluu-flex/gluu -n gluu -f openbanking-values.yaml
164189
```
165190

166191
### Install on microK8s(development/testing)
@@ -184,30 +209,36 @@ After successful installation, you can access and test the Gluu Open Banking Pla
184209
## Changing the signing key kid for the AS dynamically
185210

186211

187-
1. Get a client id and its associated password. We will use the jans-config-api client id and secret
212+
1. Get a client id and its associated password. We will use the `jans-config-api` client id and secret:
188213

189214
```bash
190215
TESTCLIENT=$(kubectl get cm cn -n gluu --template={{.data.jca_client_id}})
191216
TESTCLIENTSECRET=$(kubectl get secret cn -n gluu --template={{.data.jca_client_pw}} | base64 -d)
192217
```
193218

194-
1. Get a token. To pass mTLS, we will use client.crt and client.key:
219+
1. Get a token. To pass the mTLS network boundary, you must use your Open Banking transport certificates (replace `obtransport.pem` and `obtransport.key` with your actual filenames):
195220

196221
```bash
197-
curl -k -u $TESTCLIENT:$TESTCLIENTSECRET https://<FQDN>/jans-auth/restv1/token -d "grant_type=client_credentials&scope=https://jans.io/oauth/jans-auth-server/config/properties.write" --cert client.crt --key client.key
222+
TOKEN=$(curl -s -k -u $TESTCLIENT:$TESTCLIENTSECRET https://<FQDN>/jans-auth/restv1/token -d "grant_type=client_credentials&scope=[https://jans.io/oauth/jans-auth-server/config/properties.write](https://jans.io/oauth/jans-auth-server/config/properties.write)" --cert obtransport.pem --key obtransport.key | grep -o '"access_token":"[^"]*' | cut -d'"' -f4)
223+
224+
echo "My Token is: $TOKEN"
198225
```
199226

200227
1. Add the entry `staticKid` to force the AS to use a specific signing key. Please modify `XhCYDfFM7UFXHfykNaLk1aLCnZM` to the kid to be used:
201228

202229
```bash
203-
curl -k -X PATCH "https://<FQDN>/jans-config-api/api/v1/jans-auth-server/config" -H "accept: application/json" -H "Content-Type: application/json-patch+json" -H "Authorization:Bearer 170e8412-1d55-4b19-ssss-8fcdeaafb954" -d "[{\"op\":\"add\",\"path\":\"/staticKid\",\"value\":\"XhCYDfFM7UFXHfykNaLk1aLCnZM\"}]"
230+
curl -k -X PATCH "https://<FQDN>/jans-config-api/api/v1/jans-auth-server/config" \
231+
-H "accept: application/json" \
232+
-H "Content-Type: application/json-patch+json" \
233+
-H "Authorization: Bearer $TOKEN" \
234+
-d '[{"op":"add","path":"/staticKid","value":"XhCYDfFM7UFXHfykNaLk1aLCnZM"}]'
204235
```
205236

206237
1. Perform a rolling restart for the auth-server and config-api deployments.
207238

208239
```bash
209-
kubectl rollout restart deployment <gluu-release-name>-auth-server -n gluu
210-
kubectl rollout restart deployment <gluu-release-name>-config-api -n gluu
240+
kubectl rollout restart deployment gluu-auth-server -n gluu
241+
kubectl rollout restart deployment gluu-config-api -n gluu
211242
```
212243

213244

@@ -227,7 +258,7 @@ After successful installation, you can access and test the Gluu Open Banking Pla
227258
kubectl create cm custom-scopes -n gluu --from-file=scopes.ob.ldif
228259
```
229260

230-
1. Mount the configmap in your override.yaml under `persistence.volumes` and `persistence.volumeMounts`
261+
1. Mount the configmap in your openbanking-values.yaml under `persistence.volumes` and `persistence.volumeMounts`
231262

232263
```yaml
233264
persistence:

0 commit comments

Comments
 (0)