Speaker
Description
Running a Java service as a non-root user is a useful security measure, but the service may still have access to files it does not need. How can developers restrict that access while keeping the application functional?
This practical session will demonstrate how to confine a Java service on Ubuntu using AppArmor. Using a small HTTP service in an isolated Ubuntu environment, we will identify its required resources, create an application-specific profile, and explore the difference between learning and enforcement modes.
The demonstration will cover both expected and prohibited behaviour: normal API requests, configuration reads and report generation should succeed, while attempts to read unrelated dummy sensitive files or write outside approved directories should fail. We will also deliberately introduce a rule that breaks legitimate functionality, inspect the resulting denial, and adjust the profile without granting unnecessarily broad permissions.
Finally, we will turn these scenarios into repeatable tests and discuss maintaining the profile as the application and Java runtime change.
Speaker Bio
I'm siddesh is a SDE -2 at Oracle working with Java and distributed system in work focuses such as backend APIs, automation or service reliability. interested in practical, reproducible approaches to building and operating reliable software.
Prerequisites
Basic familiarity with the Linux command line, file permissions and backend applications. Understanding how a Java service starts is helpful; no prior AppArmor experience is required. Attendees do not need to bring a laptop or install software.
Summary
Learn how to restrict a Java service’s file access on Ubuntu using AppArmor while preserving normal application behaviour. Through a practical demonstration, this session will cover profile development, troubleshooting access denials, and repeatable tests for permitted and prohibited operations.
| Speaker LinkedIn / Socials | https://www.linkedin.com/in/siddesh-a-s/ |
|---|---|
| Difficulty | Intermediate |