#989118 please try https first

Package:
apt-cacher-ng
Source:
apt-cacher-ng
Description:
caching proxy server for software repositories
Submitter:
Harald Dunkel
Date:
2021-06-01 09:57:02 UTC
Severity:
wishlist
#989118#5
Date:
2021-05-26 08:10:16 UTC
From:
To:
Sorry to say, but configuring https for apt-cacher-ng is APITA. Would it be
possible for ACNG to silently try https first, if the client asked for http?
That would be similar to an explicit http://HTTPS///get.docker.com/ubuntu,
except for the client doesn't have to know.


Regards
Harri

#989118#10
Date:
2021-05-31 13:47:30 UTC
From:
To:
Hallo,
* Harald Dunkel [Wed, May 26 2021, 10:10:16AM]:

Here you can play with it:

https://salsa.debian.org/blade/apt-cacher-ng/-/tree/feature/debian/bts-989118_Optimistic-TLS-probing

But I am not convinced, it has issues:

a) additional network traffic
b) most mirrors have some kind of broken or missing TLS configuration
like snake-oil cets or generic host cert not matching the mirror hostname and
apparently no SNI active. This can be "mitigated" by partly disabling
the host validation but it makes it insecure.
c) some mirrors actually offering different folder configuration on TLS
port, therefore delivering 404 or maybe even wrong contents.

The last problem is hard to detect and to work around in reliable
fashion. So basically I'd prefer not to include this feature for now.

Best regards,
Eduard.

#989118#15
Date:
2021-05-31 13:47:30 UTC
From:
To:
Hallo,
* Harald Dunkel [Wed, May 26 2021, 10:10:16AM]:

Here you can play with it:

https://salsa.debian.org/blade/apt-cacher-ng/-/tree/feature/debian/bts-989118_Optimistic-TLS-probing

But I am not convinced, it has issues:

a) additional network traffic
b) most mirrors have some kind of broken or missing TLS configuration
like snake-oil cets or generic host cert not matching the mirror hostname and
apparently no SNI active. This can be "mitigated" by partly disabling
the host validation but it makes it insecure.
c) some mirrors actually offering different folder configuration on TLS
port, therefore delivering 404 or maybe even wrong contents.

The last problem is hard to detect and to work around in reliable
fashion. So basically I'd prefer not to include this feature for now.

Best regards,
Eduard.

#989118#20
Date:
2021-06-01 09:46:22 UTC
From:
To:
Hi Eduard,

I have to admit I haven't thought about broken ssl configurations
and diverging folder configurations for https. Its fine to reject
this feature request.


Thank you very much, anyway.
Harri

#989118#25
Date:
2021-06-01 09:46:22 UTC
From:
To:
Hi Eduard,

I have to admit I haven't thought about broken ssl configurations
and diverging folder configurations for https. Its fine to reject
this feature request.


Thank you very much, anyway.
Harri