feat(security): factory default credentials audit (deploy credentials) #1

Open
crapougnax wants to merge 1 commit from feat/credentials-audit into develop
Owner

Summary

First real audit of the module: tycho security deploy credentials implements the controls of the AGENTS.okf unit Factory Default Credentials.

  • Static (recipe provider descriptor .tycho/): credentials.declared, login-replaced, secret-sourced, exposure-order.
  • Live (--live [--context]): one login attempt per control and account over a local kubectl port-forward: factory-rejected, factory-login-retired. Probes http-basic and http-post (form/json); passwordFrom for generated initial-password Secrets.
  • Text or JSON report (--format json), each finding cites its rule, cluster values never printed, exit 1 on failure.
  • Based on develop (module format of 2026-11-06), not on the older local branch refactor/tycho-security-canonical.

Test plan

  • bash tests/credentials.test.sh: 16 tests (neutral acme fixture, mock service, kubectl stand-in), including a check that deployed passwords never appear in the report
  • Static run on a real recipe provider: findings as expected
  • Live run on a real cluster

🤖 Generated with Claude Code

## Summary First real audit of the module: `tycho security deploy credentials` implements the controls of the AGENTS.okf unit *Factory Default Credentials*. - **Static** (recipe provider descriptor `.tycho/`): `credentials.declared`, `login-replaced`, `secret-sourced`, `exposure-order`. - **Live** (`--live [--context]`): one login attempt per control and account over a local `kubectl port-forward`: `factory-rejected`, `factory-login-retired`. Probes `http-basic` and `http-post` (form/json); `passwordFrom` for generated initial-password Secrets. - Text or JSON report (`--format json`), each finding cites its rule, cluster values never printed, exit 1 on failure. - Based on `develop` (module format of 2026-11-06), not on the older local branch `refactor/tycho-security-canonical`. ## Test plan - [x] `bash tests/credentials.test.sh`: 16 tests (neutral `acme` fixture, mock service, kubectl stand-in), including a check that deployed passwords never appear in the report - [x] Static run on a real recipe provider: findings as expected - [ ] Live run on a real cluster 🤖 Generated with [Claude Code](https://claude.com/claude-code)
First real audit of the module: `tycho security deploy credentials` implements
the controls of the knowledge unit "Factory Default Credentials". Static
controls read a recipe provider descriptor (tycho.credentials of each recipe,
variables of repository.json): declared, login-replaced, secret-sourced,
exposure-order. Live controls (--live) reach each declared service over a
local kubectl port-forward with one attempt per control and account:
factory-rejected, factory-login-retired. Probes http-basic and http-post
(form or json). Text or JSON report, every finding cites its rule, values read
from the cluster are never printed, exit 1 on failure.

Tests on a neutral fixture with a mock service and a kubectl stand-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/credentials-audit:feat/credentials-audit
git switch feat/credentials-audit
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tycho/tycho-security!1
No description provided.