logoalt Hacker News

darthwalsh • yesterday at 8:32 AM • 1 reply • view on HN

I like HiJon89's answer, but I've also seen

``` def deployProd = branch_name() == "main" ```

and it's trivial for any commit to change that to `= True`

These systems are often designed where CI and CD have access to the same creds, and anybody "on the team who can push a branch" is trusted to not intentionally break things.


Replies

aavci • yesterday at 1:17 PM

I would assume anyone on the team would have strong safety guards and their computers would be controlled by 1password IT. Similarly, 1password probably needs sso to access their repos in github instead of overly permissive tokens.

What would you assume is a plausible way “anyone on the team” would have been compromised?