Skip to content

Does ostree support remote repo or ref access control? #3373

Answered by cgwalters
zhaohuiw42 asked this question in Q&A
Discussion options

You must be logged in to vote

OSTree just fetches content over HTTP; the client is not "smart". You can e.g. set up a webserver which requires a cookie or certificates to access say refs/heads/<branchname> - however, note that because ostree also strongly encourages deduplication via its object-based model, if a client happens to know the sha digest of a commit pointed to by a ref, it can still be fetched unless you gate access to the commits as well, which can be harder to do.

(And if a client knows out of band the commit object it may also know the digest for its content, which pushes the problem to gating on dirtree objects etc)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cgwalters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3369 on January 20, 2025 20:14.