turbot/azure_compliance

Query: kubernetes_instance_rbac_enabled

Usage

powerpipe query azure_compliance.query.kubernetes_instance_rbac_enabled

SQL

select
kc.id as resource,
case
when enable_rbac then 'ok'
else 'alarm'
end as status,
case
when enable_rbac then name || ' role based access control enabled.'
else name || ' role based access control disabled.'
end as reason,
enable_rbac
, kc.resource_group as resource_group
, sub.display_name as subscription
from
azure_kubernetes_cluster kc,
azure_subscription sub
where
sub.subscription_id = kc.subscription_id;

Controls

The query is being used by the following controls: