Spring Boot Deployment
ASecurityKeep secrets outside the application artifact and image. Inject them at runtime through Kubernetes Secrets, a managed secret store such as Vault, or environment variables; `spring.config.import` can integrate an external configuration source. Reference values from configuration instead of committing them: ```yaml datasource: password: ${DB_PASSWORD} ``` Do not put credentials in `application-prod.yml`, Dockerfiles, Docker build arguments, Git history, or image layers. Restrict Secret access w...
- 584 stars
- 0 votes
- 0 copies
- 3 views
- Added September 5, 2026
Security analysis
100/100Pro scans all 11 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill spring-boot-deployment --agent claude-codeAre you the author of Spring Boot Deployment?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-spring-boot-deployment-2743277c)Keep secrets outside the application artifact and image. Inject them at runtime through Kubernetes Secrets, a managed secret store such as Vault, or environment variables; `spring.config.import` can integrate an external configuration source. Reference values from configuration instead of committing them:
```yaml
datasource:
password: ${DB_PASSWORD}
```
Do not put credentials in `application-prod.yml`, Dockerfiles, Docker build arguments, Git history, or image layers. Restrict Secret access with the workload's identity and RBAC, rotate values without rebuilding the application, and avoid logging configuration values or exception details that contain them. Use profile files for non-secret environment differences and select the profile with `SPRING_PROFILES_ACTIVE`.
Bind grouped settings through validated `@ConfigurationProperties` records so missing required values fail fast at startup. Scan the repository and container layers for accidental secrets, ensure generated logs and actuator output are safe, and test that the deployment can start with real secret injection. A secret reference is not protection by itself: also enforce least privilege, TLS, rotation, and access auditing in the platform.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.