Skip to content

Commit

Permalink
Fix secret_id and document minimal ACL policy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Jun 28, 2021
1 parent 56f679d commit ea6ba46
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion libbeat/docs/shared-autodiscover.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,18 @@ The `nomad` autodiscover provider has the following configuration settings:

`namespace`:: (Optional) Namespace to use. If not provided the `default` namespace is used.

`secret_id`:: (Optional) SecretID to use if ACL is enabled in Nomad.
`secret_id`:: (Optional) SecretID to use if ACL is enabled in Nomad. A minimal
ACL policy is:

[source,hcl]
----
node {
policy = "read"
}
agent {
policy = "read"
}
----

`node`:: (Optional) Specify the node to scope {beatname_lc} to in case it
cannot be accurately detected when `node` scope is used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ uses `http://127.0.0.1:4646` by default.
in this namespace will be annotated.
`region`:: (Optional) Region to watch. If set, only events for allocations in
this region will be annotated.
`secretID`:: (Optional) SecretID to use when connecting with the agent API.
`secret_id`:: (Optional) SecretID to use when connecting with the agent API. A
minimal ACL policy is:

[source,hcl]
----
node {
policy = "read"
}
agent {
policy = "read"
}
----
`refresh_interval`:: (Optional) Interval used to updated the cached metadata. It
defaults to 30 seconds.
`cleanup_timeout`:: (Optional) After an allocation has been removed, time to
Expand Down

0 comments on commit ea6ba46

Please sign in to comment.