Make SecretRuleMatchValidationHttpV2::provides an Option#855
Make SecretRuleMatchValidationHttpV2::provides an Option#855gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the CustomHttpV2 secret-rule match validation model so the provides field can be omitted (i.e., represented as Option), aligning deserialization and downstream conversion with optional paired-validator configuration.
Changes:
- Change
SecretRuleMatchValidationHttpV2.providesfromVec<_>toOption<Vec<_>>and propagate that through thedd_sdsconversion. - Update unit tests/fixtures to wrap
providesinSome(...)where it’s expected to exist. - Update CLI-side tests to unwrap
providesas anOption.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
crates/secrets/src/model/secret_rule.rs |
Makes provides optional in the CustomHttpV2 model and updates conversion/tests accordingly. |
crates/cli/src/model/datadog_api.rs |
Adjusts test expectations to account for provides becoming optional. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
This comment has been minimized.
This comment has been minimized.
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
The expected merge time in
Tests failed on this commit afce95a: What to do next?
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What problem are you trying to solve?
Scanning in
service:code-workload-runner-secretsstopped on Tuesday due to a missingprovidesfield.This is the cause of #incident-51370
What is your solution?
Mark the field as optional, since it is already optional downstream, in the SDS engine.
Alternatives considered
What the reviewer should know
Tested on staging:
static-analysis-api returns a config that's missing the provides field:
The analyzer runs fine: