Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIMSBIOHUB-400: BioHub Dataset & Security Feature Branch #212

Merged
merged 193 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
311b448
DatasetListPage with download functionality and DatasetSortMenu for s…
MacQSL Dec 5, 2023
53f7b63
Add security_review_timestamp to submission table.
NickPhura Dec 6, 2023
856d070
update spatial validation to Collection
KjartanE Dec 6, 2023
d0ee898
implemented fuzzy search with search selection highlighting
MacQSL Dec 7, 2023
0f5309c
added debounce (input delay) for fuzzy search filtering / highlighting
MacQSL Dec 7, 2023
1668355
rework dataset page, new api endpoint
KjartanE Dec 8, 2023
97ed8ea
stubbing out basic menu
al-rosenthal Dec 8, 2023
b001aef
Merge branch 'SIMSBIOHUB-397' into dataset_security_feature
al-rosenthal Dec 8, 2023
4fc3a1b
added button icons
al-rosenthal Dec 8, 2023
6d3c0ff
WIP
NickPhura Dec 8, 2023
d7c9192
refactored code to be more submission centric
MacQSL Dec 8, 2023
216b747
Merge branch 'SIMSBIOHUB-393' into dataset_security_feature
MacQSL Dec 8, 2023
07cee57
Update migrations/seeds
NickPhura Dec 8, 2023
b8152cc
Merge branch 'dataset_security_feature' into SIMSBIOHUB-382
NickPhura Dec 8, 2023
25f805c
added unsecure dialog
al-rosenthal Dec 8, 2023
0ab7a28
Merge branch 'SIMSBIOHUB-397' into dataset_security_feature
al-rosenthal Dec 8, 2023
e827ac2
Update submission table to add name/description.
NickPhura Dec 8, 2023
b2aa40e
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
NickPhura Dec 8, 2023
62154ba
Add SubmissionRecord type.
NickPhura Dec 8, 2023
101b60c
added tests for useDebounce and useFuzzySearch
MacQSL Dec 8, 2023
3182066
Merge branch 'SIMSBIOHUB-393' into dataset_security_feature
MacQSL Dec 8, 2023
6f7943d
Change name of data loader
NickPhura Dec 8, 2023
6bc56b8
stubbing out more of the UI
al-rosenthal Dec 8, 2023
92fec5a
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 8, 2023
b36e332
Add admin reviewed submissions endpoint/service/repo
NickPhura Dec 8, 2023
e00a59e
added path for submission and index endpoint
MacQSL Dec 8, 2023
0e2b034
Update security migration
NickPhura Dec 8, 2023
c8157e0
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
NickPhura Dec 8, 2023
ce87803
fixed submission merge conflict
MacQSL Dec 9, 2023
6eae1a2
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 9, 2023
a07f86a
adding basic endpoint for fetching rules
al-rosenthal Dec 9, 2023
ace08d2
add submission context and review page
KjartanE Dec 9, 2023
f6f7964
updated sql for getReviewedSubmissionsWithSecurity to handle security…
MacQSL Dec 9, 2023
6186468
fixed test suite compilation issues
MacQSL Dec 11, 2023
f08a81b
added seed file, stubbed out api changes
al-rosenthal Dec 11, 2023
9961059
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 11, 2023
8e3e2d3
oops
al-rosenthal Dec 11, 2023
5701ad1
added tests for submission /repo/service/endpoint
MacQSL Dec 11, 2023
49636ee
Merge branch 'SIMSBIOHUB-393' into dataset_security_feature
MacQSL Dec 11, 2023
d6f1dab
Fix tests, add message get/create api
NickPhura Dec 11, 2023
816606c
Merge remote-tracking branch 'origin/dataset_security_feature' into S…
NickPhura Dec 11, 2023
3674e83
Update tests
NickPhura Dec 11, 2023
aac0f78
fetching rules
al-rosenthal Dec 11, 2023
51126e8
admin submission preview page, datagrid setup
KjartanE Dec 11, 2023
88c8402
Updates
NickPhura Dec 11, 2023
a63a2f6
objects are selectable
al-rosenthal Dec 11, 2023
36912d4
UI WIP
jeznorth Dec 11, 2023
20d602e
began wrapping autocomplete in field array
al-rosenthal Dec 11, 2023
6a238f3
updated seed for submissions and added trigger to submission_feature_…
MacQSL Dec 11, 2023
a6e1975
Wire up dashboard (submission to review) UI
NickPhura Dec 11, 2023
7d77ca1
Change date format
NickPhura Dec 11, 2023
5f942dd
wrapped autocomplete in field array
al-rosenthal Dec 12, 2023
ebcb1f1
text clean up
al-rosenthal Dec 12, 2023
6b9c797
Merge branch 'SIMSBIOHUB-397' into dataset_security_feature
al-rosenthal Dec 12, 2023
58a8a4e
Remove unique constrain on uuid from submission table
NickPhura Dec 12, 2023
34f4183
stubbing out api
al-rosenthal Dec 12, 2023
7b9e4ce
resolving comments
al-rosenthal Dec 12, 2023
b5ec2b3
Implement Skeleton Loader / Layout Updates
jeznorth Dec 12, 2023
006ec9c
Merge branch 'SIMSBIOHUB-382' of https://github.com/bcgov/biohubbc-pl…
jeznorth Dec 12, 2023
5221ee8
Empty state UI Dev
jeznorth Dec 12, 2023
8c98fe6
Adding subtext to empty state
jeznorth Dec 12, 2023
c64e71f
Add tabs and completed review page
NickPhura Dec 12, 2023
362639a
Merge branch 'SIMSBIOHUB-382' of https://github.com/bcgov/biohubbc-pl…
NickPhura Dec 12, 2023
730e570
Format
NickPhura Dec 12, 2023
e709bb6
Rename file
NickPhura Dec 12, 2023
53ea1bd
clean up
al-rosenthal Dec 12, 2023
fe0bd20
UI Updates
jeznorth Dec 12, 2023
b392e7b
Minor Fix
jeznorth Dec 12, 2023
cc02815
Add submitted_timestamp to submission table
NickPhura Dec 12, 2023
ceda5b2
Merge branch 'SIMSBIOHUB-382' of https://github.com/bcgov/biohubbc-pl…
NickPhura Dec 12, 2023
ac72255
hooking up api for adding security
al-rosenthal Dec 12, 2023
8550e2f
fixed add security
al-rosenthal Dec 12, 2023
d7d6dc2
Updates
NickPhura Dec 12, 2023
d169055
Merge remote-tracking branch 'origin/dataset_security_feature' into S…
NickPhura Dec 12, 2023
8c090ec
added snackbar messages for success/ fails
al-rosenthal Dec 12, 2023
6cbd21d
Run Fix
NickPhura Dec 12, 2023
4c2962e
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 12, 2023
238e1b1
submission datagrids setup
KjartanE Dec 13, 2023
2efceef
Merge remote-tracking branch 'origin/dataset_security_feature' into S…
KjartanE Dec 13, 2023
794ac4b
stubbing out unsecure flow
al-rosenthal Dec 13, 2023
fbe9d91
wired up unsecured and fixed close dialog
al-rosenthal Dec 13, 2023
5fe45f9
add button to admin submission page
KjartanE Dec 13, 2023
100d480
Merge branch 'SIMSBIOHUB-397' into dataset_security_feature
al-rosenthal Dec 13, 2023
e9df0b3
created new action card for security rules
al-rosenthal Dec 13, 2023
fa79a8d
swapped out data loader, got autocomplete working
al-rosenthal Dec 13, 2023
89ee5ab
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 13, 2023
1aeccd4
removed field array
al-rosenthal Dec 13, 2023
f494dba
added clear on select to autocomplete
al-rosenthal Dec 13, 2023
46c405d
clean up
al-rosenthal Dec 13, 2023
aa3fb3d
moved security button to correct page
al-rosenthal Dec 13, 2023
e5bec22
clean up + interfaces
KjartanE Dec 13, 2023
8c590e2
Merge remote-tracking branch 'origin/dataset_security_feature' into S…
KjartanE Dec 13, 2023
40dd165
updated labels and added total features to security dialog
al-rosenthal Dec 13, 2023
c73e4ec
clean up
al-rosenthal Dec 13, 2023
68adef6
clean mock data
KjartanE Dec 13, 2023
557b666
stubbing out more API changes
al-rosenthal Dec 13, 2023
7eef96d
added unique constraint for simpler insert actions
al-rosenthal Dec 14, 2023
358b867
stubbing out last set of changes
al-rosenthal Dec 14, 2023
7d66cc6
moved some security calls into context, added banner for warning of s…
al-rosenthal Dec 14, 2023
e310ec1
Add security review feature
NickPhura Dec 14, 2023
990d05b
Update interfaces
NickPhura Dec 14, 2023
0af3140
Merge branch 'SIMSBIOHUB-383' into dataset_security_feature
NickPhura Dec 14, 2023
18846ad
Publish security review update
NickPhura Dec 14, 2023
fa453ea
Tweak code and fix test.
NickPhura Dec 14, 2023
0d9e4fd
Add more specific openapi spec.
NickPhura Dec 15, 2023
c9751e4
Remove .only
NickPhura Dec 15, 2023
57d6c48
moved call for older securities
al-rosenthal Dec 15, 2023
7909825
Remove package
NickPhura Dec 15, 2023
77d2031
adding tests
al-rosenthal Dec 15, 2023
92502b9
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 15, 2023
16d7402
fixed everything after merge
al-rosenthal Dec 15, 2023
f814c33
Add sort columns
NickPhura Dec 15, 2023
1e134d1
added codeContext and featureTypes
KjartanE Dec 16, 2023
498d287
codes utilization for feature type/properties
KjartanE Dec 18, 2023
634d02f
Biohub UI Updates (#213)
jeznorth Dec 19, 2023
6a6b04b
fixed UX on security management menu
al-rosenthal Dec 19, 2023
0f43510
increase test coverage. Endpoints/service/repo
KjartanE Dec 19, 2023
705a088
Header Improvements (#214)
curtisupshall Dec 19, 2023
73712af
Fixed header bugs
curtisupshall Dec 19, 2023
e390bb4
Resolve react dependency warnings.
NickPhura Dec 20, 2023
74ea7ea
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
NickPhura Dec 20, 2023
8e4cef3
Fixed Header.test.tsx
curtisupshall Dec 20, 2023
da0a293
Lint fixes
curtisupshall Dec 20, 2023
d067274
SIMSBIOHUB-379: Parse intake key-value pairs (#211)
curtisupshall Dec 20, 2023
adbe9f8
Added VIEW button link to admin submission list page
curtisupshall Dec 20, 2023
4860383
added new colum and trigger to sql setup
al-rosenthal Dec 20, 2023
400ab9e
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 20, 2023
1b955d1
Show which security rules have been applied
curtisupshall Dec 20, 2023
0cbf52f
Ran linter
curtisupshall Dec 20, 2023
cd0d41b
Update submission PATCH endpoint to accept both security_reviewed and…
NickPhura Dec 20, 2023
e755672
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
NickPhura Dec 20, 2023
831e0f0
added security category table
al-rosenthal Dec 20, 2023
3d97f78
updated trigger message
al-rosenthal Dec 20, 2023
daa3b79
stubbed out new record
al-rosenthal Dec 20, 2023
3cfb0e3
stubbed out api changes
al-rosenthal Dec 21, 2023
44aed69
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 21, 2023
d18dc67
Submission Meta Endpoint / Dataloader
KjartanE Dec 21, 2023
33d67d8
Update Security Cards to include Category
jeznorth Dec 21, 2023
0e612d9
wired up new rule category endpoint to
al-rosenthal Dec 21, 2023
202e329
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 21, 2023
ab90ad3
Update reviewed/unreviewed admin endpoints.
NickPhura Dec 21, 2023
9a32c52
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
NickPhura Dec 21, 2023
6f3f78e
stubbed out label changes
al-rosenthal Dec 21, 2023
6e438f1
Complete review publish buttons (#217)
KjartanE Dec 21, 2023
842ea2b
TechDebt: Keycloak/Auth Updates From SIMS (#216)
NickPhura Dec 21, 2023
f6eefad
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 21, 2023
c91c351
Security rule contexts refactor (#218)
curtisupshall Dec 21, 2023
d40e794
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 21, 2023
4571f39
Update submissions list page and related components
NickPhura Dec 21, 2023
495ea2d
Fix reference to non-existent function
NickPhura Dec 21, 2023
8e86f7e
fixed issues from merge
al-rosenthal Dec 21, 2023
f767256
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 21, 2023
f772f58
Fix query
NickPhura Dec 22, 2023
219338a
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
NickPhura Dec 22, 2023
c6f1c5e
fixed remove endpoint
al-rosenthal Dec 22, 2023
1fac269
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 22, 2023
57e82f0
added label change
al-rosenthal Dec 22, 2023
6995888
Removed Add Security menu
curtisupshall Dec 22, 2023
918ef48
Indicate in snackbar if all security is removed
curtisupshall Dec 22, 2023
038e011
Added deprecation warning
curtisupshall Dec 22, 2023
e61c540
added category to search
al-rosenthal Dec 22, 2023
9144e81
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
al-rosenthal Dec 22, 2023
bbb2c88
download submission + features
KjartanE Dec 22, 2023
6719773
added dayjs
al-rosenthal Dec 22, 2023
e975f1f
added date difference
al-rosenthal Dec 22, 2023
971da8d
Merge branch 'dataset_security_feature' into SIMSBIOHUB-397
al-rosenthal Dec 22, 2023
41acc2f
admin/published download endpoints created
KjartanE Dec 22, 2023
37ff3ba
WIP
NickPhura Dec 23, 2023
b26f0df
updated menus for all submissions pages and added tests for Submissio…
MacQSL Dec 28, 2023
6bf902c
added loading button to security dialog
al-rosenthal Jan 2, 2024
7347fed
Update tests
NickPhura Jan 2, 2024
02bd2c3
updated tests and seed for pending review submissions
MacQSL Jan 2, 2024
49d516b
Tweak db settings
NickPhura Jan 2, 2024
050be69
updated test for submissionlistpage
MacQSL Jan 2, 2024
3ce7006
Merge branch 'feature_menus' into dataset_security_feature
MacQSL Jan 2, 2024
da3daf4
Add db env vars
NickPhura Jan 2, 2024
c07410d
Merge remote-tracking branch 'origin/dataset_security_feature' into s…
NickPhura Jan 2, 2024
de1d7b9
Fix formatting
NickPhura Jan 2, 2024
befe1f3
fixed date tests
al-rosenthal Jan 2, 2024
2ce0c44
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
al-rosenthal Jan 2, 2024
af8999c
Merge remote-tracking branch 'origin/dataset_security_feature' into s…
NickPhura Jan 2, 2024
1eb710d
Remove .only
NickPhura Jan 2, 2024
8b7265a
added tests for submissionlistpage
MacQSL Jan 2, 2024
ae0c95c
Updates
NickPhura Jan 3, 2024
3a82a56
Merge branch 'dataset_security_feature' of https://github.com/bcgov/b…
MacQSL Jan 3, 2024
f150a9e
Fix tests, tweak error handling of db-constants/db
NickPhura Jan 3, 2024
28e2b95
updated seed for security rules
MacQSL Jan 4, 2024
0f6ba8b
TechDebt: Port Auth Changes From SIMS + Refactor Service Client Auth
NickPhura Jan 4, 2024
a03b7a6
TechDebt: Add missing pipeline keycloak changes
NickPhura Jan 4, 2024
b99df93
Fix jsdoc
NickPhura Jan 4, 2024
3d8922a
Comment out unused function to resolve build issue
NickPhura Jan 4, 2024
b781b77
Fix bad keycloak var
NickPhura Jan 4, 2024
8fe0002
TechDebt: Port Missing Pipeline Keycloak Changes From SIMS
NickPhura Jan 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 42 additions & 24 deletions .config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,55 @@
},
"sso": {
"dev": {
"url": "https://dev.loginproxy.gov.bc.ca/auth",
"clientId": "bio-hub-browser-4230",
"host": "https://dev.loginproxy.gov.bc.ca/auth",
"realm": "standard",
"integrationId": "4230",
"adminHost": "https://loginproxy.gov.bc.ca/auth",
"adminUserName": "biohub-svc-4466",
"apiHost": "https://api.loginproxy.gov.bc.ca/api/v1",
"keycloakSecret": "keycloak-admin-password",
"keycloakSecretAdminPassword": "keycloak_admin_password"
"clientId": "bio-hub-browser-4230",
"keycloakSecret": "keycloak",
"serviceClient": {
"serviceClientName": "biohub-svc-4466",
"keycloakSecretServiceClientPasswordKey": "biohub_svc_client_password"
},
"cssApi": {
"cssApiTokenUrl": "https://loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/token",
"cssApiClientId": "service-account-team-1159-4197",
"cssApiHost": "https://api.loginproxy.gov.bc.ca/api/v1",
"keycloakSecretCssApiSecretKey": "css_api_client_secret",
"cssApiEnvironment": "dev"
}
},
"test": {
"url": "https://test.loginproxy.gov.bc.ca/auth",
"clientId": "bio-hub-browser-4230",
"host": "https://test.loginproxy.gov.bc.ca/auth",
"realm": "standard",
"integrationId": "4230",
"adminHost": "https://loginproxy.gov.bc.ca/auth",
"adminUserName": "biohub-svc-4466",
"apiHost": "https://api.loginproxy.gov.bc.ca/api/v1",
"keycloakSecret": "keycloak-admin-password",
"keycloakSecretAdminPassword": "keycloak_admin_password"
"clientId": "bio-hub-browser-4230",
"keycloakSecret": "keycloak",
"serviceClient": {
"serviceClientName": "biohub-svc-4466",
"keycloakSecretServiceClientPasswordKey": "biohub_svc_client_password"
},
"cssApi": {
"cssApiTokenUrl": "https://loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/token",
"cssApiClientId": "service-account-team-1159-4197",
"cssApiHost": "https://api.loginproxy.gov.bc.ca/api/v1",
"keycloakSecretCssApiSecretKey": "css_api_client_secret",
"cssApiEnvironment": "test"
}
},
"prod": {
"url": "https://loginproxy.gov.bc.ca/auth",
"clientId": "bio-hub-browser-4230",
"host": "https://loginproxy.gov.bc.ca/auth",
"realm": "standard",
"integrationId": "4230",
"adminHost": "https://loginproxy.gov.bc.ca/auth",
"adminUserName": "biohub-svc-4466",
"apiHost": "https://api.loginproxy.gov.bc.ca/api/v1",
"keycloakSecret": "keycloak-admin-password",
"keycloakSecretAdminPassword": "keycloak_admin_password"
"clientId": "bio-hub-browser-4230",
"keycloakSecret": "keycloak",
"serviceClient": {
"serviceClientName": "biohub-svc-4466",
"keycloakSecretServiceClientPasswordKey": "biohub_svc_client_password"
},
"cssApi": {
"cssApiTokenUrl": "https://loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/token",
"cssApiClientId": "service-account-team-1159-4197",
"cssApiHost": "https://api.loginproxy.gov.bc.ca/api/v1",
"keycloakSecretCssApiSecretKey": "css_api_client_secret",
"cssApiEnvironment": "prod"
}
}
}
}
51 changes: 6 additions & 45 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,11 @@
# Overview
## Links to Jira Tickets

## Links to Jira tickets
- {Include a link to all applicable Jira tickets}

- {List all applicable Jira tickets}
## Description of Changes

## Description of relevant changes
- {List all relevant code changes. Include any changes to the business workflow that might not be obvious to the reviewers of this PR.}

- {List all relevant changes, in particular anything that will help the reviewers test/verify this PR}
## Testing Notes

## PR Checklist

A list of items that are good to consider when making any changes.

_Note: this list is not exhaustive, and not all items are always applicable._

### Code

- [ ] New files/classes/functions have appropriately descriptive names and comment blocks to describe their use/behaviour
- [ ] I have avoided duplicating code when possible, moving re-usable pieces into functions
- [ ] I have avoided hard-coding values where possible and moved any re-usable constants to a constants file
- [ ] My code is as flat as possible (avoids deeply nested if/else blocks, promise chains, etc)
- [ ] My code changes account for null/undefined values and handle errors appropriately
- [ ] My code uses types/interfaces to help describe values/parameters/etc, help ensure type safety, and improve readability

### Style

- [ ] My code follows the established style conventions
- [ ] My code uses native material-ui components/icons/conventions when possible

### Documentation

- [ ] I have commented my code sufficiently, such that an unfamiliar developer could understand my code
- [ ] I have added/updated README's and related documentation, as needed

### Tests

- [ ] I have added/updated unit tests for any code I've added/updated
- [ ] I have added/updated the Postman requests/tests to account for any API endpoints I've added/updated

### Linting/Formatting

- [ ] I have run the linter and fixed any issues, as needed
_See the `lint` commands in package.json_
- [ ] I have run the formatter and fixed any issues, as needed
_See the `format` commands in package.json_

### SonarCloud

- [ ] I have addressed all SonarCloud Bugs, Vulnerabilities, Security Hotspots, and Code Smells
- {List any relevant testing considerations, necessary pre-reqs, and areas of the app to focus on. Specifically, include anything that will help the reviewers of this PR verify the code is functioning as expected.}
20 changes: 13 additions & 7 deletions api/.pipeline/lib/api.deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,20 @@ const apiDeploy = async (settings) => {
TZ: phases[phase].tz,
DB_SERVICE_NAME: `${phases[phase].dbName}-postgresql${phases[phase].suffix}`,
// Keycloak
KEYCLOAK_ADMIN_USERNAME: phases[phase].sso.adminUserName,
KEYCLOAK_SECRET: phases[phase].sso.keycloakSecret,
KEYCLOAK_SECRET_ADMIN_PASSWORD: phases[phase].sso.keycloakSecretAdminPassword,
KEYCLOAK_HOST: phases[phase].sso.url,
KEYCLOAK_CLIENT_ID: phases[phase].sso.clientId,
KEYCLOAK_HOST: phases[phase].sso.host,
KEYCLOAK_REALM: phases[phase].sso.realm,
KEYCLOAK_INTEGRATION_ID: phases[phase].sso.integrationId,
KEYCLOAK_API_HOST: phases[phase].sso.apiHost,
KEYCLOAK_CLIENT_ID: phases[phase].sso.clientId,
// Keycloak secret
KEYCLOAK_SECRET: phases[phase].sso.keycloakSecret,
// Keycloak Service Client
KEYCLOAK_ADMIN_USERNAME: phases[phase].sso.serviceClient.serviceClientName,
KEYCLOAK_SECRET_ADMIN_PASSWORD_KEY: phases[phase].sso.serviceClient.keycloakSecretServiceClientPasswordKey,
// Keycloak CSS API
KEYCLOAK_API_TOKEN_URL: phases[phase].sso.cssApi.cssApiTokenUrl,
KEYCLOAK_API_CLIENT_ID: phases[phase].sso.cssApi.cssApiClientId,
KEYCLOAK_API_CLIENT_SECRET_KEY: phases[phase].sso.cssApi.keycloakSecretCssApiSecretKey,
KEYCLOAK_API_HOST: phases[phase].sso.cssApi.cssApiHost,
KEYCLOAK_API_ENVIRONMENT: phases[phase].sso.cssApi.cssApiEnvironment,
// Log Level
LOG_LEVEL: phases[phase].logLevel || 'info',
// OPenshift Resources
Expand Down
56 changes: 41 additions & 15 deletions api/.pipeline/templates/api.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,35 +56,49 @@ parameters:
description: Application timezone
required: false
value: 'America/Vancouver'
# Keycloak
- name: KEYCLOAK_HOST
description: Key clock login url
required: true
- name: KEYCLOAK_REALM
description: Realm identifier or name
required: true
- name: KEYCLOAK_INTEGRATION_ID
description: keycloak integration id
required: true
- name: KEYCLOAK_API_HOST
description: keycloak API host
required: true
- name: KEYCLOAK_CLIENT_ID
description: Client Id for application
required: true
- name: KEYCLOAK_ADMIN_USERNAME
description: keycloak host admin username
required: true
# Keycloak secret
- name: KEYCLOAK_SECRET
description: The name of the keycloak secret
required: true
- name: KEYCLOAK_SECRET_ADMIN_PASSWORD
# Keycloak Service Client
- name: KEYCLOAK_ADMIN_USERNAME
description: keycloak host admin username
required: true
- name: KEYCLOAK_SECRET_ADMIN_PASSWORD_KEY
description: The key of the admin password in the keycloak secret
required: true
# Keycloak CSS API
- name: KEYCLOAK_API_TOKEN_URL
description: The url to fetch a css api access token, which is needed to call the css rest api
required: true
- name: KEYCLOAK_API_CLIENT_ID
description: The css api client id
required: true
- name: KEYCLOAK_API_CLIENT_SECRET_KEY
description: The css api client secret
required: true
- name: KEYCLOAK_API_HOST
description: The url of the css rest api
required: true
- name: KEYCLOAK_API_ENVIRONMENT
description: The css api environment to query (dev, test, prod)
required: true
- name: API_PORT_DEFAULT
value: '6100'
- name: API_PORT_DEFAULT_NAME
description: Api default port name
value: '6100-tcp'
# Object Store (S3)
- name: OBJECT_STORE_SECRETS
description: Secrets used to read and write to the S3 storage
value: 'biohubbc-object-store'
Expand Down Expand Up @@ -203,23 +217,35 @@ objects:
name: ${DB_SERVICE_NAME}
- name: DB_PORT
value: '5432'
# Keycloak
- name: KEYCLOAK_HOST
value: ${KEYCLOAK_HOST}
- name: KEYCLOAK_API_HOST
value: ${KEYCLOAK_API_HOST}
- name: KEYCLOAK_REALM
value: ${KEYCLOAK_REALM}
- name: KEYCLOAK_CLIENT_ID
value: ${KEYCLOAK_CLIENT_ID}
- name: KEYCLOAK_INTEGRATION_ID
value: ${KEYCLOAK_INTEGRATION_ID}
# Keycloak Service Client
- name: KEYCLOAK_ADMIN_USERNAME
value: ${KEYCLOAK_ADMIN_USERNAME}
- name: KEYCLOAK_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: ${KEYCLOAK_SECRET}
key: ${KEYCLOAK_SECRET_ADMIN_PASSWORD}
key: ${KEYCLOAK_SECRET_ADMIN_PASSWORD_KEY}
# Keycloak CSS API
- name: KEYCLOAK_API_TOKEN_URL
value: ${KEYCLOAK_API_TOKEN_URL}
- name: KEYCLOAK_API_CLIENT_ID
value: ${KEYCLOAK_API_CLIENT_ID}
- name: KEYCLOAK_API_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: ${KEYCLOAK_SECRET}
key: ${KEYCLOAK_API_CLIENT_SECRET_KEY}
- name: KEYCLOAK_API_HOST
value: ${KEYCLOAK_API_HOST}
- name: KEYCLOAK_API_ENVIRONMENT
value: ${KEYCLOAK_API_ENVIRONMENT}
- name: CHANGE_VERSION
value: ${CHANGE_ID}
- name: NODE_ENV
Expand Down
Loading
Loading