Set Authorization

Flags

Flag

Type/Options

Default

Description

--authorization-enabled

string

false

Enable authorization configuration

--authorization-policy-data

string

""

Set authorization policy data

--authorization-policy-file

string

""

set authorization policy filename

--authorization-url

string url

""

Set authorization policy loading url

--authorization-auto-reload

int

0

Set auto reload policy data from url

Examples

Set predefined authorization rules policy where policy.json is json array of access control rules:

kubemqctl create cluster --authorization-enabled --authorization-policy-file ./policy.json

Set authorization web service rules source:

kubemqctl create cluster --authorization-enabled --authorization-url "http://your.url.rules/" --authorization-auto-reload 120

KubeMQ will call "http://your.url.rules" every 120 seconds and pulls the Authorization policy json array

Last updated