Control: MSK clusters should disable unauthenticated access
Description
This control checks whether unauthenticated access is enabled for an Amazon MSK cluster. The control fails if unauthenticated access is enabled for the MSK cluster.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.msk_cluster_unauthenticated_access_disabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.msk_cluster_unauthenticated_access_disabled --share
SQL
This control uses a named query:
select arn as resource, case when not (provisioned -> 'ClientAuthentication' -> 'Unauthenticated' -> 'Enabled')::bool then 'ok' else 'alarm' end as status, case when not (provisioned -> 'ClientAuthentication' -> 'Unauthenticated' -> 'Enabled')::bool then title || ' unauthenticated access disabled.' else title || ' unauthenticated access enabled.' end as reason , region, account_idfrom aws_msk_cluster;