Commit 9135c18
authored
chore(deps): bump datadog-agent-config to 8ce37eb (dd_org_uuid + logs_enabled) (#1267)
## Summary
Bumps the \`datadog-agent-config\` / \`dogstatsd\` / \`datadog-fips\`
pin to \`8ce37eb\`, which contains two recently-merged upstream
features:
-
[serverless-components#137](DataDog/serverless-components#137)
— adds \`Config::dd_org_uuid: String\` (\`DD_ORG_UUID\` / yaml
\`org_uuid\`)
-
[serverless-components#138](DataDog/serverless-components#138)
— adds \`Config::logs_enabled: bool\` (\`DD_LOGS_ENABLED\` / yaml
\`logs_enabled\`)
## What changes in bottlecap
### dd_org_uuid
Drops the now-redundant local copy from \`LambdaConfig\`:
- \`LambdaConfig\`: removed \`dd_org_uuid: String\`.
- \`LambdaConfigSource\`: removed \`org_uuid: Option<String>\` and the
\`merge_string!(self, dd_org_uuid, source, org_uuid)\` source-to-config
renaming call in \`merge_from\`.
- Consumers (\`secrets/decrypt.rs\`,
\`secrets/delegated_auth/client.rs\`) switch from
\`config.ext.dd_org_uuid\` → \`config.dd_org_uuid\`.
- Tests assert on the upstream field.
### logs_enabled
The lambda extension's existing OR-merge contract for log shipping is
preserved **exactly**. The legacy semantics are:
| \`DD_SERVERLESS_LOGS_ENABLED\` | \`DD_LOGS_ENABLED\` | resolved
\`serverless_logs_enabled\` |
|---|---|---|
| unset | unset | **true** (default kept) |
| any | true | true |
| true | any | true |
| false | false | false |
| **unset** | **false** | **false** (alias alone can override default) |
| false | unset | false |
To preserve "was \`DD_LOGS_ENABLED\` explicitly set?" the alias source
field is **retained** on \`LambdaConfigSource\` and the OR-merge in
\`merge_from\` is kept. The upstream parsing of the same env var into
\`config.logs_enabled\` runs in parallel — that field exists for any
non-lambda consumer of the crate, but the lambda extension continues to
gate log shipping on \`config.ext.serverless_logs_enabled\`.
A regression test was added for the alias-only-false case (the trickiest
invariant), so a future refactor that breaks it fails loudly.
## Why two PRs in one
Both upstream PRs are merged and \`8ce37eb\` contains them as a single
SHA. Bundling lets us bump once and avoid a transitional state where
main is pinned to a SHA that has \`logs_enabled\` upstream but the
lambda extension's source field still aliases it.
## Test plan
- [x] \`cargo test --workspace --features default\` — all pass
(lambda_config_tests now at 40, +2 for the new logs_enabled coverage)
- [x] \`cargo clippy --workspace --all-targets --features default\` —
clean
- [x] \`cargo fmt -- --check\` — clean
- [x] Regression test
\`logs_enabled_alias_only_false_overrides_default\` exercises the
invariant that \`DD_LOGS_ENABLED=false\` alone disables logs (overriding
the default-true)
- [x] No behavior change for customers — same env vars, same resolved
field at lambda call sites1 parent a61ba77 commit 9135c18
5 files changed
Lines changed: 67 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
| |||
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
129 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
| |||
210 | 208 | | |
211 | 209 | | |
212 | 210 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
220 | 224 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
319 | 328 | | |
320 | 329 | | |
321 | 330 | | |
| |||
343 | 352 | | |
344 | 353 | | |
345 | 354 | | |
346 | | - | |
| 355 | + | |
347 | 356 | | |
348 | 357 | | |
349 | 358 | | |
350 | 359 | | |
351 | 360 | | |
352 | 361 | | |
353 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
354 | 375 | | |
355 | 376 | | |
356 | 377 | | |
| |||
370 | 391 | | |
371 | 392 | | |
372 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
373 | 406 | | |
374 | 407 | | |
375 | 408 | | |
| |||
598 | 631 | | |
599 | 632 | | |
600 | 633 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
| 634 | + | |
605 | 635 | | |
606 | 636 | | |
607 | 637 | | |
| |||
615 | 645 | | |
616 | 646 | | |
617 | 647 | | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
| 648 | + | |
622 | 649 | | |
623 | 650 | | |
624 | 651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments