Document OpenBao Browser CLI limits
This commit is contained in:
parent
f630d5135e
commit
53f3f4ca10
3 changed files with 18 additions and 2 deletions
|
|
@ -126,8 +126,17 @@ JSON
|
||||||
bao write auth/netkingdom/role/whynot-design-workload-kv-read @"$role_payload_file"
|
bao write auth/netkingdom/role/whynot-design-workload-kv-read @"$role_payload_file"
|
||||||
```
|
```
|
||||||
|
|
||||||
The OpenBao Web UI console may treat `bound_claims={...}` as a string. Use a
|
The OpenBao Browser CLI cannot run this shell block and may treat
|
||||||
raw JSON/API role editor when staying in the UI, or use the shell form above.
|
`bound_claims={...}` as a string. When staying in the Web UI, open the API
|
||||||
|
Explorer and submit the role payload JSON above with:
|
||||||
|
|
||||||
|
```text
|
||||||
|
method: PUT
|
||||||
|
path: /v1/auth/netkingdom/role/whynot-design-workload-kv-read
|
||||||
|
```
|
||||||
|
|
||||||
|
If the API Explorer asks for a path without the API prefix, use
|
||||||
|
`auth/netkingdom/role/whynot-design-workload-kv-read`.
|
||||||
|
|
||||||
## Non-Secret Reads
|
## Non-Secret Reads
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -388,6 +388,8 @@ def render_operator_commands(ccr: dict[str, Any]) -> str:
|
||||||
lines = [
|
lines = [
|
||||||
f"# Operator handoff for {ccr['id']}: {ccr['title']}",
|
f"# Operator handoff for {ccr['id']}: {ccr['title']}",
|
||||||
"# Run from the railiance-platform repo with an approved OpenBao operator token.",
|
"# Run from the railiance-platform repo with an approved OpenBao operator token.",
|
||||||
|
"# Do not paste this shell block into the OpenBao Browser CLI.",
|
||||||
|
f"# Web UI API Explorer path for the role JSON body: /v1/{auth_path}",
|
||||||
"set -euo pipefail",
|
"set -euo pipefail",
|
||||||
f"bao policy write {shlex.quote(openbao['policy_name'])} {shlex.quote(openbao['policy_file'])}",
|
f"bao policy write {shlex.quote(openbao['policy_name'])} {shlex.quote(openbao['policy_file'])}",
|
||||||
'role_payload_file="$(mktemp)"',
|
'role_payload_file="$(mktemp)"',
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,11 @@ class CredentialChangeTests(unittest.TestCase):
|
||||||
"bao write auth/netkingdom/role/whynot-design-workload-kv-read",
|
"bao write auth/netkingdom/role/whynot-design-workload-kv-read",
|
||||||
rendered,
|
rendered,
|
||||||
)
|
)
|
||||||
|
self.assertIn("# Do not paste this shell block into the OpenBao Browser CLI.", rendered)
|
||||||
|
self.assertIn(
|
||||||
|
"# Web UI API Explorer path for the role JSON body: /v1/auth/netkingdom/role/whynot-design-workload-kv-read",
|
||||||
|
rendered,
|
||||||
|
)
|
||||||
self.assertIn('role_payload_file="$(mktemp)"', rendered)
|
self.assertIn('role_payload_file="$(mktemp)"', rendered)
|
||||||
self.assertIn('"bound_claims": {', rendered)
|
self.assertIn('"bound_claims": {', rendered)
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue