TA-002-P · Question #193
The Security Operations team of ABC Enterprise wants to mandate that all the Terraform configuration that creates an S3 bucket must have encryption feature enabled. What is the best way to achieve it?
The correct answer is A. Use Sentinel Policies.. Sentinel is an embedded policy-as-code framework integrated with the HashiCorp Enterprise products. It enables fine-grained, logic-based policy decisions, and can be extended to use information from external sources. Using Sentinel with Terraform Cloud involves: Defining the poli
Question
The Security Operations team of ABC Enterprise wants to mandate that all the Terraform configuration that creates an S3 bucket must have encryption feature enabled. What is the best way to achieve it?
Options
- AUse Sentinel Policies.
- BUse S3 bucket policy.
- CCreate a script that checks the encryption parameter is enabled on every git commit.
- DShared a SOP to engineers to mandate encryption feature on S3.
How the community answered
(26 responses)- A73% (19)
- B4% (1)
- C8% (2)
- D15% (4)
Explanation
Sentinel is an embedded policy-as-code framework integrated with the HashiCorp Enterprise products. It enables fine-grained, logic-based policy decisions, and can be extended to use information from external sources. Using Sentinel with Terraform Cloud involves: * Defining the policies -Policies are defined using the policy language with imports for parsing the Terraform plan, state and configuration. * Managing policies for organizations -Users with permission to manage policies can add policies to their organization by configuring VCS integration or uploading policy sets through the API. They also define which workspaces the policy sets are checked against during runs. (More about * Enforcing policy checks on runs -Policies are checked when a run is performed, after the terraform plan but before it can be confirmed or the terraform apply is executed. * Mocking Sentinel Terraform data -Terraform Cloud provides the ability to generate mock data for any run within a workspace. This data can be used with the Sentinel CLI to test policies before
Topics
Community Discussion
No community discussion yet for this question.