repman icon indicating copy to clipboard operation
repman copied to clipboard

Proxy through organisation (proxy with auth tokens)

Open giggsey opened this issue 4 years ago • 4 comments

Would it be possible to proxy to Packagist through an organisation? At the moment, it seems that is only possible through the main domain.

The organisation instructions say to add the organisation repo, but then you need to go to the proxy instructions to add a different repository for the main proxy repo.

Our use case is to keep all traffic for composer packages going through a central location.

Could be as simple as adding the proxy instructions onto the organisation view, so it says:

{
    "repositories": [
        {"type": "composer", "url": "https://giggsey-test.repo.repman.io"},
        {"type": "composer", "url": "https://repo.repman.io"},
        {"packagist": false}
    ]
}

giggsey avatar May 23 '20 10:05 giggsey

Assuming you will use an organization token, this would be an option. You could then let all traffic go through the organization's subdomain.

akondas avatar May 25 '20 04:05 akondas

Authenticated is absolutely fine for my use case.

giggsey avatar May 25 '20 08:05 giggsey

Doing this would require undoing some of the Composer v2 performance improvements done in #310.

giggsey avatar Oct 22 '20 11:10 giggsey

Nobody said it would be easy :wink: . But we leave it in the backlog. Maybe there will be someone brave with enough time :crossed_swords:

akondas avatar Oct 22 '20 11:10 akondas