You are not logged in.

#1 2022-04-26 08:47:48

mindless_canary
Member
Registered: 2022-04-26
Posts: 2

[solved] Protecting a private repository

Hi there,

I have a private repository with a few packages, created by myself and from some AUR packages. Some of those packages contain stuff that I'm not allowed to redistribute (e.g. microsoft fonts and so on). I always want to be able to access this repo, but I'd like to have some kind of authentication in front of it. Obviously pacman doesn't support that. I can't solve this with firewall rules (or ACL in nginx/apache) cause I have a dynamic IP-address. I also don't want to rely on a VPN if possible (maybe in future I need packages from this repo, before I can set up the VPN).

Is there an elegant way to solve this problem?

Thank you in advance!

PS: I don't know if this is the right place for this, but I hope so. wink

Last edited by mindless_canary (2022-04-26 09:45:54)

Offline

#2 2022-04-26 09:37:21

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,988
Website

Re: [solved] Protecting a private repository

This is, why I have two repos. One public and one private.
I use plain HTTP authentication to protect the latter for the same legal reasons.
You can configure this in your pacman.conf like so:

[rne-prop]
Server = https://user:password@srv.richard-neumann.de/prop/repo

macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#3 2022-04-26 09:44:36

mindless_canary
Member
Registered: 2022-04-26
Posts: 2

Re: [solved] Protecting a private repository

Thank you for your quick answer!

That's exactly what I was looking for smile

Offline

Board footer

Powered by FluxBB