feat(ai_guard): honor in-app blocking settings by default#16756
feat(ai_guard): honor in-app blocking settings by default#16756gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomainfrom
Conversation
Codeowners resolved as |
|
@cursor review |
Performance SLOsComparing candidate smola/ai-guard-default-block-ui (406c477) with baseline main (304595c) 📈 Performance Regressions (1 suite)📈 iastaspectsospath - 24/24✅ ospathbasename_aspectTime: ✅ 519.929µs (SLO: <700.000µs 📉 -25.7%) vs baseline: 📈 +24.3% Memory: ✅ 43.607MB (SLO: <46.000MB -5.2%) vs baseline: +4.9% ✅ ospathbasename_noaspectTime: ✅ 432.745µs (SLO: <700.000µs 📉 -38.2%) vs baseline: +1.8% Memory: ✅ 43.566MB (SLO: <46.000MB -5.3%) vs baseline: +5.0% ✅ ospathjoin_aspectTime: ✅ 630.305µs (SLO: <700.000µs -10.0%) vs baseline: +1.3% Memory: ✅ 43.650MB (SLO: <46.000MB -5.1%) vs baseline: +5.2% ✅ ospathjoin_noaspectTime: ✅ 637.151µs (SLO: <700.000µs -9.0%) vs baseline: +1.3% Memory: ✅ 43.629MB (SLO: <46.000MB -5.2%) vs baseline: +5.2% ✅ ospathnormcase_aspectTime: ✅ 353.898µs (SLO: <700.000µs 📉 -49.4%) vs baseline: +2.1% Memory: ✅ 43.652MB (SLO: <46.000MB -5.1%) vs baseline: +5.4% ✅ ospathnormcase_noaspectTime: ✅ 359.937µs (SLO: <700.000µs 📉 -48.6%) vs baseline: +2.5% Memory: ✅ 43.572MB (SLO: <46.000MB -5.3%) vs baseline: +5.0% ✅ ospathsplit_aspectTime: ✅ 489.573µs (SLO: <700.000µs 📉 -30.1%) vs baseline: +0.8% Memory: ✅ 43.591MB (SLO: <46.000MB -5.2%) vs baseline: +5.2% ✅ ospathsplit_noaspectTime: ✅ 498.959µs (SLO: <700.000µs 📉 -28.7%) vs baseline: +1.2% Memory: ✅ 43.696MB (SLO: <46.000MB -5.0%) vs baseline: +5.4% ✅ ospathsplitdrive_aspectTime: ✅ 376.025µs (SLO: <700.000µs 📉 -46.3%) vs baseline: +2.2% Memory: ✅ 43.668MB (SLO: <46.000MB -5.1%) vs baseline: +5.3% ✅ ospathsplitdrive_noaspectTime: ✅ 73.645µs (SLO: <700.000µs 📉 -89.5%) vs baseline: +0.4% Memory: ✅ 43.696MB (SLO: <46.000MB -5.0%) vs baseline: +5.4% ✅ ospathsplitext_aspectTime: ✅ 458.940µs (SLO: <700.000µs 📉 -34.4%) vs baseline: +0.6% Memory: ✅ 43.632MB (SLO: <46.000MB -5.1%) vs baseline: +5.3% ✅ ospathsplitext_noaspectTime: ✅ 466.939µs (SLO: <700.000µs 📉 -33.3%) vs baseline: +1.6% Memory: ✅ 43.526MB (SLO: <46.000MB -5.4%) vs baseline: +5.0% ✅ All Tests Passing (2 suites)✅ iastaspectssplit - 12/12✅ rsplit_aspectTime: ✅ 158.040µs (SLO: <250.000µs 📉 -36.8%) vs baseline: +9.5% Memory: ✅ 43.569MB (SLO: <46.000MB -5.3%) vs baseline: +5.3% ✅ rsplit_noaspectTime: ✅ 155.209µs (SLO: <250.000µs 📉 -37.9%) vs baseline: +3.9% Memory: ✅ 43.549MB (SLO: <46.000MB -5.3%) vs baseline: +5.1% ✅ split_aspectTime: ✅ 148.266µs (SLO: <250.000µs 📉 -40.7%) vs baseline: +1.1% Memory: ✅ 43.584MB (SLO: <46.000MB -5.3%) vs baseline: +5.1% ✅ split_noaspectTime: ✅ 154.486µs (SLO: <250.000µs 📉 -38.2%) vs baseline: +3.2% Memory: ✅ 43.531MB (SLO: <46.000MB -5.4%) vs baseline: +5.1% ✅ splitlines_aspectTime: ✅ 143.941µs (SLO: <250.000µs 📉 -42.4%) vs baseline: -0.3% Memory: ✅ 43.633MB (SLO: <46.000MB -5.1%) vs baseline: +5.0% ✅ splitlines_noaspectTime: ✅ 151.177µs (SLO: <250.000µs 📉 -39.5%) vs baseline: +1.4% Memory: ✅ 43.630MB (SLO: <46.000MB -5.2%) vs baseline: +5.1% ✅ iastpropagation - 8/8✅ no-propagationTime: ✅ 48.751µs (SLO: <60.000µs 📉 -18.7%) vs baseline: -0.9% Memory: ✅ 39.656MB (SLO: <42.000MB -5.6%) vs baseline: +5.2% ✅ propagation_enabledTime: ✅ 135.820µs (SLO: <190.000µs 📉 -28.5%) vs baseline: -2.2% Memory: ✅ 39.754MB (SLO: <42.000MB -5.3%) vs baseline: +5.1% ✅ propagation_enabled_100Time: ✅ 1.560ms (SLO: <2.300ms 📉 -32.2%) vs baseline: -1.7% Memory: ✅ 39.793MB (SLO: <42.000MB -5.3%) vs baseline: +5.4% ✅ propagation_enabled_1000Time: ✅ 29.084ms (SLO: <34.550ms 📉 -15.8%) vs baseline: +0.1% Memory: ✅ 40.108MB (SLO: <42.000MB -4.5%) vs baseline: +6.1% ℹ️ Scenarios Missing SLO Configuration (20 scenarios)The following scenarios exist in candidate data but have no SLO thresholds configured:
|
a0e5ad5 to
406c477
Compare
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
Tests failed on this commit ecb917d: What to do next?
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
KowalskiThomas
left a comment
There was a problem hiding this comment.
Release notes OK.
## Description Set `block=True` by default on AI Guard's `evaluate`. This makes the AI Guard SDK block requests if blocking is enabled for the service in-app. To override the in-app settings programatically, `block=False` can be set. ## Testing <!-- Describe your testing strategy or note what tests are included --> ## Risks <!-- Note any risks associated with this change, or "None" if no risks --> ## Additional Notes [APPSEC-61436](https://datadoghq.atlassian.net/browse/APPSEC-61436) [APPSEC-61436]: https://datadoghq.atlassian.net/browse/APPSEC-61436?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ Co-authored-by: alberto.vara <[email protected]>
Description
Set
block=Trueby default on AI Guard'sevaluate. This makes the AI Guard SDK block requests if blocking is enabled for the service in-app. To override the in-app settings programatically,block=Falsecan be set.Testing
Risks
Additional Notes
APPSEC-61436