Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Jul 6, 2021
2 parents e83db70 + d174499 commit ad3da05
Show file tree
Hide file tree
Showing 53 changed files with 1,719 additions and 1,047 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
client-secret: ${{ secrets.OIDC_CLIENT_SECRET }}
oidc-issuer-url: ${{ secrets.OIDC_ISSUER }}
redirect-url: https://api-services-portal-${{ steps.set-deploy-id.outputs.DEPLOY_ID }}.apps.silver.devops.gov.bc.ca/oauth2/callback
skip-auth-regex: '/health|/public|/docs|/redirect|/_next|/images|/devportal|/manager|/ds/api|/signout|^[/]$'
skip-auth-regex: '/health|/public|/docs|/redirect|/_next|/images|/devportal|/manager|/feed/|/ds/api|/signout|^[/]$'
whitelist-domain: authz-apps-gov-bc-ca.dev.api.gov.bc.ca
skip-provider-button: 'true'
profile-url: ${{ secrets.OIDC_ISSUER }}/protocol/openid-connect/userinfo
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-build-feeders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ jobs:
name: proto-asp-${{ steps.set-deploy-id.outputs.DEPLOY_ID }}
env:
TZ:
value: 'America/Los_Angeles'
LOG_FEEDS:
value: 'false'
WORKING_PATH:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# API Services Portal

[![Lifecycle:Maturing](https://img.shields.io/badge/Lifecycle-Maturing-007EC6)](https://github.com/bcgov/repomountie/blob/master/doc/lifecycle-badges.md)

## Introduction

The `API Services Portal` is a frontend for API Providers to manage the lifecycle of their APIs and for Developers to discover and access these APIs. It works in combination with the Kong Community Edition Gateway and Keycloak IAM solution.
Expand Down
288 changes: 145 additions & 143 deletions src/authz/matrix.csv

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions src/authz/whitelist.json
Original file line number Diff line number Diff line change
Expand Up @@ -746,5 +746,60 @@
"referer": "http://localhost:4180/manager/requests/60dba098fb76a41bf6a8e74e",
"query": "\n query GetAccessRequest($id: ID!, $rid: String!) {\n AccessRequest(where: { id: $id }) {\n id\n name\n isApproved\n isIssued\n controls\n additionalDetails\n createdAt\n requestor {\n name\n username\n email\n }\n application {\n name\n }\n serviceAccess {\n id\n }\n productEnvironment {\n name\n additionalDetailsToRequest\n product {\n name\n }\n credentialIssuer {\n availableScopes\n clientRoles\n }\n }\n }\n\n allActivities(sortBy: createdAt_DESC, where: { refId: $rid }) {\n id\n type\n name\n action\n result\n message\n context\n refId\n namespace\n extRefId\n createdAt\n actor {\n name\n username\n }\n }\n }\n",
"added": "2021-06-29T22:48:41.365Z"
},
"78b1987847e9566263124c3b003f06bd": {
"referer": "http://localhost:4180/manager/consumers/60b53dbaa6802a80a0ff27dd",
"query": "\n mutation ToggleConsumerScopes(\n $prodEnvId: ID!\n $consumerUsername: String!\n $scopeName: String!\n $grant: Boolean!\n ) {\n updateConsumerScopeAssignment(\n prodEnvId: $prodEnvId\n consumerUsername: $consumerUsername\n scopeName: $scopeName\n grant: $grant\n )\n }\n",
"added": "2021-07-02T23:59:23.643Z"
},
"7238409bbbc0954b2c00cd03a8162054": {
"referer": "http://localhost:4180/manager/consumers/60b53dbaa6802a80a0ff27dd",
"query": "\n query GetConsumer($id: ID!) {\n getGatewayConsumerPlugins(id: $id) {\n id\n username\n aclGroups\n customId\n extForeignKey\n namespace\n plugins {\n id\n name\n extForeignKey\n config\n service {\n id\n name\n }\n route {\n id\n name\n }\n }\n tags\n createdAt\n }\n\n allProductsByNamespace {\n id\n name\n environments {\n id\n appId\n name\n active\n flow\n credentialIssuer {\n id\n availableScopes\n clientRoles\n }\n services {\n name\n routes {\n name\n }\n }\n }\n }\n }\n",
"added": "2021-07-03T00:43:58.265Z"
},
"1aa9f1d913d81a275515d46091053bec": {
"referer": "http://localhost:4180/manager/consumers/60b53dbaa6802a80a0ff27dd",
"query": "\n query GetConsumer($id: ID!) {\n getGatewayConsumerPlugins(id: $id) {\n id\n username\n aclGroups\n customId\n extForeignKey\n namespace\n plugins {\n id\n name\n extForeignKey\n config\n service {\n id\n name\n }\n route {\n id\n name\n }\n }\n tags\n createdAt\n }\n\n allServiceAccesses(where: { consumer: { id: $id } }) {\n application {\n name\n owner {\n username\n }\n }\n }\n allProductsByNamespace {\n id\n name\n environments {\n id\n appId\n name\n active\n flow\n credentialIssuer {\n id\n availableScopes\n clientRoles\n }\n services {\n name\n routes {\n name\n }\n }\n }\n }\n }\n",
"added": "2021-07-03T01:43:27.940Z"
},
"13758b33b8f2db459bfb37fd789e5309": {
"referer": "http://localhost:4180/manager/consumers/60b5bff29dc26943fb23d4b6",
"query": "\n query GetConsumer($id: ID!) {\n getGatewayConsumerPlugins(id: $id) {\n id\n username\n aclGroups\n customId\n extForeignKey\n namespace\n plugins {\n id\n name\n extForeignKey\n config\n service {\n id\n name\n }\n route {\n id\n name\n }\n }\n tags\n createdAt\n }\n\n allServiceAccesses(where: { consumer: { id: $id } }) {\n name\n consumerType\n application {\n appId\n name\n owner {\n username\n }\n }\n }\n allProductsByNamespace {\n id\n name\n environments {\n id\n appId\n name\n active\n flow\n credentialIssuer {\n id\n availableScopes\n clientRoles\n }\n services {\n name\n routes {\n name\n }\n }\n }\n }\n }\n",
"added": "2021-07-03T01:46:50.029Z"
},
"0d9d51ac4ff398172f53dac66b86e481": {
"referer": "http://localhost:4180/manager/consumers/60ad8e1044cf9a36ef674085",
"query": "\n query GetConsumer($id: ID!) {\n getGatewayConsumerPlugins(id: $id) {\n id\n username\n aclGroups\n customId\n extForeignKey\n namespace\n plugins {\n id\n name\n extForeignKey\n config\n service {\n id\n name\n }\n route {\n id\n name\n }\n }\n tags\n createdAt\n }\n\n allServiceAccesses(where: { consumer: { id: $id } }) {\n name\n consumerType\n application {\n appId\n name\n owner {\n name\n username\n email\n }\n }\n }\n allProductsByNamespace {\n id\n name\n environments {\n id\n appId\n name\n active\n flow\n credentialIssuer {\n id\n availableScopes\n clientRoles\n }\n services {\n name\n routes {\n name\n }\n }\n }\n }\n }\n",
"added": "2021-07-03T01:47:50.661Z"
},
"b35cd8088be328bd3528db32a3ba97cf": {
"referer": "http://localhost:4180/manager/consumers/60ad8e1044cf9a36ef674085",
"query": "\n query GetConsumer($id: ID!) {\n getGatewayConsumerPlugins(id: $id) {\n id\n username\n aclGroups\n customId\n extForeignKey\n namespace\n plugins {\n id\n name\n extForeignKey\n config\n service {\n id\n name\n }\n route {\n id\n name\n }\n }\n tags\n createdAt\n }\n\n allServiceAccesses(where: { consumer: { id: $id } }) {\n name\n consumerType\n application {\n appId\n name\n owner {\n name\n username\n email\n }\n }\n }\n\n allProductsByNamespace {\n id\n name\n environments {\n id\n appId\n name\n active\n flow\n credentialIssuer {\n id\n availableScopes\n clientRoles\n }\n services {\n name\n routes {\n name\n }\n }\n }\n }\n }\n",
"added": "2021-07-03T01:47:59.254Z"
},
"b2e2c4b6ce7586668c34d3226ae6c5da": {
"referer": "http://localhost:4180/manager/consumers/60b7e9154b74934a7b6ad72a",
"query": "\n mutation updateGatewayConsumerPlugin($id: ID!, $controls: String!) {\n updateGatewayConsumerPlugin(id: $id, plugin: $controls) {\n id\n }\n }\n",
"added": "2021-07-03T03:10:14.327Z"
},
"7073ccad4a36f9d6b1fae48ad9e00f72": {
"referer": "http://localhost:4180/manager/consumers/60b7e9154b74934a7b6ad72a",
"query": "\n mutation updateGatewayConsumerPlugin(\n $id: ID!\n $pluginExtForeignKey: String!\n $controls: String!\n ) {\n updateGatewayConsumerPlugin(\n id: $id\n pluginExtForeignKey: $pluginExtForeignKey\n plugin: $controls\n ) {\n id\n }\n }\n",
"added": "2021-07-03T03:23:01.128Z"
},
"a2750969742e7ffa0880f452f82ee58b": {
"referer": "http://localhost:4180/manager/namespace-access",
"query": "\n mutation GrantUserAccess($prodEnvId: ID!, $data: UMAPermissionTicketInput!) {\n grantPermissions(prodEnvId: $prodEnvId, data: $data) {\n id\n }\n }\n",
"added": "2021-07-05T23:29:33.635Z"
},
"d78565ea5ddbf2b4c6f47b7654cb52c4": {
"referer": "http://localhost:4180/manager/namespace-access",
"query": "\n mutation GrantSAAccess(\n $prodEnvId: ID!\n $resourceId: String!\n $data: UMAPolicyInput!\n ) {\n createUmaPolicy(\n prodEnvId: $prodEnvId\n resourceId: $resourceId\n data: $data\n ) {\n id\n }\n }\n",
"added": "2021-07-06T02:58:10.429Z"
},
"990f9d0261b747a2d571b0898a9680a8": {
"referer": "http://localhost:4180/manager/namespace-access",
"query": "\n mutation RevokeSAAccess(\n $prodEnvId: ID!\n $resourceId: String!\n $policyId: String!\n ) {\n deleteUmaPolicy(\n prodEnvId: $prodEnvId\n resourceId: $resourceId\n policyId: $policyId\n )\n }\n",
"added": "2021-07-06T02:58:35.159Z"
}
}
2 changes: 1 addition & 1 deletion src/batch/data-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export const metadata = {
Product: {
query: 'allProducts',
refKey: 'appId',
sync: ['name'],
sync: ['name', 'namespace'],
transformations: {
dataset: { name: 'connectOne', list: 'allDatasets', refKey: 'name' },
environments: {
Expand Down
Loading

0 comments on commit ad3da05

Please sign in to comment.