1

我正在尝试删除策略。

使用根令牌登录后,我执行以下操作:

$ vault policy delete testttt
Error deleting testttt: Error making API request.

URL: DELETE https://vault.local:8200/v1/sys/policies/acl/testttt
Code: 400. Errors:

* failed to delete policy: AccessDenied: Access Denied
    status code: 403, request id: VB6YWECETDJ5KB7Q, host id:         
S0FJvs41pSbzTmP1lDr/aVSOPjeRVz4Vk/ofkFHu8jvNjfzk6ARnY33qzP/usqmpVDExwLlsF44=

我的配置文件如下所示:

storage "s3" {
  access_key = "XXXX"
  secret_key = "XXXX"
  bucket     = "XXXX-vault"
  region     = "eu-central-1"
}

listener "tcp" {
  address     = "0.0.0.0:8200"
  tls_cert_file = "/etc/vault.d/fullchain.pem"
  tls_key_file  = "/etc/vault.d/privkey.pem"
}


api_addr = "http://0.0.0.0:8200"
cluster_addr = "https://0.0.0.0:8201"
ui = true

有些东西似乎完全不对,因为在 UI 中使用根令牌后,我也只看到了这个:

null is not an object (evaluating 'l.userRootNamespace')
4

0 回答 0