Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional access logs #167

Merged
merged 13 commits into from
Jun 13, 2023
Merged

Conditional access logs #167

merged 13 commits into from
Jun 13, 2023

Conversation

wullub
Copy link
Contributor

@wullub wullub commented Jun 13, 2023

From @wullub via Slack

It's useful on initial setup because making changes to the s3 bucket after creation (if you change the name of the load balancer etc) needs intervention from mod platform team
I'm setting up a public network load balancer.
I'm getting permission errors when trying to get access logs to the s3 - haven't got to the bottom of why
The only protocol for an NLB to give access logs is TLS, so if the NLB had a different protocol you won't have access logs

@wullub wullub requested a review from a team as a code owner June 13, 2023 13:16
@wullub wullub changed the title No access logs Conditional access logs Jun 13, 2023
@github-actions
Copy link
Contributor

TFSEC Scan Success

Show Output
*****************************

TFSEC will check the following folders:
.

*****************************

Running TFSEC in .
Excluding the following checks: AWS089, AWS099, AWS009, AWS097, AWS018
  timings
  ──────────────────────────────────────────
  disk i/o             417.701µs
  parsing              797.791777ms
  adaptation           713.001µs
  checks               21.69324ms
  total                820.615719ms

  counts
  ──────────────────────────────────────────
  modules downloaded   1
  modules processed    2
  blocks processed     73
  files read           8

  results
  ──────────────────────────────────────────
  passed               12
  ignored              5
  critical             0
  high                 0
  medium               0
  low                  0


No problems detected!

tfsec_exitcode=0

Checkov Scan Failed

Show Output
*****************************

Checkov will check the following folders:
.

*****************************

Running Checkov in .
Excluding the following checks: CKV_GIT_1
2023-06-13 13:20:27,917 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket?ref=v6.4.0:None (for external modules, the --download-external-modules flag is required)
terraform scan results:

Passed checks: 28, Failed checks: 0, Skipped checks: 2

github_actions scan results:

Passed checks: 175, Failed checks: 1, Skipped checks: 0

Check: CKV2_GHA_1: "Ensure top-level permissions are not set to write-all"
	FAILED for resource: on(Generate Terraform README docs)
	File: /.github/workflows/documentation.yml:0-1

checkov_exitcode=1

CTFLint Scan Success

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing `terraform` plugin...
Installed `terraform` (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.2.1)
tflint will check the following folders:
.

*****************************

Running tflint in .
WARNING: "tflint FILE/DIR" is deprecated and will error in a future version. Use --chdir or --filter instead.
tflint_exitcode=0

@wullub wullub merged commit 07ddf7f into main Jun 13, 2023
@wullub wullub deleted the no-access-logs branch June 13, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants