Skip to content
Ameen Abozaid
Planned lessonJNR-042-L06

Demo: hardening the prod profile

  • Lesson 6 of 6
  • Junior
On This Lesson 3 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

apply all controls in one profile. Prepares JNR-042-LAB1.

Draft outline details

Step by step

  1. Create application-prod.yml; replace secrets with environment variables.
  2. Restrict Actuator to health,info.
  3. Add security headers and HSTS; set forwarded-header handling for the proxy.
  4. Add the dependency scanner to the build and run it; read the report.
  5. Planned mistake: leaving management.endpoints.web.exposure.include=* from development; /actuator/env shows config. Fix: restrict it and re-test.
  6. Grep the logs for passwords and tokens.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.