Add rls-safe-mode module: Hibernate 8.0.0.CR2 HQL safe mode and PostgreSQL row-level security for @TenantId
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
54c6d606ff
commit
1c9d9423c0
@@ -0,0 +1,22 @@
|
||||
hibernate.query.safe_mode_enabled=false
|
||||
upper() built in ok: [ALICE, BOB]
|
||||
initcap() contributed ok: [Alice, Bob]
|
||||
quote_ident() unregistered ok: [alice, bob]
|
||||
current_setting() unregistered ok: tenantA
|
||||
set_config() unregistered ok: tenantB
|
||||
sql('...') raw SQL ok: [alice, bob]
|
||||
criteria function() ok: tenantA
|
||||
criteria sql() ok: [alice, bob]
|
||||
translate() built in on PostgreSQL ok: [xlice, bob]
|
||||
|
||||
hibernate.query.safe_mode_enabled=true
|
||||
upper() built in ok: [ALICE, BOB]
|
||||
initcap() contributed ok: [Alice, Bob]
|
||||
quote_ident() unregistered rejected: SemanticException: Function [quote_ident] is not allowed in safe mode [select quote_ident(i.customer) from Invoice i order by i.id]
|
||||
current_setting() unregistered rejected: SemanticException: Function [current_setting] is not allowed in safe mode [select current_setting('hibernate.tenant_id')]
|
||||
set_config() unregistered rejected: SemanticException: Function [set_config] is not allowed in safe mode [select set_config('hibernate.tenant_id', 'tenantB', true)]
|
||||
sql('...') raw SQL rejected: SemanticException: Function [sql] is not allowed in safe mode [select sql('lower(?)', i.customer) from Invoice i order by i.id]
|
||||
criteria function() rejected: SemanticException: Function [current_setting] is not allowed in safe mode
|
||||
criteria sql() rejected: SemanticException: Function [sql] is not allowed in safe mode
|
||||
translate() built in on PostgreSQL ok: [xlice, bob]
|
||||
|
||||
Reference in New Issue
Block a user