Badges on private projects

(Michael Brown) #1

Is this feature scheduled for work sometime soon? It seems like an excruciatingly simple task with a big payoff.

(G Ann Campbell) #2


It’s not.

I know on the face of it, this does seem simple, but to show a badge, we have to expose a measure. On a project where “Anyone” isn’t allowed to see measures. So… the fun part is exposing only the measure you want to show up in your badge, without exposing all measures, and at the same time not requiring you to pass an auth token in your badge request. Why not just use an auth token? Because currently auth-tokens have all privileges of their source-users, so we really don’t want to put them out there in the wild.

Hope this makes sense.


(Michael Brown) #3

It seems to me that by pre-building badges and caching them after analysis is complete would be pretty straightforward without needing to expose anything other than the badges you’ve asked to generate. I’m obviously not familiar with the architecture of sonarcloud, but you guys are the only ones not doing it out of all the packages I’ve tried.