Skip to content

fix: harden SSH auth, config validation, and startup probes#17

Merged
aanogueira merged 1 commit intomainfrom
aanogueira/hardened-config
Apr 21, 2026
Merged

fix: harden SSH auth, config validation, and startup probes#17
aanogueira merged 1 commit intomainfrom
aanogueira/hardened-config

Conversation

@aanogueira
Copy link
Copy Markdown
Contributor

@aanogueira aanogueira commented Apr 21, 2026

Accept SSH host keys in certificate_check callback (scoped to SSH only – HTTPS/TLS still validated via system CAs) so repos on hosts not in known_hosts can be fetched without manual intervention.

Add startupProbe (60 min window) to the Helm statefulset so large deployments with 1000+ repos survive initial indexing without the liveness probe killing the pod.

Harden config validation:

  • Redact secrets in RepoConfig Debug impl to prevent log leakage
  • Reject repo names with path-traversal sequences (../, leading /)
  • Fail fast when auth_token is paired with an SSH URL (silent misconfiguration that caused the original indexing failure)

Signed-off-by: Andre Nogueira <aanogueira@protonmail.com>
@aanogueira aanogueira merged commit 52f4357 into main Apr 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant