You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve deployment-guard error messages and repository validation
## Changes
### Error Message Improvements (Issue #339)
- Add clear "REASON:" prefix to all validation failures for traceability
- Remove "how to fix" suggestions, replace with validation rules reminder
- Improve error messages to state WHAT failed and WHY
### Bug Fix: Repository Validation with Registry Prefix
- Fix repository validation to extract base repository name
- Handle images with registry prefix (e.g., mirror.gcr.io/dotcms/dotcms)
- Compare both full repository and base repository with allowlist
- Add debug logging to show comparison process
### Specific Error Message Changes
1. **File Allowlist**: "BLOCKED: File allowlist validation failed"
- States which files are not in allowlist
- Shows pattern requirements
2. **Image-Only**: "BLOCKED: Image-only validation failed"
- Clarifies only image attribute can be modified
- Lists what changes are not allowed
3. **Image Validation**: "BLOCKED: Image validation failed"
- Lists all validation rules (repository, version, existence, downgrades)
- Explains evergreen version requirements
- Removes remediation suggestions
### Examples
Before: "❌ Repository not allowed: mirror.gcr.io/dotcms/dotcms"
After: Extracts "dotcms/dotcms" and matches against allowlist ✅
Related to dotCMS/deutschebank-infrastructure#339
0 commit comments