jenkins-infra / helpdesk

Open your Infrastructure related issues here for the Jenkins project
https://github.com/jenkins-infra/helpdesk/issues/new/choose
17 stars 10 forks source link

Self-hosted shield.io instance #3044

Closed lemeurherve closed 2 years ago

lemeurherve commented 2 years ago

Related to "Consider removing embeddable-build-status plugin" and since ci.jenkins.io is blocking access to ../api/json path for security reason, I'm proposing to self-host a shield.io instance instead of putting in place a token to authorize shield.io access to these urls.

The token solution would need a patch on shield.io server codebase to add this token for ci.jenkins.io requests, but since there aren't that much uses I don't think it worth it for them.

The self-hosted instance wouldn't need a token as we could whitelist it on ci.jenkins.io

WDYT?

dduportal commented 2 years ago

Excellent idea!

Proposal: if we host the "shields.jenkins.io" (I'll refer to it with this name for clarity but it can be chaneged of course!) service on the same VM as ci.jenkins.io, we would not even need any token:

I guess we have to evaluate the requirements for this services:

lemeurherve commented 2 years ago

Additional doc on self-hosting shield.io: https://github.com/badges/shields/blob/master/doc/releases.md#shields-server

lemeurherve commented 2 years ago

As I didn't managed to join shield.io discord server, I've opened a discussion to ask about requirements.

lemeurherve commented 2 years ago

As @MarkEWaite and @darinpope adopted the plugin, it doesn't have to be removed from ci.jenkins.io. No need for a self-hosted shield.io instance, closing this issue.