rpk ai policy analyze
Analyze a draft using PermissionService. Does not read or write stored policies or make authorization decisions. Requires an environment and authentication. Source is limited to 64 KiB of UTF-8. Diagnostics are printed even when analysis fails; parse or validation errors return a nonzero exit status. Warnings alone do not fail.
| This command was introduced in ai version 0.2.94. |
Examples
This section provides examples of how to use rpk ai policy analyze.
rpk ai policy analyze --cedar-file draft.cedar -o json
cat draft.cedar | rpk ai policy analyze --cedar-file=- -o json
rpk ai policy analyze --cedar 'permit(principal, action, resource);'
Flags
| Value | Type | Description |
|---|---|---|
|
string |
inline Cedar policy text. Mutually exclusive with |
|
string |
Cedar input file, or - for stdin. Never overwritten. Mutually exclusive with |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |