Skip to content

Commit

Permalink
added remediation guide for gcp buclet logging (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
alphadev4 authored May 28, 2024
1 parent 28dc10c commit c5f836c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion en/google/storage/bucket-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
| **Recommended Action** | Bucket Logging can only be enabled by using the Command Line Interface and the log bucket must already be created. Use this command to enable Logging: gsutil logging set on -b gs://[LOG_BUCKET_NAME] -o AccessLog gs://[BUCKET_NAME] |

## Detailed Remediation Steps

1. Log into the Google Cloud Platform Console.
2. Scroll down the left navigation panel and choose "Cloud Storage" to select the "Buckets" option. </br> <img src="/cloud-security-remediation-guides/resources/google/storage/bucket-logging/step2.png">
3. On the "Buckets" page, create the log bucket if you dont have one.</br> <img src="/cloud-security-remediation-guides/resources/google/storage/bucket-logging/step3.png"/>
4. Click on the 'cloud shell' icon on the top left of navigation bar ,as bucket logging can only be enabled by using the Command Line Interface.</br> <img src="/cloud-security-remediation-guides/resources/google/storage/bucket-logging/step4.png>
5. Enter the command gsutil logging set on -b gs://[LOG_BUCKET_NAME] -o AccessLog gs://[BUCKET_NAME] </br> <img src="/cloud-security-remediation-guides/resources/google/storage/bucket-logging/step5.png>
7. Repeat steps number 4-5 to enable logging to all other buckets in the project.

Binary file modified resources/google/storage/bucket-logging/step2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/google/storage/bucket-logging/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/google/storage/bucket-logging/step4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/google/storage/bucket-logging/step5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5f836c

Please sign in to comment.