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 w...
Scanned 9/5/2026
Install to Claude Code
npx -y skills add HoangNguyen0403/agent-skills-standard --skill spring-boot-deployment --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Spring Boot Deployment?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-spring-boot-deployment-2743277c)More formats (shields.io, HTML) on the badges page.
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.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!