Control: AWS Private CA root certificate authority should be disabled
Description
This control checks if AWS Private CA has a root certificate authority (CA) that is disabled. The control fails if the root CA is enabled.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.acmpca_root_certificate_authority_disabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.acmpca_root_certificate_authority_disabled --share
SQL
This control uses a named query:
select arn as resource, case when type <> 'ROOT' then 'skip' when status = 'DISABLED' then 'ok' else 'alarm' end as status, case when type <> 'ROOT' then title || ' is not root CA.' when status = 'DISABLED' then title || ' root CA disabled.' else title || ' root CA not disabled.' end as reason , region, account_idfrom aws_acmpca_certificate_authority;