Skip to content

Resolved static code analysis issues found by tfsec#10

Merged
ronaldo-macapobre merged 75 commits intomasterfrom
feature-infraEnchancements
Aug 29, 2024
Merged

Resolved static code analysis issues found by tfsec#10
ronaldo-macapobre merged 75 commits intomasterfrom
feature-infraEnchancements

Conversation

@ronaldo-macapobre
Copy link
Contributor

@ronaldo-macapobre ronaldo-macapobre commented Aug 27, 2024

Pull Request for JIRA Ticket: JASPER-93

Issue ticket number and link

https://jag.gov.bc.ca/jira/browse/JASPER-93

Description

  • Changes are based from tfsec's recommendation to resolve static code analysis errors.

  • @amlanc1 and I agreed to commented out the test s3 related changes for the meantime to avoid tfsec to scan it. It will be retained for future reference.

  • There are still 5 critical errors that remains in tfsec which I think will be resolved once the Network Architecture has been finalized

    1. Listener for application load balancer does not use HTTPS.
    2. Security group rule allows ingress from public internet.
    3. CRITICAL Security group rule allows ingress from public internet.
    4. CRITICAL Security group rule allows egress to multiple public internet addresses.
    5. CRITICAL Security group rule allows egress to multiple public internet addresses.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Trigger the Build and Deploy Infra workflows targeting feature branch.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

- Rename deploy to build when build-infra wf is running
@ronaldo-macapobre ronaldo-macapobre self-assigned this Aug 27, 2024
@ronaldo-macapobre ronaldo-macapobre changed the title Feature infra enchancements Resolved static code analysis issues found by tfsec Aug 27, 2024
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

One recommendation.

Co-authored-by: Wade Barnes <wade@neoterictech.ca>
@sonarqubecloud
Copy link

Copy link
Contributor

@amlanc1 amlanc1 left a comment

Choose a reason for hiding this comment

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

lgtm

@ronaldo-macapobre ronaldo-macapobre merged commit 7fbb9d4 into master Aug 29, 2024
@ronaldo-macapobre ronaldo-macapobre deleted the feature-infraEnchancements branch October 11, 2024 15:14
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.

3 participants