-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Latest Release - sec fixes (#491)
* First pass at new consumers table. * Stub out filters. * Finish base filter behavior. * Finish basic POC of filters. * Fix up consumers list page. * Add proper id to search logic * First pass at approval dialog * First pass at laying out access request dialog. * Add working forms. * Fix possible empty object * Proxy access requests. * Add missing allowed query. * Touch up some files. * Wire up conditional select options. * Wire up auth and controls. * Bubble controls up to the top level. * Finish forms and add data-testids * First pass at new consumers table. * Stub out filters. * Finish base filter behavior. * Finish basic POC of filters. * Fix up consumers list page. * Add proper id to search logic * First pass at consumers unit tests. * Fix type error. * Unit tests for consumers index page functionality. * Add mocks for access request * Fix some tests, start grant access dialog * Add tests for request details and controls * Add more unit tests for access requests so consumers page tests can be lighter * Dialog and controls tests. * Add grant access dialog tests. * Clean up consumers tests. * First pass at detail page layout. * Add restrictions. * Handle restrictions * UI layout tweaks and add edit form. * First pass at editing controls. * Finish first pass at refactor of consumers. * Update tests. * Finish IP restrictions test. * Fix up tests. * Add some coverage and fix broken tests. * Add some edit dialog tests * initial backend changes for getFilteredNamespaceConsumers * add backend for getNamespaceConsumerAccess * put back application owner in detail page * upd backend support for getConsumerProdEnvAccess * Update tests, organize MSW directory and add new consumers page query * backend getConsumerProdEnvAccess query * upd tests for backend * upd backend ConsumerProdEnvAccess object * Wire up auth, wire up UI for new API changes. * upd services for consumer access detail * Wire up edit dialog with new API. * Fix type errors * Fix some props access on the consumers detail page. * Remove debugger * upd backend updateConsumerAccess and saveConsumerLabels * adj request details on consumer * Update edit dialog and mock data. * Add app owner. * upd app owner for consumer detail and graphql whitelist * upd whitelist for access review * add allConsumerGroupLabels * Add new manage labels dialog. * tweak grant access dialog * upd permissions and whitelist for saving labels * Added Scenarios for Refresh Credentials, API Test and update existing client credential scenarios * Wire up manage labels on consumers index page. * Update grant access dialog * add filter for consumer list * add filter for consumer list * add revokeAccessFromConsumer backend call * for grant access scopes and roles are optional * add revokeAccessFromConsumer backend call * request details optional on edit dialog * 1) Change config of oauth2 proxy and keycloak 2) Update cypress tests * Refactor filters. * filters structure for labels changed a bit * Use names in filters instead of ids. Prevent duplicates * wire up filtering for consumers * wire up consumer scope and role backend for filter selection * Wire up labels to the UI * fix failing build * add backend scope search logic * Add loading state to filters. * Add new add label group interface. * new whitelist query for manage labels * save labels remove blank label * Update labels functionality, rework filters. * add whitelist for consumer list query * consumer read for api owner * fix a ssr invalid query * Cache fixes, proper naming in request dialog * Add caching to filters, minor UI improvements. * updates for consumer plugins * fix edit consumer * disable filtering * handle services not linked to products * inc whitelist for reject request * fix plugin matching for consumer detail * filter bug * Fix the filters when no session storage. * upd plugin service and route lisst * add role update for consumer * Add labels to access request * Add test-ids * resource tune for proto-generic-api and -mongodb * wire up labels on access request * remove dev,test,prod on push from ci-build-deploy * Add revoke and hide application row if null * fix for revoking access * missing whitelist for revoke access * 1)updated scenarios as per new Consumer UI 2)Added data-testid in filrwes.tsx page 3)Update keystone db schema as per new changes * upd query types * upd types * remove svc accts from consumer list and fix plugin error * stop using service access id in consumer list * fix consumer product edit dialog * improve plugin update comparison * upd plugins when grant new product to consumer * remove from whitelist the deleteGatewayConsumer * delete consumer upds * fix my access and access lists * dedup list of scopes * Add some custom error messages * Remove bcsc user menu option * Use unified error in toasts * fix 427 api key not getting deleted * resolve 443 creds for jwt key pair * fix org dataset operations * Standardize toasts to all be closable with only a startcase capitalized * add test branch back in to ci-build-deploy * fix revoke access whitelist * Comment out flaky verification step * fix ci-build-deploy indent * Fix yaml formatting * add in resources * run as production when starting keystone * fix allProductsByNamespace showing too much * fix unable to load form for access request * fix gateway services showing too many services * Added Test to verify directory details for the namespace that has no directory * Added test to verify namespace having no directory * improve log security * fix wrong role for identity provider * fix ds api error response dataset * fix business profile not displaying * remove old pages for requests * Update expected status code when call the API with non exist directory ID Co-authored-by: Joshua Jones <[email protected]> Co-authored-by: ikethecoder <[email protected]> Co-authored-by: Niraj Patel <[email protected]> Co-authored-by: nirajCITZ <[email protected]> Co-authored-by: Justin Tendeck <[email protected]> Co-authored-by: ikethecoder <[email protected]> Co-authored-by: jTendeck <[email protected]>
- Loading branch information
1 parent
f1aae30
commit 3ae1d2b
Showing
31 changed files
with
448 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
|
||
|
||
const HelloPage = require.resolve('./pages/hello') | ||
const Placeholder = require.resolve('./pages/placeholder') | ||
|
||
module.exports = { | ||
pages: [ | ||
{ | ||
label: 'Dashboard', | ||
path: '', | ||
component: Placeholder, | ||
}, | ||
{ | ||
label: 'Workflow', | ||
children: ['AccessRequest', 'Application', 'ServiceAccess', 'Activity'], | ||
}, | ||
{ | ||
label: 'Products', | ||
children: ['Product', 'Environment', 'CredentialIssuer', 'Content', 'Legal'], | ||
}, | ||
{ | ||
label: 'Monitoring', | ||
children: ['Alert', 'Metric'], | ||
}, | ||
{ | ||
label: 'Session', | ||
children: ['TemporaryIdentity'], | ||
}, | ||
{ | ||
label: 'Keycloak', | ||
children: ['User'], | ||
}, | ||
{ | ||
label: 'Kong', | ||
children: ['GatewayService', 'GatewayRoute', 'GatewayConsumer', 'GatewayGroup', 'GatewayPlugin'], | ||
}, | ||
{ | ||
label: 'BCDC', | ||
children: ['Organization', 'OrganizationUnit', 'Dataset'], | ||
} | ||
] | ||
} | ||
pages: [ | ||
{ | ||
label: 'Workflow', | ||
children: ['AccessRequest', 'Application', 'ServiceAccess', 'Activity'], | ||
}, | ||
{ | ||
label: 'Products', | ||
children: [ | ||
'Product', | ||
'Environment', | ||
'CredentialIssuer', | ||
'Content', | ||
'Legal', | ||
], | ||
}, | ||
{ | ||
label: 'Monitoring', | ||
children: ['Alert', 'Metric'], | ||
}, | ||
{ | ||
label: 'Session', | ||
children: ['TemporaryIdentity'], | ||
}, | ||
{ | ||
label: 'Keycloak', | ||
children: ['User'], | ||
}, | ||
{ | ||
label: 'Kong', | ||
children: [ | ||
'GatewayService', | ||
'GatewayRoute', | ||
'GatewayConsumer', | ||
'GatewayGroup', | ||
'GatewayPlugin', | ||
], | ||
}, | ||
{ | ||
label: 'BCDC', | ||
children: ['Organization', 'OrganizationUnit', 'Dataset'], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/authz/graphql-whitelist/httplocalhost4180managerconsumers-3a56c3.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
query GetBusinessProfile($consumerId: ID!) { | ||
BusinessProfile(serviceAccessId: $consumerId) { | ||
institution { | ||
legalName | ||
address { | ||
addressLine1 | ||
addressLine2 | ||
city | ||
postal | ||
province | ||
country | ||
} | ||
isSuspended | ||
businessTypeOther | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/authz/graphql-whitelist/httplocalhost4180managerconsumers-4dbd7b.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
query GetBusinessProfile($consumerId: ID!) { | ||
BusinessProfile(consumerId: $consumerId) { | ||
institution { | ||
legalName | ||
address { | ||
addressLine1 | ||
addressLine2 | ||
city | ||
postal | ||
province | ||
country | ||
} | ||
isSuspended | ||
businessTypeOther | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/authz/graphql-whitelist/httplocalhost4180managerconsumers-5d889f.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
query GetAccessRequests { | ||
allAccessRequestsByNamespace(where: { isComplete_not: true }) { | ||
id | ||
name | ||
additionalDetails | ||
communication | ||
createdAt | ||
requestor { | ||
name | ||
} | ||
application { | ||
name | ||
} | ||
productEnvironment { | ||
id | ||
name | ||
additionalDetailsToRequest | ||
product { | ||
name | ||
} | ||
} | ||
serviceAccess { | ||
consumer { | ||
id | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/authz/graphql-whitelist/httplocalhost4180managerconsumers-f5a769.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
query RequestDetailsBusinessProfile($consumerId: ID!) { | ||
BusinessProfile(consumerId: $consumerId) { | ||
institution { | ||
legalName | ||
address { | ||
addressLine1 | ||
addressLine2 | ||
city | ||
postal | ||
province | ||
country | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,11 @@ const query = gql` | |
name | ||
} | ||
} | ||
serviceAccess { | ||
consumer { | ||
id | ||
} | ||
} | ||
} | ||
} | ||
`; |
Oops, something went wrong.