Skip to content

Enable tracer-based AppSec for Java Lambda - #772

Draft
claponcet wants to merge 1 commit into
DataDog:mainfrom
claponcet:clara.poncet/java-lambda-appsec-onboarding
Draft

claponcet wants to merge 1 commit into
DataDog:mainfrom
claponcet:clara.poncet/java-lambda-appsec-onboarding

Conversation

@claponcet

Copy link
Copy Markdown

What does this PR do?

Enable Java Lambda tracer-based AppSec through the existing appSecMode option. With on, use the tracer when both addLayers and addExtension are enabled; otherwise retain extension mode. Explicit tracer mode supports manually managed instrumentation.

Java tracer mode sets DD_APPSEC_ENABLED=true and DD_SERVERLESS_APPSEC_ENABLED=false. Existing enableASM and explicit extension mode behavior remain unchanged.

Motivation

Reuse the existing Python onboarding path for Java Lambda App and API Protection. APPSEC-71271.

Testing Guidelines

288 unit tests pass under Node 24, including mixed runtimes, inherited flags, excluded functions, and the manually installed extension fallback. Build, lint, and formatting checks pass. No AWS deployment performed.

Additional Notes

Draft: do not merge/release until the bundled catalog includes a published Java layer version 31 or later, verified to contain tracer 1.69.0 or later, and extension 102 or later. The current catalog still uses Java layer 30. README guidance marks Java support as unreleased.

Types of changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant