diff --git a/ui/packages/consul-ui/app/components/certificate/index.hbs b/ui/packages/consul-ui/app/components/certificate/index.hbs index 4b669a00f5..8981db774c 100644 --- a/ui/packages/consul-ui/app/components/certificate/index.hbs +++ b/ui/packages/consul-ui/app/components/certificate/index.hbs @@ -7,7 +7,7 @@ > {{#if this.show}} -
{{@item}}
+ {{@item}} {{else}}
{{/if}} diff --git a/ui/packages/consul-ui/app/components/certificate/index.scss b/ui/packages/consul-ui/app/components/certificate/index.scss index e64747192f..3d21a9fa06 100644 --- a/ui/packages/consul-ui/app/components/certificate/index.scss +++ b/ui/packages/consul-ui/app/components/certificate/index.scss @@ -12,9 +12,11 @@ button.show::before { @extend %with-visibility-show-icon, %as-pseudo; } - div.key { + code { background-color: var(--gray-050); - overflow-wrap: anywhere; + overflow-wrap: break-word; + max-width: min-content; + padding: 0 12px; } hr { border: 3px dashed var(--gray-300); diff --git a/ui/packages/consul-ui/app/components/consul/auth-method/view/index.hbs b/ui/packages/consul-ui/app/components/consul/auth-method/view/index.hbs index 02004d1f3e..396aea1d72 100644 --- a/ui/packages/consul-ui/app/components/consul/auth-method/view/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/auth-method/view/index.hbs @@ -166,9 +166,9 @@
- {{#if @item.Config.ClaimMappings}}

Claim Mappings

+ {{#if @item.Config.ClaimMappings}}

Use this if the claim you are capturing is singular. When mapped, the values can be any of a number, string, or boolean and will all be stringified when returned.

@@ -186,16 +186,34 @@ {{/each}}
-
+ {{else}} + + +

No claim mappings

+
+ +

Use this if the claim you are capturing is singular. When mapped, the values can be any of a number, string, or boolean and will all be stringified when returned.

+
+ + + +
{{/if}} +
- {{#if @item.Config.ListClaimMappings}}

List Claim Mappings

+ {{#if @item.Config.ListClaimMappings}}

Use this if the claim you are capturing is list-like (such as groups). When mapped, the values can be any of a number, string, or boolean and will all be stringified when returned.

- +
@@ -211,7 +229,25 @@ {{/each}}
Key
-
+ {{else}} + + +

No list claim mappings

+
+ +

Use this if the claim you are capturing is list-like (such as groups). When mapped, the values can be any of a number, string, or boolean and will all be stringified when returned.

+
+ + + +
{{/if}} + {{/if}} \ No newline at end of file diff --git a/ui/packages/consul-ui/app/styles/components/empty-state/layout.scss b/ui/packages/consul-ui/app/styles/components/empty-state/layout.scss index 4de69fe593..d035f9a368 100644 --- a/ui/packages/consul-ui/app/styles/components/empty-state/layout.scss +++ b/ui/packages/consul-ui/app/styles/components/empty-state/layout.scss @@ -28,10 +28,7 @@ %empty-state > ul { display: flex; justify-content: space-between; - - margin-top: 1.5em; - padding-top: 0.6em; - border-top: 1px solid; + margin-top: 1em; } %empty-state-anchor { display: inline-flex; diff --git a/ui/packages/consul-ui/app/styles/components/empty-state/skin.scss b/ui/packages/consul-ui/app/styles/components/empty-state/skin.scss index da470e4ac5..70177f20ae 100644 --- a/ui/packages/consul-ui/app/styles/components/empty-state/skin.scss +++ b/ui/packages/consul-ui/app/styles/components/empty-state/skin.scss @@ -2,9 +2,6 @@ color: $gray-500; background-color: $gray-010; } -%empty-state > ul { - border-color: $gray-300; -} %empty-state-header { border-bottom: none; } diff --git a/ui/packages/consul-ui/mock-api/v1/acl/auth-method/_ b/ui/packages/consul-ui/mock-api/v1/acl/auth-method/_ index 3263795c66..fb231512a3 100644 --- a/ui/packages/consul-ui/mock-api/v1/acl/auth-method/_ +++ b/ui/packages/consul-ui/mock-api/v1/acl/auth-method/_ @@ -1,6 +1,20 @@ ${ [1].map(i => { const type = `${fake.helpers.randomize(['kubernetes', 'jwt', 'oidc'])}`; + const cert = `-----BEGIN CERTIFICATE----- +MIIH/TCCBeWgAwIBAgIQaBYE3/M08XHYCnNVmcFBcjANBgkqhkiG9w0BAQsFADBy +MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0b24x +ETAPBgNVBAoMCFNTTCBDb3JwMS4wLAYDVQQDDCVTU0wuY29tIEVWIFNTTCBJbnRl +cm1lZGlhdGUgQ0EgUlNBIFIzMB4XDTIwMDQwMTAwNTgzM1oXDTIxMDcxNjAwNTgz +M1owgb0xCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91 +c3RvbjERMA8GA1UECgwIU1NMIENvcnAxFjAUBgNVBAUTDU5WMjAwODE2MTQyNDMx +FDASBgNVBAMMC3d3dy5zc2wuY29tMR0wGwYDVQQPDBRQcml2YXRlIE9yZ2FuaXph +dGlvbjEXMBUGCysGAQQBgjc8AgECDAZOZXZhZGExEzARBgsrBgEEAYI3PAIBAxMC +VVMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDHheRkbb1FCc7xRKst +wK0JIGaKY8t7JbS2bQ2b6YIJDgnHuIYHqBrCUV79oelikkokRkFvcvpaKinFHDQH +UpWEI6RUERYmSCg3O8Wi42uOcV2B5ZabmXCkwdxY5Ecl51BbM8UnGdoAGbdNmiRm +SmTjcs+lhMxg4fFY6lBpiEVFiGUjGRR+61R67Lz6U4KJeLNcCm07QwFYKBmpi08g +-----END CERTIFICATE-----`; let sourceType; if (type !== 'kubernetes') { @@ -20,14 +34,14 @@ ${ case 'kubernetes': config = { Host: `https://${fake.internet.ip()}:8443`, - CACert: `-----BEGIN CERTIFICATE-----${fake.internet.password(1357)}-----END CERTIFICATE-----`, + CACert: cert, ServiceAccountJWT: `eyJhbGciOiJ${fake.internet.password(25)}.eyJ${fake.internet.password(61)}.${fake.internet.password(32)}` }; break; case 'oidc': config = { OIDCDiscoveryURL: `https://${fake.internet.ip()}:8443`, - OIDCDiscoveryCACert: `-----BEGIN CERTIFICATE-----${fake.internet.password(1357)}-----END CERTIFICATE-----`, + OIDCDiscoveryCACert: cert, OIDCClientID: `${fake.hacker.noun()}-ID`, OIDCClientSecret: `${fake.hacker.noun()}-secret`, BoundAudiences: ["aud_example_0", "aud_example_1"], @@ -55,11 +69,11 @@ ${ switch(sourceType) { case 'JWTValidationPubKeys': - config.JWTValidationPubKeys = `-----BEGIN CERTIFICATE-----${fake.internet.password(1357)}-----END CERTIFICATE-----`; + config.JWTValidationPubKeys = cert; break; case 'JWKSURL': config.JWKSURL = `https://${fake.internet.ip()}:8443`; - config.JWKSCACert = `-----BEGIN CERTIFICATE-----${fake.internet.password(1357)}-----END CERTIFICATE-----`; + config.JWKSCACert = cert; break; case 'OIDCDiscoveryURL': config.OIDCDiscoveryURL = `https://${fake.internet.ip()}:8443`;