Skip to content

fix(query): fix fn for s3_bucket_without_restriction_of_public_bucket#7506

Merged
cx-romeu-silva merged 7 commits into
masterfrom
AST-98817
Jul 16, 2025
Merged

fix(query): fix fn for s3_bucket_without_restriction_of_public_bucket#7506
cx-romeu-silva merged 7 commits into
masterfrom
AST-98817

Conversation

@cx-romeu-silva

Copy link
Copy Markdown
Contributor

Reason for Proposed Changes

Proposed Changes

  • Taking a similar approach to fix(query): fix fn for S3_Bucket_Allows_Public_Policy query #7456, the rule (S3 Bucket Without Restriction of Public Bucket) flags a result if and only if:
    • aws_s3_account_public_access_block is defined, but does not explicitly set restrict_public_buckets = true, and
    • aws_s3_bucket_public_access_block explicitly sets restrict_public_buckets = false.

I submit this contribution under the Apache-2.0 license.

@cx-romeu-silva cx-romeu-silva requested a review from a team as a code owner June 25, 2025 10:09
@github-actions github-actions Bot added community Community contribution query New query feature terraform Terraform query aws PR related with AWS Cloud labels Jun 25, 2025
@cx-romeu-silva cx-romeu-silva removed aws PR related with AWS Cloud community Community contribution labels Jun 25, 2025
@github-actions

github-actions Bot commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.11

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 0
LOW LOW 0
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 0
Metric Values
Files scanned placeholder 1
Files parsed placeholder 1
Files failed to scan placeholder 0
Total executed queries placeholder 47
Queries failed to execute placeholder 0
Execution time placeholder 0

@cx-romeu-silva cx-romeu-silva added the aws PR related with AWS Cloud label Jun 25, 2025
@cx-romeu-silva cx-romeu-silva self-assigned this Jun 25, 2025
@github-actions github-actions Bot added the community Community contribution label Jun 25, 2025
@gitguardian

gitguardian Bot commented Jul 8, 2025

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
4266028 Triggered Generic Password aca4126 assets/queries/terraform/azure/mssql_server_auditing_disabled/test/positive2.tf View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@cx-artur-ribeiro cx-artur-ribeiro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice work Romeu

@cx-eduardo-semanas cx-eduardo-semanas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cx-romeu-silva cx-romeu-silva merged commit 477a5d7 into master Jul 16, 2025
31 of 34 checks passed
@cx-romeu-silva cx-romeu-silva deleted the AST-98817 branch July 16, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aws PR related with AWS Cloud community Community contribution query New query feature terraform Terraform query

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants