Skip to content

Commit ee110de

Browse files
authored
Merge pull request #153 from WeOwnNetwork/fix/nik-cichecks-false-positives
fix(ci): boolean false-positive in SOC2 secret grep + Trivy DO-firewall suppressions
2 parents 079069d + 4bd2783 commit ee110de

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
# b64enc / {{ – Helm template expressions in secrets.yaml
123123
# \$ – shell env-var references (e.g. $MARIADB_PASSWORD)
124124
# "" – empty-string sentinels (auto-generated at deploy time)
125-
if grep -RInE '^[[:space:]]*[^#]*password[^:]*[:=][[:space:]]*[^[:space:]#]+' --include="*.yaml" --include="*.yml" . | grep -Eiv 'valueFrom|secretKeyRef|envFrom:|example|sample|placeholder|b64enc|\$|\{\{|""'; then
125+
if grep -RInE '^[[:space:]]*[^#]*password[^:]*[:=][[:space:]]*[^[:space:]#]+' --include="*.yaml" --include="*.yml" . | grep -Eiv 'valueFrom|secretKeyRef|envFrom:|example|sample|placeholder|b64enc|\$|\{\{|""|:[[:space:]]*(false|true)[[:space:]]*$'; then
126126
echo "::error::Hardcoded secrets detected - SOC2 violation"
127127
exit 1
128128
fi

.trivyignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,13 @@ AVD-KSV-0125
113113
# earlier version of the chart mounted host `/`, which has been removed.
114114
KSV-0023
115115
AVD-KSV-0023
116+
117+
# AVD-DIG-0001 / AVD-DIG-0003 — DO firewall world-open ingress/egress
118+
# Fleet-standing pattern for public droplet sites (billing, sso, gitea):
119+
# 80/443 ingress must be world-open (public HTTPS service, Caddy/LE);
120+
# egress is open by design (apt, Infisical, Stripe, DO Spaces).
121+
# SSH (22) starts world-open FIRST-BOOT ONLY and is narrowed via the
122+
# ssh_source_cidrs variable after the deploy window — tracked per-site
123+
# (Keycloak-Gitea board row 16 pattern).
124+
AVD-DIG-0001
125+
AVD-DIG-0003

0 commit comments

Comments
 (0)