이 페이지는 아직 한국어로 제공되지 않으며 번역 작업 중입니다. 번역에 관한 질문이나 의견이 있으시면 언제든지 저희에게 연락해 주십시오.

You can monitor application security for Java apps running in Docker, Kubernetes, Amazon ECS, and AWS Fargate.

Prerequisites

1-Click Enablement
If your service is running with an Agent with Remote Configuration enabled and a tracing library version that supports it, hover over the Not Enabled indicator in the ASM Status column and click Enable ASM. There's no need to re-launch the service with the DD_APPSEC_ENABLED=true or --enable-appsec flags.

Enabling Code Security

If your service runs a tracing library version that supports code security, enable the capability by setting the DD_IAST_ENABLED=true environment variable and restarting your service.

To detect code-level vulnerabilities in your service:

  1. Update your Datadog Agent to at least version 7.41.1.

  2. Update your tracing library to at least the minimum version needed to turn on code security vulnerability detection. For details, see ASM capabilities support.

  3. Add the DD_IAST_ENABLED=true environment variable to your application configuration.

    From the command line:

    java -javaagent:/path/to/dd-java-agent.jar -Ddd.iast.enabled=true -Ddd.service=<MY SERVICE> -Ddd.env=<MY_ENV> -jar path/to/app.jar
    

    Or one of the following methods, depending on where your application runs:

    Note: Read-only file systems are not supported. The application must have access to a writable /tmp directory.

    Update your configuration container for APM by adding the following argument in your docker run command:

    docker run [...] -e DD_IAST_ENABLED=true [...]
    

    Add the following environment variable value to your container Dockerfile:

    DD_IAST_ENABLED=true
    

    Update your deployment configuration file for APM and add the IAST environment variable:

    spec:
      template:
        spec:
          containers:
            - name: <CONTAINER_NAME>
              image: <CONTAINER_IMAGE>/<TAG>
              env:
                - name: DD_IAST_ENABLED
                  value: "true"
    

    Update your ECS task definition JSON file, by adding this in the environment section:

    "environment": [
      ...,
      {
        "name": "DD_IAST_ENABLED",
        "value": "true"
      }
    ]
    
  4. Restart your service.

  5. To see Code Security in action, browse your service and find code-level vulnerabilities in the Vulnerability Explorer.

If you need additional assistance, contact Datadog support.

Further Reading

PREVIEWING: esther/docs-7422-add-rsyslog-note