Skip to content

Consul ACL bootstrap error #18705

@const-tmp

Description


Describe the bug
Consul secret engine ACL bootstrap doesn't work as described in documentation
After vault write consul/config/access address="127.0.0.1:8500" we got an error:

➜  ~ vault write consul/config/access \
    address="127.0.0.1:8500"

Error writing data to consul/config/access: Error making API request.

URL: PUT http://127.0.0.1:8200/v1/consul/config/access
Code: 400. Errors:

* Token not provided and failed to bootstrap ACLs

To Reproduce
Steps to reproduce the behavior:

  1. vault server -dev
  2. vault secrets enable consul
  3. vault write consul/config/access address="127.0.0.1:8500"
  4. See error

Expected behavior
Vault bootstraps Consul ACL as described in docs

Environment:

  • Vault Server Version (retrieve with vault status):
➜  ~ vault status
Key             Value
---             -----
Seal Type       shamir
Initialized     true
Sealed          false
Total Shares    1
Threshold       1
Version         1.12.2
Build Date      2022-11-23T12:53:46Z
Storage Type    inmem
Cluster Name    vault-cluster-3798f231
Cluster ID      045672f5-3092-7d42-5a2d-503ea731f969
HA Enabled      false
  • Vault CLI Version (retrieve with vault version):
➜  ~ vault version
Vault v1.12.2 ('415e1fe3118eebd5df6cb60d13defdc01aa17b03+CHANGES'), built 2022-11-23T12:53:46Z
  • Server Operating System/Architecture: MacOS 13.0.1 M1

Vault server configuration file(s):
vault dev server or production one

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions