Vault无法连接超时



我有一个Hasicorp Vault服务器正在运行,当我使用下面的命令在本地对其执行curl请求时,我会收到一个错误(如下(。

当我运行命令curl -H "X-Vault-Token: $VAULT_TOKEN" $VAULT_ADDR/v1/secret/keys时,它在vault服务器上运行良好,但当我在笔记本电脑上运行时,它会出错。

$VAULT_TOKEN$VAULT_ADDR都在本地机器上正确设置。

错误

curl: (7) Failed to connect to example.com port 8200: Operation timed out

/etc/vault.hcl

backend "file" {
path = "/var/lib/vault"
scheme = "http"
redirect_addr = "http://example.com:8200"
VAULT_ADDR = "http://example.com:8200"
}
listener "tcp" {
address = "0.0.0.0:8200"
tls_disable = 0
tls_cert_file = "/etc/letsencrypt/live/example.com/fullchain.pem"
tls_key_file = "/etc/letsencrypt/live/example.com/privkey.pem"
}

问题最终与vault无关,而是Azure上端口8200被阻止的防火墙问题。

相关内容

  • 没有找到相关文章

最新更新