News for hackers. Stuff that matters.
Re:Learnings from 5 years of tech startup code audits by yardstick on Thursday May 26, 2022 @02:38AM (#31515374)
Probably because:

1) It's easy to miss a repo, if you don't have a list of them all somewhere.

2) It's easy to get out of sync with what version of your software corresponds to what branch/tag in each repo.

Re:Learnings from 5 years of tech startup code audits by yourapostasy on Thursday May 26, 2022 @02:51AM (#31515447)
> 2) It's easy to get out of sync with what version of software corresponds to what branch/tag in each repo.

I'd like to hear how others solve this. The way I've addressed this is I bake into the build pipeline some way to dump to a text file all the version control metadata I could ever want to re-build the software from scratch. Then this text file is further embedded into the software primary executable itself, in some platform-compatible manner. Then I make sure the support team has the tooling to identify it in a trivial manner, whether a token-auth curl call to retrieve it over a REST API, or what have you. This goes well beyond the version number the users see, and supports detailed per-client patching information for temporary client-specific branches until they can be merged back into main without exposing those hairy details into the version number.

While this works for me and no support teams have come to me yet with problems using this approach, it strikes me as inelegant and I'm for some reason dissatisfied with "it ain't broke so don't fix it".

Re:Learnings from 5 years of tech startup code audits by yardstick on Thursday May 26, 2022 @04:45AM (#31516107)
In our case we abandoned individual repos and went back to a monorepo to solve this issue. In theory the separation of code was nice, but in practice it was a real pain when a service added new APIs you wanted to update another service to use it.

All of our services do also print out in their startup logs what version they are based on git branch name and commit. Monorepo or not this was useful.

Re:Learnings from 5 years of tech startup code audits by treis on Thursday May 26, 2022 @11:59AM (#31519954)
We have a releases repo that takes in the git version SHA for each application and handles deploys. It's... ok I guess. Just another example of complexity to meet the growing complexity of the system.
Re:Learnings from 5 years of tech startup code audits by marcosdumay on Thursday May 26, 2022 @10:51AM (#31519044)
> 2) It's easy to get out of sync with what version of your software corresponds to what branch/tag in each repo.

That's what the `[dependencies] my-lib = "1.0"` was supposed to solve.

Re:Learnings from 5 years of tech startup code audits by ge96 on Thursday May 26, 2022 @05:47AM (#31516441)
The thing I'm working on has 5 main repos that all run (yarn start) for the app to be fully functional.

I need to put that down somewhere the order/matching branches.

Re:Learnings from 5 years of tech startup code audits by cerved on Thursday May 26, 2022 @04:25AM (#31516000)

  find / -type d -name .git
Re:Learnings from 5 years of tech startup code audits by yardstick on Thursday May 26, 2022 @04:40AM (#31516076)
As an auditor you don't have anything checked out locally yet, so no .git will exist. If you ask an individual developer or randomly picked developers, they will only have their specific repos checked out. If you look at the server hosting the repos then yes you may get them all. Assuming they are all on one server...