Skip to content

Commit 02a8e6a

Browse files
authored
Mention the need to pass X-Trino-User in graceful shutdown
1 parent e13700d commit 02a8e6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/main/sphinx/admin/graceful-shutdown.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sufficient grace period.
77
You can invoke the API with a HTTP PUT request:
88

99
```bash
10-
curl -v -X PUT -d '"SHUTTING_DOWN"' -H "Content-type: application/json" \
10+
curl -v -X PUT -d '"SHUTTING_DOWN"' -H "Content-type: application/json" -H "X-Trino-User: authorizeduser" \
1111
http://worker:8081/v1/info/state
1212
```
1313

@@ -26,6 +26,7 @@ Keep the following aspects in mind:
2626
configure {ref}`system information rules
2727
<system-file-auth-system-information>` with the `file` system access
2828
control. These configuration must be present on all workers.
29+
- The user supplied in the `X-Trino-User` header must have permissions to write "system information"
2930

3031
## Shutdown behavior
3132

0 commit comments

Comments
 (0)