Skip to content

Commit

Permalink
docs/debug: add example policy for debug command (hashicorp#20232)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonodonnell authored Apr 18, 2023
1 parent 4d3e220 commit 3faba5d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions website/content/docs/commands/debug.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,34 @@ query the matching endpoint in order to get a proper response. Any errors
encountered during capture due to permissions or otherwise will be logged in the
index file.

The following policy can be used for generating debug packages with all targets:

```hcl
path "auth/token/lookup-self" {
capabilities = ["read"]
}
path "sys/pprof/*" {
capabilities = ["read"]
}
path "sys/config/state/sanitized" {
capabilities = ["read"]
}
path "sys/monitor" {
capabilities = ["read"]
}
path "sys/host-info" {
capabilities = ["read"]
}
path "sys/in-flight-req" {
capabilities = ["read"]
}
```

## Capture Targets

The `-target` flag can be specified multiple times to capture specific
Expand Down

0 comments on commit 3faba5d

Please sign in to comment.