~sircmpwn/sr.ht-discuss

5 4

Should private repositores show 404 instead of 401?

Sol Fisher Romanoff <sol@solfisher.com>
Details
Message ID
<CBGBVUW6MQ8N.31XRADRMGIOUV@bellwether>
DKIM signature
missing
Download raw message
The way I think about it, private repositories shouldn't only be inaccessible,
but also invisible to unauthorized users.

Currently, trying to access a private repository on sourcehut returns 401, which
is sensible, I guess, but I can infer that there is a private repository there.
Compare that with GitHub's approach, which simply shows a 404 -- as if the
repository doesn't even exist.

Even though it's technically incorrect to return 404 for a private repository, I
think it makes sense for private repositories to be wholly invisible.
Sol Fisher Romanoff <sol@solfisher.com>
Details
Message ID
<CBGC00JRSLWJ.DP00STWONX3G@bellwether>
In-Reply-To
<CBGBVUW6MQ8N.31XRADRMGIOUV@bellwether> (view parent)
DKIM signature
missing
Download raw message
Disregard this thread -- just found a previous discussion that indicates this is
a conscious decision.
Details
Message ID
<20210518203551.tnsbe6hmugxn64sr@iyo>
In-Reply-To
<CBGC00JRSLWJ.DP00STWONX3G@bellwether> (view parent)
DKIM signature
missing
Download raw message
Do you have a link to that previous discussion?
Details
Message ID
<eb96a11f-2b7c-093d-1afa-212c195b4605@smlavine.com>
In-Reply-To
<20210518203551.tnsbe6hmugxn64sr@iyo> (view parent)
DKIM signature
missing
Download raw message
On 5/18/21 4:35 PM, dvn wrote:
> Do you have a link to that previous discussion?
> 

It has been discussed at least twice before[0][1].

I think both options have legitimate reasons for being used. I see that 
on the previous threads, Drew mentioned that private repos 404-ing 
wouldn't make a difference, because they could still be detected with 
"timing attacks". I do not know what these are, and would appreciate it 
if someone were to explain them for me.

[0]: 
https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C20190407161316.mb644ldmmqtis6br%40kazhap.dbalan.in%3E

[1]: 
https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3CCABR6s9uXAdzJRnHqV%2BCmQVUhgOWNyP2gXwCozaeY%3DDpTDLk9tw%40mail.gmail.com%3E

-- 
Sebastian LaVine | https://smlavine.com
Details
Message ID
<YKQ1bdhb+MkkPL48@gpanders.com>
In-Reply-To
<eb96a11f-2b7c-093d-1afa-212c195b4605@smlavine.com> (view parent)
DKIM signature
missing
Download raw message
On Tue, 18 May 2021 16:50 -0400, Sebastian LaVine wrote:
>I do not know what these are, and would appreciate it if someone were 
>to explain them for me.

You can measure the time difference between a page that *actually* 
doesn't exist and a page that does exist but the server returns a 404 
for.

Wikipedia has a good page on this [1].

[1]: https://en.wikipedia.org/wiki/Timing_attack
Details
Message ID
<YKQ1o3x/9OUFd7yI@gpanders.com>
In-Reply-To
<YKQ1bdhb+MkkPL48@gpanders.com> (view parent)
DKIM signature
missing
Download raw message
On Tue, 18 May 2021 15:45 -0600, Gregory Anders wrote:
>You can measure the time difference

To clarify, you can measure the difference in response time.
Reply to thread Export thread (mbox)