aws_signer_signing_profiles resource
Use the aws_signer_signing_profiles InSpec audit resource to test properties of multiple AWS Signer signing profiles.
A signing profile is a code signing template that can be used to carry out a pre-defined signing job.
For additional information, including details on parameters and properties, see the AWS documentation on AWS Signer SigningProfile..
Syntax
Ensure that the signing profile exists.
describe aws_signer_signing_profiles do
it { should exist }
end
Parameters
This resource does not require any parameters.
Properties
profile_names- The name of the target signing profile.
Field:
profile_nameprofile_versions- The current version of the signing profile.
Field:
profile_versionprofile_version_arns- The signing profile ARN, including the profile version.
Field:
profile_version_arnsigning_materials- The ACM certificate that is available for use by a signing profile.
Field:
signing_materialsignature_validity_periods- The validity period for a signing job created using this signing profile.
Field:
signature_validity_periodplatform_ids- The ID of the platform that is used by the target signing profile.
Field:
platform_idplatform_display_names- A human-readable name for the signing platform associated with the signing profile.
Field:
platform_display_namesigning_parameters- A map of key-value pairs for signing operations that is attached to the target signing profile.
Field:
signing_parametersstatuses- The status of the target signing profile.
Field:
statusstatus_reasons- Reason for the status of the target signing profile.
Field:
status_reasonarns- The Amazon Resource Name (ARN) for the signing profile.
Field:
arn- A list of tags associated with the signing profile.
Field:
tags
Examples
Ensure a profile name is available:
describe aws_signer_signing_profiles do
its('profile_names') { should include 'PROFILE_NAME' }
end
Ensure a profile version is available:
describe aws_signer_signing_profiles do
its('profile_versions') { should include 'PROFILE_VERSION' }
end
Ensure a status is Active:
describe aws_signer_signing_profiles do
its('statuses') { should include 'Active' }
end
Matchers
For a full list of available matchers, see our Universal Matchers page.The controls will pass if the list method returns at least one result.
exist
Use should to test that the entity exists.
describe aws_signer_signing_profiles do
it { should exist }
end
Use should_not to test the entity does not exist.
describe aws_signer_signing_profiles do
it { should_not exist }
end
AWS Permissions
Your AWS principal will need the Signer:Client:ListSigningProfilesResponse action with Effect set to Allow.