turbot/azure

steampipe plugin install azuresteampipe plugin install azure
On This Page
Get Involved

Table: azure_key_vault_secret

Azure Key Vault is a cloud service for securely storing and accessing secrets. A secret is anything that you want to tightly control access to, such as API keys, passwords, certificates, or cryptographic keys.

Examples

Basic info

select
name,
id,
vault_name,
enabled,
created_at,
updated_at,
value
from
azure_key_vault_secret;

List disabled secrets

select
name,
vault_name,
enabled
from
azure_key_vault_secret
where
not enabled;

List secrets that do not expire

select
name,
enabled,
expires_at
from
azure_key_vault_secret
where
expires_at is null;

List enabled secrets that have never been updated

select
name,
enabled,
created_at,
updated_at
from
azure_key_vault_secret
where
enabled
and age(updated_at, created_at) = '00:00:00';

Count the number of secrets by vault

select
vault_name,
count(vault_name) as count
from
azure_key_vault_secret
group by
vault_name;

.inspect azure_key_vault_secret

Azure Key Vault Secret

NameTypeDescription
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
content_typetextSpecifies the type of the secret value such as a password.
created_attimestamp without time zoneSpecifies the time when the secret is created.
enabledbooleanIndicates whether the secret is enabled, or not.
expires_attimestamp without time zoneSpecifies the time when the secret will expire.
idtextContains ID to identify a secret uniquely.
kidtextIf this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate.
managedbooleanIndicates whether the secret's lifetime is managed by key vault, or not.
nametextThe friendly name that identifies the secret.
not_beforetimestamp without time zoneSpecifies the time before which the secret is not usable.
recoverable_daysbigintSpecifies the soft delete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0.
recovery_leveltextThe deletion recovery level currently in effect for the object. If it contains 'Purgeable', then the object can be permanently deleted by a privileged user; otherwise, only the system can purge the object at the end of the retention interval.
regiontextThe Azure region/location in which the resource is located.
resource_grouptextThe resource group which holds this resource.
subscription_idtextThe Azure Subscription ID in which the resource is located.
tagsjsonbA map of tags for the resource.
titletextTitle of the resource.
updated_attimestamp without time zoneSpecifies the time when the secret was last updated.
valuetextSpecifies the secret value.
vault_nametextThe friendly name that identifies the vault.