> On 11/10/21 16:54, Andrey Borodin wrote: > >> Compression is crucial for highly available setups. Replication traffic is >> often billed. Or route has bandwidth limits. >> An entropy added by WAL headers makes CRIME attack against replication >> encryption impractical. > > I very much doubt WAL headers are a reliable protection against CRIME, > because the entropy of the headers is likely fairly constant. So if you > compress the WAL stream, the WAL headers may change but the compression > ratio should be pretty similar. At least that's my guess. I've thought more about it and I agree. To reliably protect against CRIME entropy of WAL headers must be comparable with the entropy of possibly injected data. If this would stand, probably, our WAL would need a really serious rework. Maybe just refuse to enable compression on SSL connection? If someone really needs both - they will just patch a server on their own. Or make a GUC "yes_i_kwow_what_crime_is_give_grant_read_on_my_data_to_spies". Best regards, Andrey Borodin.
- Commitfest 2021-11 Patch Triage - Part 2 Daniel Gustafsson
- Re: Commitfest 2021-11 Patch Triage - Part 2 Tom Lane
- Re: Commitfest 2021-11 Patch Triage - Part 2 Stephen Frost
- Re: Commitfest 2021-11 Patch Triage - Par... Bruce Momjian
- Re: Commitfest 2021-11 Patch Triage -... Tomas Vondra
- Re: Commitfest 2021-11 Patch Triage - Par... Daniel Gustafsson
- RE: Commitfest 2021-11 Patch Triage - Part 2 Floris Van Nee
- Re: Commitfest 2021-11 Patch Triage - Part 2 Andrey Borodin
- Re: Commitfest 2021-11 Patch Triage - Par... Tomas Vondra
- Re: Commitfest 2021-11 Patch Triage -... Andrey Borodin
- Re: Commitfest 2021-11 Patch Tri... Stephen Frost
- Re: Commitfest 2021-11 Patch... Tom Lane
- Re: Commitfest 2021-11 Patch Triage - Part 2 Nikolay Samokhvalov
- Re: Commitfest 2021-11 Patch Triage - Part 2 Pavel Stehule
- Re: Commitfest 2021-11 Patch Triage - Part 2 Andrew Dunstan
- Re: Commitfest 2021-11 Patch Triage - Part 2 Michael Paquier
- Re: Commitfest 2021-11 Patch Triage - Part 2 Robert Haas
- Re: Commitfest 2021-11 Patch Triage - Part 2 Daniel Gustafsson
- Re: Commitfest 2021-11 Patch Triage - Par... Stephen Frost
- Re: Commitfest 2021-11 Patch Triage -... Robert Haas