[PATCH] pgarchives: Always load auth, even when using PUBLIC_ARCHIVES=True - Mailing list pgsql-www

From Célestin Matte
Subject [PATCH] pgarchives: Always load auth, even when using PUBLIC_ARCHIVES=True
Date
Msg-id bb55b32a-c744-d770-fb7e-4df090175a17@cmatte.me
Whole thread Raw
Responses Re: [PATCH] pgarchives: Always load auth, even when using PUBLIC_ARCHIVES=True
List pgsql-www
There's an issue in pgarchives with auth when using PUBLIC_ARCHIVES=True.
Even in public archives mode, auth is necessary as an antispam feature for downloading mbox, raw messages etc.
However, in public archives mode, auth is not loaded, except when setting ALLOW_RESEND=True. But that variable has a
differentpurpose and the semantics is unclear.
 
Several solutions exist:
- adding a variable in settings to allow auth for these purposes
- always loading auth. This is the solution I used in attached patch.
-- 
Célestin Matte
Attachment

pgsql-www by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: git.postgresql.org stuck?
Next
From: Célestin Matte
Date:
Subject: Re: [PATCH] pgarchives: pglister_sync: import lists with subscriber_access set to True