Skip to content

Commit f37bb0d

Browse files
committed
feat(security): split Security into Credentials and Certificates
1 parent e44b477 commit f37bb0d

5 files changed

Lines changed: 60 additions & 10 deletions

File tree

console-extensions.json

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,16 @@
9999
"type": "console.page/route",
100100
"properties": {
101101
"exact": true,
102-
"path": "/cryostat/security",
103-
"component": { "$codeRef": "SecurityPage" }
102+
"path": "/cryostat/certificates",
103+
"component": { "$codeRef": "CertificatesPage" }
104+
}
105+
},
106+
{
107+
"type": "console.page/route",
108+
"properties": {
109+
"exact": true,
110+
"path": "/cryostat/credentials",
111+
"component": { "$codeRef": "CredentialsPage" }
104112
}
105113
},
106114
{
@@ -256,9 +264,19 @@
256264
{
257265
"type": "console.navigation/href",
258266
"properties": {
259-
"id": "security",
260-
"name": "%plugin__cryostat-plugin~Navigation.Security%",
261-
"href": "/cryostat/security",
267+
"id": "certificates",
268+
"name": "%plugin__cryostat-plugin~Navigation.Certificates%",
269+
"href": "/cryostat/certificates",
270+
"perspective": "admin",
271+
"section": "cryostat-section"
272+
}
273+
},
274+
{
275+
"type": "console.navigation/href",
276+
"properties": {
277+
"id": "credentials",
278+
"name": "%plugin__cryostat-plugin~Navigation.Credentials%",
279+
"href": "/cryostat/credentials",
262280
"perspective": "admin",
263281
"section": "cryostat-section"
264282
}

locales/en/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"Navigation.Diagnostics": "Diagnostics",
1313
"Navigation.HeapDumps": "Analyze Heap Dumps",
1414
"Navigation.ThreadDumps": "Analyze Thread Dumps",
15-
"Navigation.Security": "Security",
15+
"Navigation.Certificates": "Certificates",
16+
"Navigation.Credentials": "Credentials",
1617
"Navigation.About": "About",
1718
"DEPLOYMENT_ACTION_TITLE": "Register with Cryostat",
1819
"DEPLOYMENT_ACTION_ALREADY_REGISTERED": "Deployment is already registered with this option",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@
140140
"DiagnosticsPage": "./openshift/pages/DiagnosticsPage",
141141
"ThreadDumpsPage": "./openshift/pages/ThreadDumpsPage",
142142
"HeapDumpsPage": "./openshift/pages/HeapDumpsPage",
143-
"SecurityPage": "./openshift/pages/SecurityPage",
143+
"CertificatesPage": "./openshift/pages/CertificatesPage",
144+
"CredentialsPage": "./openshift/pages/CredentialsPage",
144145
"DeploymentLabelActionProvider": "./openshift/actions/DeploymentLabelAction/DeploymentLabelActionProvider",
145146
"getDeploymentDecorator": "./openshift/actions/DeploymentLabelAction/getDeploymentDecorator"
146147
},
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import SecurityPanel from '@app/SecurityPanel/SecurityPanel';
16+
import { Certificates } from '@app/Security/Certificates';
1717
import { CryostatContainer } from '@console-plugin/components/CryostatContainer';
1818
import '@app/app.css';
1919

20-
export default function SecurityPage() {
20+
export default function CertificatesPage() {
2121
return (
2222
<CryostatContainer>
23-
<SecurityPanel />
23+
<Certificates />
2424
</CryostatContainer>
2525
);
2626
}
27+
28+
// Made with Bob
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright The Cryostat Authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
import { StoredCredentialsView } from '@app/Security/Credentials/StoredCredentials';
17+
import { CryostatContainer } from '@console-plugin/components/CryostatContainer';
18+
import '@app/app.css';
19+
20+
export default function CredentialsPage() {
21+
return (
22+
<CryostatContainer>
23+
<StoredCredentialsView />
24+
</CryostatContainer>
25+
);
26+
}
27+
28+
// Made with Bob

0 commit comments

Comments
 (0)