Skip to content

Security tasks needed before moving the repo to public #165

Closed

Description

@mdtro

Security was requested to review this repo in order to eventually move it to public. 🙂 We should be able to complete most of the below with our level of access, but it might be necessary to grant the GitHub security team additional access to the repo.

https://getsentry.atlassian.net/browse/INFO-1

  • add suitable license feat: Add a proper LICENSE to the repo #94
  • verify dependabot configuration basic dependabot configuration #167
  • if applicable, configure CodeQL for weekly and on PR scanning (requires repo to be public) basic codeql configuration #180
  • enable secret scanning (requires repo to be public)
  • review for any leaked secrets using gitleaks/trufflehog
  • review repo settings and environment variables
    • do all secrets exist under "Secrets"?
  • review any GitHub Actions
    • ensure no accidental printing of a secret value
    • ensure there is no basic encoding of a secret value that is printed
  • review configured webhooks
    • are all URLs expected destinations?
    • are they documented somewhere, either in Notion or the repo, and their purpose understood?
    • do they use sufficiently strong secrets for signing?
  • does the main branch have a protection rule in place requiring an approved PR to merge?
  • review collaborators on the repo
    • are access levels properly scoped (e.g. least privilege)?
    • are all collaborators Sentry employees?

Activity

  1. mdtro commented on Feb 22, 2023

    @mdtro
    ContributorAuthor

    Secret scan looks good.

    > gitleaks detect --source . -v
    
        ○
        │╲
        │ ○
        ○ ░
        ░    gitleaks
    
    9:29AM INF 388 commits scanned.
    9:29AM INF scan completed in 22.9s
    9:29AM INF no leaks found
    
  2. jeffrey-sentry commented on Feb 22, 2023

    @jeffrey-sentry

    Review notes:

    • All secrets exist under "Secrets
    • No webhook is configured
    • Branch Protection in place with Require Approvals enabled. @mdtro do we want to restrict who can dismiss pull request reviews?
    • Access Review: cleptric and dev-infra are removed since Read access is granted to the Engineering team already.
  3. mdtro commented on Feb 23, 2023

    @mdtro
    ContributorAuthor

    @phacops We're good to move the repo public when ready. We can handle the CodeQL and secret scanning configurations once it is public.

  4. phacops commented on Feb 24, 2023

    @phacops
    Contributor

    OK, we'll make it public Monday then. I'll ping you before we flip the switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions