GSA-TTS / tts-tech-operations

TTS Technology Operations
https://handbook.tts.gsa.gov/tech-operations/
Other
6 stars 0 forks source link

GSA .allstar #1801

Closed JJediny closed 2 days ago

JJediny commented 3 weeks ago

Background

optIn/optOut/optWhatever logic is nearly incomprehensible garbage in AllStar.

GSA-TTS switched to optOut and control which repos are processed solely through permissions on the AllStar bot

{"severity":"INFO","org":"GSA","repo":"accessibility-for-teams","area":"Branch Protection","time":"2024-10-22T15:13:48Z","message":"Policy run skipped as repo is not enabled and doNothingOnOptOut is configured."}

Debugging Steps

And now I say cause the first point (optOutStrategy: true ) should result in the repo being opted in, and DO_NOTHING_ON_OPT_OUT should not matter, but it seems to.

Digging through the code, if you want to use optIn lists they need to be maintained for EACH YAML FILE. So you need to have a list not only in allstar.yaml but also branch_protection.yaml , etc.

Confusing and toilsome policy logic is a major security risk, IMHO. That is why for GSA-TTS we just turn it all to optOutStrategy: true and gate which repos are processed through the permissions on the bot.

### Repos causing timeout on BinaryArtifacts Scan
- [ ] GSA/assets.FCSM
- [ ] GSA/InterimPerformance-Dot-Gov-2018
- [ ] GSA/centers-of-excellence
- [ ] USSM

Old Configuration

JJediny commented 2 days ago

Fixed 🎉