Skip to content

[18.0][FIX] dbs value has to be kept in case of special proxy config - #3694

Closed
ivilata wants to merge 1 commit into
OCA:18.0from
ivilata:18.0-fix-dbfilter_from_header
Closed

[18.0][FIX] dbs value has to be kept in case of special proxy config#3694
ivilata wants to merge 1 commit into
OCA:18.0from
ivilata:18.0-fix-dbfilter_from_header

Conversation

@ivilata

@ivilata ivilata commented Aug 6, 2026

Copy link
Copy Markdown

Ported from #2828 using oca-port.

@OCA-git-bot OCA-git-bot added series:18.0 mod:dbfilter_from_header Module dbfilter_from_header labels Aug 6, 2026
@ivilata

ivilata commented Aug 6, 2026

Copy link
Copy Markdown
Author

@thomaspaulb @hbrunn, you may want to review/approve this direct port from @cvinh's #2828, as you did for 16.0. Thanks!

@hbrunn hbrunn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reexamining this, it's actually quite a radical change that in any case makes

Please keep in mind that the standard odoo dbfilter configuration is still applied before looking at the regular expression in the header.

from the readme false. So please update that too. And stress that it's super relevant to set the header everywhere.

Without this patch, you can set dbfilter = ^db1|db2|db3$ and be sure this Odoo instance will only ever be able to access those three dbs. With the patch, whenever one has access to the unproxied instance or one that doesn't set the header, you can pass whatever other database that's accessible to the database user, which might be an issue for some deployments.

So actually, I'm not sure any more I agree with this patch.

@ivilata

ivilata commented Aug 7, 2026

Copy link
Copy Markdown
Author

Thanks @hbrunn for the heads up and sorry for the noise, I failed to check if there was an existing PR for this. Since #3475 is already from the original author, I'll retract this PR to avoid dispersing the discussions as well. I'll copy your comment there so that people don't need to jump too much among PRs. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:dbfilter_from_header Module dbfilter_from_header series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants