Skip to content

Commit

Permalink
Added step to create vault secret for flexion.etor-service-receiver-r…
Browse files Browse the repository at this point in the history
…esults (#851)
  • Loading branch information
basiliskus authored Feb 6, 2024
1 parent aeda18c commit fe3a051
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 14 deletions.
12 changes: 10 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@
{
"type": "Secret Keyword",
"filename": "README.md",
"hashed_secret": "e07f44b0222f3680e0a3491edcf61030143e2ae7",
"hashed_secret": "367e3228ed16bf72b36de9a4134ee8b825cafacb",
"is_verified": false,
"line_number": 288,
"line_number": 289,
"is_secret": false
},
{
Expand All @@ -148,6 +148,14 @@
"is_verified": false,
"line_number": 294,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "README.md",
"hashed_secret": "0d46754ae17642645ca041edaac9a1c1569f5edc",
"is_verified": false,
"line_number": 299,
"is_secret": false
}
],
"docker-compose.postgres.yml": [
Expand Down
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,19 +282,28 @@ with this option enabled.
7. Run `./prime multiple-settings set -i ./settings/staging/0149-etor.yml`
8. Run `./prime organization addkey --public-key /path/to/trusted-intermediary/mock_credentials/organization-trusted-intermediary-public-key-local.pem --scope "flexion.*.report" --orgName flexion --kid flexion.etor-service-sender --doit`
9. Setup local vault secret
1. Go to: `http://localhost:8200/`
2. Use token in `prime-router/.vault/env/.env.local` to authenticate
3. Go to `Secrets engines` > `secret/` > `Create secret`
1. Path for this secret: `FLEXION--ETOR-SERVICE-RECEIVER`
1. Go to: `http://localhost:8200/`
2. Use token in `prime-router/.vault/env/.env.local` to authenticate
3. Go to `Secrets engines` > `secret/` > `Create secret`
1. Create secret for `flexion.etor-service-receiver-orders`
1. Path for this secret: `FLEXION--ETOR-SERVICE-RECEIVER-ORDERS`
2. JSON data:

```
{
"@type": "UserApiKey",
"apiKey": "Contents of file at trusted-intermediary/mock_credentials/organization-report-stream-private-key-local.pem",
"user": "flexion"
}
```
```
{
"@type": "UserApiKey",
"apiKey": "Contents of file at trusted-intermediary/mock_credentials/organization-report-stream-private-key-local.pem",
"user": "flexion"
}
```
2. Create secret for `flexion.etor-service-receiver-results`
1. Path for this secret: `FLEXION--ETOR-SERVICE-RECEIVER-RESULTS`
2. JSON data:
```
{
"@type": "UserApiKey",
"apiKey": "Contents of file at trusted-intermediary/mock_credentials/organization-report-stream-private-key-local.pem",
"user": "flexion"
}
#### Submit request to ReportStream
Expand Down

0 comments on commit fe3a051

Please sign in to comment.