0

In our codebase we want a service to verify if a secret (key) is present without actually reading the secret. Using 1.7.0.4 on .NET 6

such a request can be done in this way :

curl https://myvaultserver/v1/secret/subkeys/mygroup/myservice

data is returned as:

{
  "request_id": "2bd49db9-278a-0f25-6038-236897bdea5b",
  "lease_id": "",
  "renewable": false,
  "lease_duration": 0,
  "data": {
    "metadata": {
      "created_time": "2022-06-10T08:41:10.171396632Z",
      "custom_metadata": null,
      "deletion_time": "",
      "destroyed": false,
      "version": 16
    },
    "subkeys": {
      "Quote__TeamsWebhook": null,
      "RabbitMQ__ConnectionString": null,
      "SqlServer__ClientCert": null,
      "SqlServer__DataSource": null,
      "SqlServer__Password": null,
      "SqlServer__UserID": null
    }
  },
  "wrap_info": null,
  "warnings": null,
  "auth": null
}
burnsi
  • 6,194
  • 13
  • 17
  • 27
  • [The documentation](https://github.com/rajanadar/VaultSharp#list-secrets-1) shows a *list secrets* operation. Is that what you are looking for? – Crowcoder Jun 10 '22 at 12:29
  • will take care of this as part of https://github.com/rajanadar/VaultSharp/issues/268 – Raja Nadar Jul 18 '22 at 08:03

0 Answers0