Set Authentication
Kubemqctl
Helm
yaml

Flags

Flag
Type/Options
Default
Description
--authentication-enabled
bool
false
Enable authentication configuration
--authentication-public-key-data
string
""
Set authentication public key data
--authentication-public-key-file
string
""
Set authentication public key filename
--authentication-public-key-type
string
""
Set authentication public key type
authentication-public-key-type options: HS256/HS384/HS512/RS256/RS384/RS512/ES256/ES384/ES512

Example

Load key.pem as a public key file encoded with RSA 512:
1
kubemqctl create cluster --authentication-enabled --authentication-public-key-file ./key.pem --authentication-public-key-type "RS512"
Copied!

Values

Value
Type/Options
Default
Description
authentication.key
string
""
Set authentication public key data
authentication.type
string
""
Set authentication public key type
authentication.type options:
HS256/HS384/HS512/RS256/RS384/RS512/ES256/ES384/ES512

Example

Load key.pem as a public key file encoded with RSA 512:
1
helm install kubemq-cluster --set-file authentication.key=./key.pem --set authentication.type=RS512 kubemq-charts/kubemq
Copied!

Fields

Field
Type/Options
Default
Description
key
string
""
Set JWT public key data
type
string
""
Set JWT public key signing method
type options:
HS256/HS384/HS512/RS256/RS384/RS512/ES256/ES384/ES512

Example

Load key.pem as a public key file encoded with RSA 512:
Run:
1
kubectl apply -f {below-yaml-file}
Copied!
1
apiVersion: core.k8s.kubemq.io/v1alpha1
2
kind: KubemqCluster
3
metadata:
4
name: kubemq-cluster
5
namesapce: kubemq
6
labels:
7
app: kubemq-cluster
8
spec:
9
replicas: 3
10
authentication:
11
key: |-
12
-----BEGIN PUBLIC KEY-----
13
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt2GVE6vIMKlUsJeIQrSX
14
tPG7X+06/qfyfQUjYJYvn1Pff05B3LcazECYEMd/act5YlnzrMg6hlbcoa9szr3/
15
mpwjJ+l4RKd6J1uZngPaGaRSAr4DvSYsMe9pRrrOnW9XyRBLiB+EOriq5qkcSTnR
16
cwwoczPekJOK45rEUgdaL5JP/TRhYYwgayb+zQ5cu+1Hx94m5XldrAzkeQ8ldMeW
17
BPzfasnX6zaBXtdWksJqmpMMWg1NunH3+NWFyLsPt4BNbtjpKOp7Wq3jDQpp803P
18
sK3/XksM/87qPL4xNCJuV8MF4Pbx8JE3ZRusK6usmJrohv8+vgIIg4oKdpMjDlrz
19
pQIDAQAB
20
-----END PUBLIC KEY-----
21
type: RS512
Copied!
Last modified 1yr ago
Copy link