How stacksimplify/azure-aks-kubernetes-masterclass works
This repository contains the Spring Boot user-management application used as a course sample, rather than the AKS/Terraform course infrastructure itself. The main workflow is a browser or API client requesting user operations, which controllers delegate to user services or the repository and ultimately persist as user data; authentication loads a user by username to construct security details. The README documents MySQL-backed deployment, while the sampled sources show the application-layer operations. Security configuration and several routes are present in the tree, but their wiring was not sampled, so no speculative links are drawn.
Main entry points: UserRepository.java User repository · UserWebController.java User web forms · UserService.java User service contract · User.java User record
Components 21
Application entrypoints
- Spring Boot app
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/SpringbootSecurityInternalApplication.java - User REST API
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/UserController.java - User web forms
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/UserWebController.java
User domain and persistence
- User service contract
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/services/UserService.java - User operations
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/services/UserServiceImpl.java - User repository
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/repositories/UserRepository.java - User record
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/entities/User.java - Role record
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/entities/Role.java - MySQL storage
- Contact record
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/entities/ContactUs.java
Identity and security
- User lookup
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/services/CustomUserDetailsService.java - User security details
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/services/CustomUserDetails.java - Security configuration
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/config/SecurityConfig.java - Security configuration 2
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/config/SecurityConfig2.java - Web security configuration
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/config/SecurityConfigWeb.java
Supporting endpoints
- Hello endpoint
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/Hello/HelloWorldController.java - Hello response data
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/Hello/UserDetails.java - Welcome endpoint
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/WelcomeController.java - Logout endpoint
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/LogoutController.java - Error endpoint
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/ErrorController.java
Other components
- Web/API client
Connections 12
- Web/API client → User REST API: requests
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/UserController.java - Web/API client → User web forms: submits forms
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/UserWebController.java - User REST API → User service contract: invokes
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/UserController.java - User web forms → User service contract: invokes
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/UserWebController.java - User web forms → User repository: reads/writes
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/controllers/UserWebController.java - User operations → User repository: reads/writes
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/services/UserServiceImpl.java - User service contract → User record: accepts/returns
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/services/UserService.java - User repository → User record: stores entities
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/repositories/UserRepository.java - User record → Role record: has roles
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/entities/User.java - User repository → MySQL storage: persists via JPA
README.md - User lookup → User repository: looks up username
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/services/CustomUserDetailsService.java - User lookup → User security details: builds details
azure-aks-usermgmt-webapp-demo/src/main/java/com/stacksimplify/restservices/services/CustomUserDetailsService.java