PrivateBin / Directory

Rust based directory application to collect list of federated instances
https://privatebin.info/directory/
Other
25 stars 8 forks source link

Support more than one recommended CSP (Content Security Policy) #89

Closed elrido closed 5 months ago

elrido commented 5 months ago

With the introduction of the bootstrap5 template in PrivateBin 1.7.2, the CSP has to be relaxed a little, to display the SVG images in the buttons. This leads to the situation, that in 1.7.2 & 1.7.3, some instances get listed with non-recommended CSP (and ranked lower), if they use the (non-default, at this time) bootstrap5 template and relaxed CSP settings.

Long term, when bootstrap5 becomes the default template, we will want to change the recommended CSP. So it will in any case make sense to support at least version-dependent CSPs.

Optionally, for the versions that do include both bootstrap5 and at least one other template, it could make sense to either tolerate multiple CSP recommendations, or ideally only tolerate the relaxed CSP if the bootstrap5 template is used. Similarly, we did always suggest, that when using the bootstrap template, the allow-popups policy can be omitted. It seems unlikely anyone ever did that, since most instances pass the current CSP check and use that template.

Here is a complete list of versions and CSPs recommended for them:

elrido commented 5 months ago

resolved in 4cf545a / release 0.11.0