mirror of https://github.com/status-im/consul.git
docs: minor fixes to JWT auth docs (#17680)
* Fixes * service intentions fixes
This commit is contained in:
parent
66704e5cb9
commit
37a13dcf82
|
@ -109,7 +109,7 @@ Name = "<name-of-provider-configuration-entry>" # required
|
|||
Issuer = "<jwt-issuer>" # required
|
||||
JSONWebKeySet = { # required
|
||||
Local = { # cannot specify with JWKS{}.Remote
|
||||
JWKS = "<JWKS-formatted-as-string>" # cannot specify with JWKS{}.Local{}.Filename
|
||||
JWKS = "<JWKS-as-base64-string>" # cannot specify with JWKS{}.Local{}.Filename
|
||||
Filename = "<path/to/JWKS/file>" # cannot specify with JWKS{}.Local{}.String
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ JSONWebKeySet = {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Audiences = ["<aud-claims>"]
|
||||
Locations = [
|
||||
{
|
||||
|
@ -164,16 +164,16 @@ CacheConfig = {
|
|||
|
||||
```json
|
||||
{
|
||||
"Kind": "jwt-provider", // required
|
||||
"Name": "<name-of-provider-configuration-entry>", // required
|
||||
"Issuer": "<jwt-issuer>", // required
|
||||
"JSONWebKeySet": { // required
|
||||
"Kind": "jwt-provider", // required
|
||||
"Name": "<name-of-provider-configuration-entry>", // required
|
||||
"Issuer": "<jwt-issuer>", // required
|
||||
"JSONWebKeySet": { // required
|
||||
"Local": { // cannot specify with JWKS.Remote
|
||||
"JWKS": "<JWKS-formatted-as-string>", // cannot specify with JWKS.Local.Filename
|
||||
"JWKS": "<JWKS-as-base64-string>", // cannot specify with JWKS.Local.Filename
|
||||
"Filename": "<path/to/JWKS/file>" // cannot specify with JWKS.Local.String
|
||||
}
|
||||
},
|
||||
"JSONWebKeySet": {
|
||||
},
|
||||
"JSONWebKeySet": {
|
||||
"Remote": { // cannot specify with JWKS.Local
|
||||
"URI": "<uniform-resource-identifier>",
|
||||
"RequestTimeoutMs": "1500",
|
||||
|
@ -187,9 +187,9 @@ CacheConfig = {
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Audiences": ["<aud-claims>"],
|
||||
"Locations": [
|
||||
},
|
||||
"Audiences": ["<aud-claims>"],
|
||||
"Locations": [
|
||||
{
|
||||
"Header": {
|
||||
"Name": "<name-of-header-with-token>",
|
||||
|
@ -207,15 +207,15 @@ CacheConfig = {
|
|||
"Name": "<name-of-cookie-with-token>"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Forwarding": {
|
||||
],
|
||||
"Forwarding": {
|
||||
"HeaderName": "<name-appended-to-forwarding-header>",
|
||||
"PadForwardPayloadHeader": "false"
|
||||
},
|
||||
"ClockSkewSeconds": "30",
|
||||
"CacheConfig": {
|
||||
},
|
||||
"ClockSkewSeconds": "30",
|
||||
"CacheConfig": {
|
||||
"Size": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -233,7 +233,7 @@ spec: # required
|
|||
issuer: <jwt-issuer>
|
||||
jsonWebKeySet:
|
||||
local: # cannot specify with spec.jsonWebKeySet.remote
|
||||
jwks: <jwks-formatted-as-string> # cannot specify with spec.jsonWebKeySet.local.filename
|
||||
jwks: <jwks-as-base64-string> # cannot specify with spec.jsonWebKeySet.local.filename
|
||||
filename: <path/to/jwks/file> # cannot specify with spec.jsonWebKeySet.local.string
|
||||
jsonWebKeySet:
|
||||
remote: # cannot specify with spec.jsonWebKeySet.local
|
||||
|
@ -1014,7 +1014,7 @@ metadata:
|
|||
name: okta
|
||||
spec:
|
||||
issuer: okta
|
||||
jsonwebkeyset:
|
||||
jsonWebKeySet:
|
||||
remote:
|
||||
uri: https://<org>.okta.com/oauth2/default/v1/keys
|
||||
cacheDuration: 30m
|
||||
|
|
|
@ -1506,11 +1506,11 @@ Sources = [
|
|||
```
|
||||
|
||||
```yaml
|
||||
apiVersion: consul.hashicorp.com/v1alpha1
|
||||
kind: ServiceIntentions
|
||||
metadata:
|
||||
apiVersion: consul.hashicorp.com/v1alpha1
|
||||
kind: ServiceIntentions
|
||||
metadata:
|
||||
name: backend
|
||||
spec:
|
||||
spec:
|
||||
sources:
|
||||
name: frontend
|
||||
permissions:
|
||||
|
@ -1531,9 +1531,9 @@ Sources = [
|
|||
|
||||
```json
|
||||
{
|
||||
"Kind": "service-intentions",
|
||||
"Name": "backend",
|
||||
"Sources": [
|
||||
"Kind": "service-intentions",
|
||||
"Name": "backend",
|
||||
"Sources": [
|
||||
{
|
||||
"Name": "frontend",
|
||||
"Permissions": [
|
||||
|
@ -1563,7 +1563,7 @@ Sources = [
|
|||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue