我开始使用保险库,当我在保险库中添加一个秘密时,我通过了租约 = 10 秒,但在 10 秒后,秘密没有被删除。我怎样才能从保险库中删除秘密?
vault write -address=http://localhost:8200 secret/foo name=foo lease=10s
Success! Data written to: secret/foo
vault read -address=http://localhost:8200 -format=json secret/foo
{
"request_id": "498db605-a238-2d99-2e36-7045c826f48d",
"lease_id": "",
"lease_duration": 10,
"renewable": false,
"data": {
"lease": "10s",
"name": "foo"
},
"warnings": null
}