Repository navigation
fix(guardrails): check feature flag helper in PIIMasker to honor DB overrides (#8708) - #8730
Merged
diegosouzapw merged 2 commits intoJul 27, 2026
Conversation
…verrides (#8708) Previously checked directly, ignoring database feature flag overrides configured via settings/UI. This update routes the check through so DB overrides are respected as intended.
Collaborator
✅ Conflito resolvido automaticamente — pronto para o merge-trainO conflito contra
Esta PR agora é MERGEABLE contra |
diegosouzapw
merged commit Jul 27, 2026
0c1654b
into
cheaper-inference:release/v3.8.49
15 checks passed
Merged
HouMinXi
pushed a commit
to HouMinXi/OmniRoute
that referenced
this pull request
Aug 2, 2026
…verrides (cheaper-inference#8708) (cheaper-inference#8730) Previously checked directly, ignoring database feature flag overrides configured via settings/UI. This update routes the check through so DB overrides are respected as intended. Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com>
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…verrides (cheaper-inference#8708) (cheaper-inference#8730) Previously checked directly, ignoring database feature flag overrides configured via settings/UI. This update routes the check through so DB overrides are respected as intended. Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #8708.
Changes
Verification
GUARDRAIL earlier pre-call modified undefined
GUARDRAIL later pre-call modified undefined
[DB] Changing cache_size from 65536KB to 16384KB
[DB] cache_size changed to 16384KB
[DB] SQLite database ready: /Users/austinliu/.omniroute/storage.sqlite (DATA_DIR=/Users/austinliu/.omniroute, SQLITE_FILE=/Users/austinliu/.omniroute/storage.sqlite)
Request blocked by prompt injection guard {
detections: [
{ pattern: 'system_override', severity: 'high' },
{ pattern: 'system_prompt_leak', severity: 'high' }
]
}
Subtest: guardrail registry runs pre-call hooks in priority order
ok 1 - guardrail registry runs pre-call hooks in priority order
duration_ms: 0.872042
type: 'test'
...
Subtest: guardrail registry respects disabledGuardrails from context
ok 2 - guardrail registry respects disabledGuardrails from context
duration_ms: 0.112417
type: 'test'
...
Subtest: resolveDisabledGuardrails merges api key, body metadata, and headers
ok 3 - resolveDisabledGuardrails merges api key, body metadata, and headers
duration_ms: 0.094708
type: 'test'
...
Subtest: prompt injection guardrail blocks suspicious content in block mode
ok 4 - prompt injection guardrail blocks suspicious content in block mode
duration_ms: 21.844042
type: 'test'
...
Subtest: pii masker guardrail redacts request and response payloads
ok 5 - pii masker guardrail redacts request and response payloads
duration_ms: 1.37375
type: 'test'
...
Subtest: pii masker respects feature flag overrides (DB and env)
ok 6 - pii masker respects feature flag overrides (DB and env)
duration_ms: 0.26475
type: 'test'
...
Subtest: pii masker does not rewrite request PII when redaction flag is off
ok 7 - pii masker does not rewrite request PII when redaction flag is off
duration_ms: 0.110583
type: 'test'
...
Subtest: guardrail registry fails open when a guardrail throws
ok 8 - guardrail registry fails open when a guardrail throws
duration_ms: 0.097959
type: 'test'
...
1..8
tests 8
suites 0
pass 8
fail 0
cancelled 0
skipped 0
todo 0
duration_ms 400.818792 (PASS, 8/8).