@sebastienrousseau/dotfiles 0.2.519 → 0.2.521
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +200 -0
- package/LICENSE-APACHE +190 -0
- package/{LICENSE → LICENSE-MIT} +1 -1
- package/README.md +1172 -166
- package/install.sh +77 -11
- package/package.json +8 -8
- package/tools/README.md +49 -0
- package/tools/ci/install-chezmoi-verified.sh +68 -0
- package/docs/.vitepress/reports/localization-readability-audit.md +0 -73
- package/docs/AI.md +0 -179
- package/docs/CNAME +0 -1
- package/docs/CONFIG_STRATEGY.md +0 -124
- package/docs/COPYRIGHT +0 -7
- package/docs/GOVERNANCE.md +0 -98
- package/docs/MAINTAINERS.md +0 -41
- package/docs/NAMING_CONVENTIONS.md +0 -102
- package/docs/OPENCODE.md +0 -127
- package/docs/README.md +0 -84
- package/docs/STRUCTURE.md +0 -102
- package/docs/adr/ADR-001-ci-cd-pipeline.md +0 -118
- package/docs/adr/ADR-002-shell-performance.md +0 -130
- package/docs/adr/ADR-003-security-first.md +0 -158
- package/docs/adr/ADR-004-cli-architecture.md +0 -171
- package/docs/adr/ADR-005-chezmoi-choice.md +0 -99
- package/docs/adr/ADR-006-shell-selection.md +0 -124
- package/docs/adr/ADR-007-multi-shell-parity.md +0 -62
- package/docs/adr/ADR-008-alias-system-architecture.md +0 -95
- package/docs/adr/ADR-009-wallpaper-driven-theming.md +0 -131
- package/docs/adr/ADR-010-starship-transient-prompt.md +0 -144
- package/docs/adr/ADR-011-nushell-tier3-keep.md +0 -144
- package/docs/adr/ADR-012-ai-fleet-local-proxy.md +0 -79
- package/docs/adr/README.md +0 -40
- package/docs/architecture/AI_COST_OPTIMIZATION.md +0 -144
- package/docs/architecture/ARCHITECTURE.md +0 -117
- package/docs/architecture/INTEROP.md +0 -44
- package/docs/architecture/REPO_LAYOUT.md +0 -241
- package/docs/architecture/WALKTHROUGH.md +0 -86
- package/docs/architecture/fleet-deployment.md +0 -77
- package/docs/archive/EUXIS_2026_REVIEW.md +0 -127
- package/docs/archive/LEGACY_ROADMAP.md +0 -6
- package/docs/archive/MILESTONE_v0.2.493.md +0 -47
- package/docs/archive/PLAN.md +0 -199
- package/docs/archive/REPO_AUDIT.md +0 -31
- package/docs/articles/.pages +0 -6
- package/docs/articles/2026-07-05-custom-mkdocs-material-dark-theme.md +0 -216
- package/docs/articles/2026-07-05-fish-startup-abbr.md +0 -153
- package/docs/articles/2026-07-05-master-to-main-rename-runbook.md +0 -128
- package/docs/articles/index.md +0 -36
- package/docs/guides/INSTALL.md +0 -144
- package/docs/guides/NEOVIM_IDE_GUIDE.md +0 -61
- package/docs/guides/THEMING.md +0 -230
- package/docs/guides/TROUBLESHOOTING.md +0 -176
- package/docs/guides/WSL2_NIX_TROUBLESHOOTING.md +0 -792
- package/docs/index.md +0 -132
- package/docs/interop/A2A.md +0 -39
- package/docs/interop/POWERSHELL.md +0 -102
- package/docs/manual/00-introduction.md +0 -89
- package/docs/manual/01-concepts/01-architecture.md +0 -138
- package/docs/manual/01-concepts/02-trust-model.md +0 -183
- package/docs/manual/01-concepts/03-theme-engine.md +0 -186
- package/docs/manual/01-concepts/04-fleet.md +0 -148
- package/docs/manual/01-concepts/05-self-healing.md +0 -204
- package/docs/manual/02-tutorials/01-first-install.md +0 -197
- package/docs/manual/02-tutorials/02-add-wallpaper.md +0 -216
- package/docs/manual/02-tutorials/03-create-profile.md +0 -244
- package/docs/manual/02-tutorials/04-encrypt-secret.md +0 -281
- package/docs/manual/02-tutorials/05-deploy-fleet.md +0 -283
- package/docs/manual/03-reference/01-dot-cli.md +0 -450
- package/docs/manual/03-reference/02-config-files.md +0 -265
- package/docs/manual/03-reference/03-environment.md +0 -124
- package/docs/manual/03-reference/04-templates.md +0 -190
- package/docs/manual/03-reference/05-feature-flags.md +0 -187
- package/docs/manual/04-cookbook/01-recipes.md +0 -285
- package/docs/manual/04-cookbook/02-troubleshooting.md +0 -351
- package/docs/manual/04-cookbook/03-faq.md +0 -175
- package/docs/manual/05-appendices/A-platform-matrix.md +0 -101
- package/docs/manual/05-appendices/B-security-checklist.md +0 -85
- package/docs/manual/05-appendices/C-glossary.md +0 -40
- package/docs/manual/05-appendices/D-bibliography.md +0 -58
- package/docs/manual/05-appendices/E-license.md +0 -38
- package/docs/manual/_toc.yml +0 -58
- package/docs/manual/command-index.md +0 -155
- package/docs/manual/concept-index.md +0 -168
- package/docs/manual/index.md +0 -66
- package/docs/operations/ARCHITECTURE_ROADMAP.md +0 -7
- package/docs/operations/ATTESTATION.md +0 -44
- package/docs/operations/CI_CADENCE.md +0 -107
- package/docs/operations/CI_COMPOSITES.md +0 -156
- package/docs/operations/COMPLETIONS.md +0 -123
- package/docs/operations/COVERAGE.md +0 -204
- package/docs/operations/DRIFT.md +0 -107
- package/docs/operations/HARD_AUDIT_2026.md +0 -631
- package/docs/operations/MAINTENANCE.md +0 -63
- package/docs/operations/MANIFEST.md +0 -127
- package/docs/operations/MIGRATION.md +0 -109
- package/docs/operations/OPERATIONS.md +0 -188
- package/docs/operations/PERFORMANCE.md +0 -133
- package/docs/operations/REGISTRY.md +0 -90
- package/docs/operations/RELEASE_PIPELINE.md +0 -128
- package/docs/operations/RELIABILITY.md +0 -122
- package/docs/operations/RFC_v0_2_503_reorganization.md +0 -280
- package/docs/operations/ROADMAP.md +0 -10
- package/docs/operations/ROADMAP_2026.md +0 -7
- package/docs/operations/ROADMAP_V0_2_503.md +0 -10
- package/docs/operations/TESTING.md +0 -216
- package/docs/operations/TRACEABILITY.md +0 -43
- package/docs/operations/TRUSTED_AGENT_WORKSTATION.md +0 -65
- package/docs/operations/VERSION_SYNC.md +0 -393
- package/docs/reference/ALIASES.md +0 -131
- package/docs/reference/ALIASES_CHEATSHEET.md +0 -32
- package/docs/reference/ALIASES_DEPRECATIONS.md +0 -13
- package/docs/reference/FEATURES.md +0 -66
- package/docs/reference/FONTS.md +0 -112
- package/docs/reference/POWERSHELL_PARITY.md +0 -82
- package/docs/reference/PROFILES.md +0 -69
- package/docs/reference/SCREENSHOTS.md +0 -121
- package/docs/reference/SCRIPTS.md +0 -71
- package/docs/reference/SUPPORT_MATRIX.md +0 -80
- package/docs/reference/THEMES.md +0 -117
- package/docs/reference/TOOLS.md +0 -110
- package/docs/reference/UTILS.md +0 -242
- package/docs/registry.json +0 -6
- package/docs/schema/dot-env-v1.json +0 -110
- package/docs/schema/dot-registry-v1.json +0 -33
- package/docs/security/AI_ACT_COMPLIANCE.md +0 -94
- package/docs/security/AUDIT_BYPASS.md +0 -103
- package/docs/security/AUTOMATION_SECRETS.md +0 -26
- package/docs/security/CI_EGRESS_ALLOWLIST.md +0 -127
- package/docs/security/CI_PINNING.md +0 -129
- package/docs/security/COMMIT_SIGNING.md +0 -138
- package/docs/security/COMPLIANCE.md +0 -458
- package/docs/security/DEPS_DEV_EXCEPTIONS.md +0 -86
- package/docs/security/DISCLOSURE.md +0 -130
- package/docs/security/ENCRYPTION.md +0 -57
- package/docs/security/FMEA.md +0 -159
- package/docs/security/FUZZING.md +0 -114
- package/docs/security/HISTORY_FILTERING.md +0 -132
- package/docs/security/INCIDENT_RESPONSE.md +0 -579
- package/docs/security/INSTALL_VERIFICATION.md +0 -122
- package/docs/security/KEYS.md +0 -49
- package/docs/security/KEY_ROTATION.md +0 -303
- package/docs/security/MCP_POLICY.md +0 -78
- package/docs/security/POLICY_RELEASES.md +0 -37
- package/docs/security/README.md +0 -28
- package/docs/security/SCORECARD.md +0 -195
- package/docs/security/SECRETS.md +0 -158
- package/docs/security/SECURITY.md +0 -45
- package/docs/security/SECURITY_CHECKLIST.md +0 -55
- package/docs/security/SHELL_EXEMPTIONS.md +0 -145
- package/docs/security/SOUP_REGISTER.md +0 -36
- package/docs/security/THREAT_MODEL.md +0 -130
- package/docs/security/VERIFICATION_VALIDATION.md +0 -228
- package/docs/security/VERIFY_RELEASE.md +0 -201
- package/docs/security/security-pubkey.asc +0 -15
- package/docs/stylesheets/extra.css +0 -444
- package/docs/themes/README.md +0 -10
- package/docs/themes/VISUAL_INTEGRITY_REPORT.md +0 -30
- package/docs/themes/hero-shot.svg +0 -78
- package/scripts/README.md +0 -123
- package/scripts/ci/check-copyright-headers.sh +0 -8
- package/scripts/ci/check-shell-preamble.sh +0 -8
- package/scripts/ci/guard-gitleaks-checkout.sh +0 -8
- package/scripts/demo/record.sh +0 -43
- package/scripts/diagnostics/a2a-conformance.sh +0 -163
- package/scripts/diagnostics/alias-governance.sh +0 -138
- package/scripts/diagnostics/aliases-cheatsheet.sh +0 -74
- package/scripts/diagnostics/aliases-manifest.sh +0 -77
- package/scripts/diagnostics/benchmark.sh +0 -408
- package/scripts/diagnostics/conflicts.sh +0 -73
- package/scripts/diagnostics/doctor-unified.sh +0 -39
- package/scripts/diagnostics/doctor.sh +0 -751
- package/scripts/diagnostics/drift-dashboard.sh +0 -202
- package/scripts/diagnostics/health.sh +0 -623
- package/scripts/diagnostics/history-analysis.sh +0 -86
- package/scripts/diagnostics/mcp-doctor.sh +0 -582
- package/scripts/diagnostics/perf.sh +0 -453
- package/scripts/diagnostics/scorecard.sh +0 -119
- package/scripts/diagnostics/secret-governance.sh +0 -65
- package/scripts/diagnostics/security-score.sh +0 -467
- package/scripts/diagnostics/smoke-test.sh +0 -88
- package/scripts/diagnostics/snapshot.sh +0 -90
- package/scripts/diagnostics/verify.sh +0 -108
- package/scripts/diagnostics/verify_state.sh +0 -73
- package/scripts/diagnostics/version-locks.sh +0 -94
- package/scripts/diagnostics/workstation-attestation.sh +0 -187
- package/scripts/dot/commands/agent.sh +0 -485
- package/scripts/dot/commands/agents.sh +0 -336
- package/scripts/dot/commands/ai.sh +0 -587
- package/scripts/dot/commands/aliases.sh +0 -277
- package/scripts/dot/commands/appearance.sh +0 -110
- package/scripts/dot/commands/completion.sh +0 -134
- package/scripts/dot/commands/core.sh +0 -217
- package/scripts/dot/commands/diagnostics.sh +0 -265
- package/scripts/dot/commands/env-emit.sh +0 -203
- package/scripts/dot/commands/fleet.sh +0 -688
- package/scripts/dot/commands/init.sh +0 -185
- package/scripts/dot/commands/lint.sh +0 -208
- package/scripts/dot/commands/manual.sh +0 -169
- package/scripts/dot/commands/meta.sh +0 -333
- package/scripts/dot/commands/patterns.sh +0 -55
- package/scripts/dot/commands/registry.sh +0 -419
- package/scripts/dot/commands/restore.sh +0 -232
- package/scripts/dot/commands/secrets.sh +0 -296
- package/scripts/dot/commands/security.sh +0 -102
- package/scripts/dot/commands/tools.sh +0 -556
- package/scripts/dot/data/alias-deprecations.tsv +0 -2
- package/scripts/dot/powershell/Dot.psm1 +0 -319
- package/scripts/fonts/install-nerd-fonts.sh +0 -75
- package/scripts/fonts/patch-fonts.sh +0 -36
- package/scripts/git-hooks/install.sh +0 -12
- package/scripts/git-hooks/pre-commit +0 -12
- package/scripts/git-hooks/pre-commit-audit.sh +0 -146
- package/scripts/git-hooks/pre-push +0 -105
- package/scripts/git-hooks/prepare-commit-msg +0 -29
- package/scripts/lib/secrets_provider.sh +0 -185
- package/scripts/ops/ai-setup.sh +0 -71
- package/scripts/ops/bundle.sh +0 -104
- package/scripts/ops/chaos.sh +0 -50
- package/scripts/ops/chezmoi-apply.sh +0 -333
- package/scripts/ops/chezmoi-diff.sh +0 -16
- package/scripts/ops/chezmoi-remove.sh +0 -46
- package/scripts/ops/chezmoi-update.sh +0 -63
- package/scripts/ops/heal-chezmoi.sh +0 -87
- package/scripts/ops/heal-system.sh +0 -129
- package/scripts/ops/heal-tools.sh +0 -297
- package/scripts/ops/heal.sh +0 -223
- package/scripts/ops/post-apply-repair.sh +0 -107
- package/scripts/ops/prewarm.sh +0 -128
- package/scripts/ops/release.sh +0 -262
- package/scripts/ops/rollback.sh +0 -604
- package/scripts/ops/setup.sh +0 -138
- package/scripts/ops/teleport.sh +0 -34
- package/scripts/qa/check-version-consistency.sh +0 -124
- package/scripts/qa/coverage-baseline.sh +0 -61
- package/scripts/qa/docs-coverage.sh +0 -112
- package/scripts/qa/examples-coverage.sh +0 -94
- package/scripts/qa/powershell-contract.ps1 +0 -95
- package/scripts/qa/reliability-audit.sh +0 -139
- package/scripts/qa/scorecard-snapshot.sh +0 -128
- package/scripts/qa/traceability-coverage.sh +0 -117
- package/scripts/qa/validate-examples.sh +0 -27
- package/scripts/qa/wsl-contract.sh +0 -12
- package/scripts/secrets/age-init.sh +0 -82
- package/scripts/secrets/create-secrets-file.sh +0 -46
- package/scripts/secrets/encrypt-ssh-key.sh +0 -44
- package/scripts/security/backup.sh +0 -58
- package/scripts/security/check-disclosure-key-expiry.sh +0 -111
- package/scripts/security/dns-doh.sh +0 -52
- package/scripts/security/encryption-check.sh +0 -55
- package/scripts/security/enforce-policies.sh +0 -335
- package/scripts/security/firewall.sh +0 -91
- package/scripts/security/lock-configs.sh +0 -67
- package/scripts/security/lock-screen.sh +0 -56
- package/scripts/security/manage-secrets.sh +0 -429
- package/scripts/security/ssh-cert.sh +0 -204
- package/scripts/security/telemetry-kill.sh +0 -51
- package/scripts/security/usb-safety.sh +0 -52
- package/scripts/theme/apply-gnome-theme.sh +0 -333
- package/scripts/theme/extract-heic-frames.sh +0 -115
- package/scripts/theme/extract-theme.py +0 -742
- package/scripts/theme/install-boot-logo.sh +0 -63
- package/scripts/theme/install-catppuccin-themes.sh +0 -371
- package/scripts/theme/install-cursors.sh +0 -26
- package/scripts/theme/install-file-icons.sh +0 -27
- package/scripts/theme/install-grub-theme.sh +0 -62
- package/scripts/theme/install-lock-icon.sh +0 -31
- package/scripts/theme/merge-wallpaper.sh +0 -146
- package/scripts/theme/rebuild-themes.sh +0 -544
- package/scripts/theme/switch.sh +0 -449
- package/scripts/theme/wallpaper-rotate.sh +0 -137
- package/scripts/theme/wallpaper-sync.sh +0 -690
- package/scripts/tools/cmatrix.sh +0 -22
- package/scripts/tools/detect-collisions.py +0 -103
- package/scripts/tools/emoji-picker.sh +0 -49
- package/scripts/tools/figlet-banner.sh +0 -19
- package/scripts/tools/log-rotate.sh +0 -31
- package/scripts/tools/lolcat-wrap.sh +0 -20
- package/scripts/tools/pipes.sh +0 -49
- package/scripts/tuning/linux.sh +0 -186
- package/scripts/tuning/macos.sh +0 -56
- package/scripts/uninstall.sh +0 -86
- package/scripts/version-sync.sh +0 -654
- package/templates/chezmoi-data/geekom-a9.toml.example +0 -21
- package/templates/chezmoi-data/mac-m1.toml.example +0 -16
- package/templates/chezmoi-data/mac-t2-linux.toml.example +0 -21
- package/templates/chezmoi-data/surface-pro-7p.toml.example +0 -21
- package/templates/projects/go/.github/workflows/ci.yml +0 -31
- package/templates/projects/go/README.md +0 -7
- package/templates/projects/go/cmd/__PROJECT_NAME__/main.go +0 -8
- package/templates/projects/go/go.mod +0 -3
- package/templates/projects/go/go.sum +0 -0
- package/templates/projects/molecule/README.md +0 -7
- package/templates/projects/molecule/converge.yml +0 -7
- package/templates/projects/molecule/molecule.yml +0 -16
- package/templates/projects/node/.github/workflows/ci.yml +0 -30
- package/templates/projects/node/README.md +0 -7
- package/templates/projects/node/package-lock.json +0 -12
- package/templates/projects/node/package.json +0 -10
- package/templates/projects/node/src/index.js +0 -3
- package/templates/projects/packer/README.md +0 -15
- package/templates/projects/packer/main.pkr.hcl +0 -15
- package/templates/projects/python/.github/workflows/ci.yml +0 -34
- package/templates/projects/python/README.md +0 -7
- package/templates/projects/python/pyproject.toml +0 -25
- package/templates/projects/python/src/__PROJECT_NAME__/__init__.py +0 -2
- package/templates/projects/python/tests/test_basic.py +0 -3
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
render_with_liquid: false
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Secrets Encryption with SOPS and age
|
|
6
|
-
|
|
7
|
-
## Quick Start
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
# 1. Generate an age key (one-time)
|
|
11
|
-
mkdir -p ~/.config/sops/age
|
|
12
|
-
age-keygen -o ~/.config/sops/age/keys.txt
|
|
13
|
-
|
|
14
|
-
# 2. Get your public key
|
|
15
|
-
age-keygen -y ~/.config/sops/age/keys.txt
|
|
16
|
-
# Output: age1abc123...
|
|
17
|
-
|
|
18
|
-
# 3. Update .sops.yaml with your public key
|
|
19
|
-
# Replace the placeholder key in .sops.yaml with your actual public key
|
|
20
|
-
|
|
21
|
-
# 4. Encrypt a file
|
|
22
|
-
sops --encrypt --age $(age-keygen -y ~/.config/sops/age/keys.txt) secrets.yaml > secrets.sops.yaml
|
|
23
|
-
|
|
24
|
-
# 5. Edit encrypted files
|
|
25
|
-
sops secrets.sops.yaml
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Key Management
|
|
29
|
-
|
|
30
|
-
- **Private key**: `~/.config/sops/age/keys.txt` — never commit this file.
|
|
31
|
-
- **Public key**: Safe to share. It lives in `.sops.yaml`.
|
|
32
|
-
- **Backup**: Keep your private key in a password manager or a hardware security module.
|
|
33
|
-
|
|
34
|
-
## Recovery
|
|
35
|
-
|
|
36
|
-
If you lose your age private key, follow these steps:
|
|
37
|
-
|
|
38
|
-
1. Create a new key: `age-keygen -o ~/.config/sops/age/keys.txt`
|
|
39
|
-
2. Re-encrypt all secrets with the new public key.
|
|
40
|
-
3. Update `.sops.yaml` with the new public key.
|
|
41
|
-
|
|
42
|
-
## Integration with Chezmoi
|
|
43
|
-
|
|
44
|
-
Chezmoi has built-in support for age encryption.
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
chezmoi add --encrypt ~/.ssh/config
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
This encrypts the file in the source state. It uses the age key set in `~/.config/chezmoi/chezmoi.toml`:
|
|
51
|
-
|
|
52
|
-
```toml
|
|
53
|
-
encryption = "age"
|
|
54
|
-
[age]
|
|
55
|
-
identity = "~/.config/sops/age/keys.txt"
|
|
56
|
-
recipient = "age1abc123..."
|
|
57
|
-
```
|
package/docs/security/FMEA.md
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
render_with_liquid: false
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Failure Mode and Effects Analysis (FMEA)
|
|
6
|
-
|
|
7
|
-
Systematic risk assessment of the chezmoi-managed dotfiles repository per IEC 60812 methodology. Identifies failure modes, quantifies risk priority, and documents mitigations across all configuration management subsystems.
|
|
8
|
-
|
|
9
|
-
## Purpose
|
|
10
|
-
|
|
11
|
-
This document applies Failure Mode and Effects Analysis (FMEA) to a chezmoi-managed dotfiles repository. Each failure mode is evaluated by Severity, Occurrence, and Detection ratings to produce a Risk Priority Number (RPN). The RPN drives mitigation priority and review cadence.
|
|
12
|
-
|
|
13
|
-
Methodology: IEC 60812:2018 — Analysis techniques for system reliability.
|
|
14
|
-
|
|
15
|
-
## Scope
|
|
16
|
-
|
|
17
|
-
| Domain | Coverage |
|
|
18
|
-
|--------|----------|
|
|
19
|
-
| Shell configuration | Zsh, Fish, Nushell startup, aliases, functions, `rc.d` modules |
|
|
20
|
-
| Tool management | mise, Homebrew, Nix flakes, Zinit plugins, Neovim plugins |
|
|
21
|
-
| Secrets management | Age encryption, gitleaks, 1Password integration, Atuin history |
|
|
22
|
-
| CI/CD pipeline | GitHub Actions workflows, pre-commit hooks, compliance guards |
|
|
23
|
-
| Cross-platform deployment | macOS (BSD), Linux (GNU), WSL, chezmoi templating |
|
|
24
|
-
| Git integrity | Signed commits, branch protection, CODEOWNERS |
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Rating Scales
|
|
29
|
-
|
|
30
|
-
### Severity (S)
|
|
31
|
-
|
|
32
|
-
| Rating | Level | Definition |
|
|
33
|
-
|--------|-------|------------|
|
|
34
|
-
| 1 | None | No effect on system operation |
|
|
35
|
-
| 2 | Very Minor | Cosmetic defect noticed only by maintainer |
|
|
36
|
-
| 3 | Minor | Minor degradation, workaround available |
|
|
37
|
-
| 4 | Very Low | Subsystem partially impaired, user notices |
|
|
38
|
-
| 5 | Low | Subsystem degraded, reduced functionality |
|
|
39
|
-
| 6 | Moderate | System operates with degraded performance |
|
|
40
|
-
| 7 | High | System operates but critical function impaired |
|
|
41
|
-
| 8 | Very High | System inoperable, data at risk |
|
|
42
|
-
| 9 | Hazardous with Warning | Potential security breach, credentials exposed |
|
|
43
|
-
| 10 | Hazardous without Warning | Secret exfiltration, supply chain compromise, silent data loss |
|
|
44
|
-
|
|
45
|
-
### Occurrence (O)
|
|
46
|
-
|
|
47
|
-
| Rating | Level | Definition |
|
|
48
|
-
|--------|-------|------------|
|
|
49
|
-
| 1 | Nearly Impossible | < 1 in 1,000,000 operations |
|
|
50
|
-
| 2 | Remote | 1 in 100,000 operations |
|
|
51
|
-
| 3 | Very Low | 1 in 10,000 operations |
|
|
52
|
-
| 4 | Low | 1 in 1,000 operations |
|
|
53
|
-
| 5 | Moderate | 1 in 200 operations |
|
|
54
|
-
| 6 | Moderately High | 1 in 50 operations |
|
|
55
|
-
| 7 | High | 1 in 20 operations |
|
|
56
|
-
| 8 | Very High | 1 in 10 operations |
|
|
57
|
-
| 9 | Extremely High | 1 in 3 operations |
|
|
58
|
-
| 10 | Certain | Every operation |
|
|
59
|
-
|
|
60
|
-
### Detection (D)
|
|
61
|
-
|
|
62
|
-
| Rating | Level | Definition |
|
|
63
|
-
|--------|-------|------------|
|
|
64
|
-
| 1 | Almost Certain | Automated control detects failure every time |
|
|
65
|
-
| 2 | Very High | Automated control with >99% detection rate |
|
|
66
|
-
| 3 | High | Automated test catches most occurrences |
|
|
67
|
-
| 4 | Moderately High | CI pipeline detects on PR merge |
|
|
68
|
-
| 5 | Moderate | Detected during routine manual review |
|
|
69
|
-
| 6 | Low | Detected only by targeted audit |
|
|
70
|
-
| 7 | Very Low | Requires manual inspection to discover |
|
|
71
|
-
| 8 | Remote | Detected only after user reports failure |
|
|
72
|
-
| 9 | Very Remote | Detected only after external incident |
|
|
73
|
-
| 10 | Undetectable | No mechanism exists to detect the failure |
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
## FMEA Table
|
|
78
|
-
|
|
79
|
-
| ID | Component | Failure Mode | Effect | S | O | D | RPN | Mitigation | Status |
|
|
80
|
-
|----|-----------|-------------|--------|---|---|---|-----|------------|--------|
|
|
81
|
-
| FM-01 | Secrets Management | Secrets committed to git (gitleaks bypass) | API keys, tokens, or passwords exposed in public git history | 10 | 3 | 2 | 60 | Gitleaks pre-commit hook, TruffleHog CI scan, detect-secrets baseline, `.gitignore` excludes `key.txt`/`.env` | Mitigated |
|
|
82
|
-
| FM-02 | Shell Configuration | `chezmoi apply` corrupts shell config | Login shell fails to start, user locked out of interactive session | 9 | 3 | 3 | 81 | `chezmoi apply --dry-run` in CI, `chezmoi diff` pre-check, version-controlled rollback via `git checkout` | Mitigated |
|
|
83
|
-
| FM-03 | Git Integrity | Unsigned commit pushed (GPG/SSH bypass) | Commit attribution unverifiable, compliance violation (SOC 2 CC6.8) | 7 | 4 | 2 | 56 | Pre-push hook verifies signatures, `compliance-guard.yml` CI check, `commit.gpgsign = true` default | Mitigated |
|
|
84
|
-
| FM-04 | Tool Management | mise tool update introduces vulnerability | Compromised binary executes with user privileges on every shell start | 10 | 2 | 6 | 120 | Pinned tool versions in `.tool-versions`, Nix flake lock reproducibility, manual version audit | Monitoring |
|
|
85
|
-
| FM-05 | Shell Performance | Shell startup exceeds 500ms | Degraded developer experience, productivity loss, user disables safety features | 5 | 5 | 3 | 75 | `_cached_eval` mtime-based caching, `DOTFILES_ULTRA_FAST=1` bypass, `dot health` startup benchmark | Mitigated |
|
|
86
|
-
| FM-06 | Cross-Platform | BSD vs GNU incompatibility | Script fails silently or produces incorrect output on macOS or Linux | 6 | 5 | 3 | 90 | `cross-platform-test.yml` CI on macOS + Linux, `$OSTYPE` guards, portable alternatives documented in COMPLIANCE.md | Mitigated |
|
|
87
|
-
| FM-07 | CI/CD Pipeline | CI workflow tampered (Actions injection) | Attacker executes arbitrary code in CI, exfiltrates secrets, modifies artifacts | 10 | 2 | 4 | 80 | Actions pinned to SHA, `permissions: contents: read` default, concurrency control, explicit job timeouts | Mitigated |
|
|
88
|
-
| FM-08 | Secrets Management | Age encryption key lost | Encrypted dotfiles unrecoverable, secrets permanently inaccessible | 9 | 2 | 8 | 144 | Key backup in 1Password vault, documented recovery procedure in KEYS.md, periodic backup verification | Monitoring |
|
|
89
|
-
| FM-09 | Shell Configuration | Alias conflict breaks existing command | User command produces unexpected behavior, data loss in destructive operations | 7 | 4 | 5 | 140 | Alias naming conventions (`chezmoi_` prefix for internal), unit tests for all 99 alias files, `type` command verification | Monitoring |
|
|
90
|
-
| FM-10 | Tool Management | Nix flake lock stale (>30 days) | Outdated dependencies with known vulnerabilities, reproducibility drift | 6 | 6 | 4 | 144 | `nightly.yml` dependency version checks, `nix flake update` in maintenance schedule, `dot health` staleness check | Monitoring |
|
|
91
|
-
| FM-11 | Git Integrity | Pre-commit hook bypassed (`--no-verify`) | Secrets, lint failures, and insecure patterns reach the repository | 8 | 4 | 7 | 224 | CI re-runs all pre-commit checks (`compliance-guard.yml`), branch protection requires CI pass, audit log review | Mitigated |
|
|
92
|
-
| FM-12 | Cross-Platform | Config drift between machines | Inconsistent behavior across workstations, unreproducible environments | 5 | 5 | 6 | 150 | Chezmoi state management, `chezmoi status` diff check, feature flags in `.chezmoidata.toml`, CI dry-run on both platforms | Monitoring |
|
|
93
|
-
| FM-13 | Network Security | TLS certificate validation disabled | Man-in-the-middle interception of downloads, credential theft | 10 | 2 | 2 | 40 | `curl -k` and `wget --no-check-certificate` blocked by pre-commit and CI, pattern scanning in `compliance-guard.yml` | Mitigated |
|
|
94
|
-
| FM-14 | File Permissions | World-writable file permissions (chmod 777) | Any local user or process can modify configs, privilege escalation vector | 9 | 2 | 2 | 36 | `chmod 777/666` blocked by pre-commit and CI, chezmoi `private_` prefix enforces 0600, `umask 022` default | Mitigated |
|
|
95
|
-
| FM-15 | Template Engine | Template rendering failure (`.tmpl` syntax error) | Chezmoi apply fails, partial deployment leaves inconsistent state | 7 | 4 | 2 | 56 | `chezmoi apply --dry-run` in CI on Linux + macOS, template syntax validated before merge, `chezmoi execute-template` for local testing | Mitigated |
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
## Risk Priority Summary
|
|
100
|
-
|
|
101
|
-
### Critical (RPN > 200)
|
|
102
|
-
|
|
103
|
-
| ID | Component | Failure Mode | RPN | Action Required |
|
|
104
|
-
|----|-----------|-------------|-----|-----------------|
|
|
105
|
-
| FM-11 | Git Integrity | Pre-commit hook bypassed (`--no-verify`) | 224 | CI enforcement layer catches all bypassed checks; add GitHub branch protection rule requiring status checks to pass |
|
|
106
|
-
|
|
107
|
-
### High (RPN 100-200)
|
|
108
|
-
|
|
109
|
-
| ID | Component | Failure Mode | RPN | Action Required |
|
|
110
|
-
|----|-----------|-------------|-----|-----------------|
|
|
111
|
-
| FM-12 | Cross-Platform | Config drift between machines | 150 | Implement `chezmoi status` in `dot health` dashboard; alert on drift >24 hours |
|
|
112
|
-
| FM-10 | Tool Management | Nix flake lock stale (>30 days) | 144 | Enforce flake freshness check in nightly CI; auto-create PR on staleness |
|
|
113
|
-
| FM-08 | Secrets Management | Age encryption key lost | 144 | Quarterly key backup verification; document recovery runbook |
|
|
114
|
-
| FM-09 | Shell Configuration | Alias conflict breaks existing command | 140 | Expand alias unit tests with conflict detection; `type` validation in CI |
|
|
115
|
-
| FM-04 | Tool Management | mise tool update introduces vulnerability | 120 | Pin versions, audit changelogs before updates, monitor CVE databases |
|
|
116
|
-
|
|
117
|
-
### Medium (RPN 50-100)
|
|
118
|
-
|
|
119
|
-
| ID | Component | Failure Mode | RPN | Action Required |
|
|
120
|
-
|----|-----------|-------------|-----|-----------------|
|
|
121
|
-
| FM-06 | Cross-Platform | BSD vs GNU incompatibility | 90 | Maintain cross-platform CI matrix; document portable alternatives |
|
|
122
|
-
| FM-02 | Shell Configuration | `chezmoi apply` corrupts shell config | 81 | CI dry-run enforcement; rollback documentation |
|
|
123
|
-
| FM-07 | CI/CD Pipeline | CI workflow tampered (Actions injection) | 80 | SHA-pinned actions; minimal permissions; periodic audit |
|
|
124
|
-
| FM-05 | Shell Performance | Shell startup exceeds 500ms | 75 | Performance regression tests in CI; cache warming |
|
|
125
|
-
| FM-01 | Secrets Management | Secrets committed to git (gitleaks bypass) | 60 | Multi-layered scanning (pre-commit + CI + detect-secrets) |
|
|
126
|
-
| FM-03 | Git Integrity | Unsigned commit pushed (GPG/SSH bypass) | 56 | Pre-push hook + CI verification |
|
|
127
|
-
| FM-15 | Template Engine | Template rendering failure (`.tmpl` syntax error) | 56 | CI dry-run on both platforms |
|
|
128
|
-
|
|
129
|
-
### Low (RPN < 50)
|
|
130
|
-
|
|
131
|
-
| ID | Component | Failure Mode | RPN | Action Required |
|
|
132
|
-
|----|-----------|-------------|-----|-----------------|
|
|
133
|
-
| FM-13 | Network Security | TLS certificate validation disabled | 40 | Automated pattern blocking; no further action |
|
|
134
|
-
| FM-14 | File Permissions | World-writable file permissions (chmod 777) | 36 | Automated pattern blocking; no further action |
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## Review Schedule
|
|
139
|
-
|
|
140
|
-
| Activity | Cadence | Owner | Deliverable |
|
|
141
|
-
|----------|---------|-------|-------------|
|
|
142
|
-
| FMEA full review | Quarterly | Repository maintainer | Updated FMEA table, revised RPNs |
|
|
143
|
-
| RPN recalculation | After each mitigation change | Repository maintainer | Updated RPN values, status changes |
|
|
144
|
-
| Critical item review | Monthly | Repository maintainer | Action items for RPN > 200 |
|
|
145
|
-
| New failure mode triage | Per incident | Repository maintainer | New FMEA row, initial RPN assignment |
|
|
146
|
-
| Detection control audit | Quarterly | Repository maintainer | Verify automated controls function correctly |
|
|
147
|
-
| Mitigation effectiveness | Semi-annually | Repository maintainer | Compare actual vs predicted occurrence rates |
|
|
148
|
-
|
|
149
|
-
**Next scheduled review:** 2026-06-20
|
|
150
|
-
|
|
151
|
-
---
|
|
152
|
-
|
|
153
|
-
## References
|
|
154
|
-
|
|
155
|
-
- [IEC 60812:2018](https://www.iso.org/standard/64076.html) — Analysis techniques for system reliability
|
|
156
|
-
- [AIAG FMEA Handbook](https://www.aiag.org/quality/automotive-core-tools/fmea) — Automotive Industry Action Group FMEA methodology
|
|
157
|
-
- [COMPLIANCE.md](COMPLIANCE.md) — Regulatory mapping and security controls
|
|
158
|
-
- [THREAT_MODEL.md](THREAT_MODEL.md) — Trust boundaries and attack surface analysis
|
|
159
|
-
- [SECURITY.md](SECURITY.md) — Vulnerability reporting and response SLAs
|
package/docs/security/FUZZING.md
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Fuzzing"
|
|
3
|
-
date: 2026-05-17
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Fuzzing
|
|
7
|
-
|
|
8
|
-
The project ships native-Go fuzz harnesses for every user-input
|
|
9
|
-
parsing surface in the framework. The harnesses run locally via
|
|
10
|
-
`go test -fuzz`, in CI on every PR via `.github/workflows/fuzz.yml`,
|
|
11
|
-
and (pending upstream submission) continuously on Google's OSS-Fuzz
|
|
12
|
-
infrastructure.
|
|
13
|
-
|
|
14
|
-
## Why Go fuzzing
|
|
15
|
-
|
|
16
|
-
The framework is bash. Bash has no first-class fuzzing framework
|
|
17
|
-
that OpenSSF Scorecard recognises (Scorecard scores `Fuzzing` 0
|
|
18
|
-
unless the project ships an integration with one of: OSS-Fuzz,
|
|
19
|
-
ClusterFuzzLite, native Go fuzz, libFuzzer, Atheris). The
|
|
20
|
-
pragmatic path is to **port each user-input parsing surface
|
|
21
|
-
into a small Go function**, run the fuzzer against the Go port,
|
|
22
|
-
and keep the Go port in lockstep with the shell original via
|
|
23
|
-
identical regex / control-flow.
|
|
24
|
-
|
|
25
|
-
Drift between the shell and Go port IS the bug class the
|
|
26
|
-
fuzzer is designed to surface — if the Go port accepts a string
|
|
27
|
-
the shell rejects (or vice-versa), one of them has a hole.
|
|
28
|
-
|
|
29
|
-
## Harnesses today
|
|
30
|
-
|
|
31
|
-
| Harness | Mirrors | What it proves |
|
|
32
|
-
|---------|---------|----------------|
|
|
33
|
-
| `FuzzValidateName` | `scripts/dot/lib/utils.sh:101` (`validate_name`) | Every accepted name contains only `[a-zA-Z0-9._-]`; no shell metacharacter slips through; empty input refused. |
|
|
34
|
-
| `FuzzInitURLResolver` | `scripts/dot/commands/init.sh` (URL construction in `dot init <user\|owner/repo\|url>`) | Accepted URLs use `https://` / `git@` / `ssh://` only; plain HTTP refused; no shell metacharacters in constructed URLs; one input shape per acceptable form. |
|
|
35
|
-
|
|
36
|
-
Add a harness when:
|
|
37
|
-
|
|
38
|
-
- a new `dot <subcommand>` accepts user input via `$1` / `--flag`,
|
|
39
|
-
- a new regex appears in `scripts/dot/lib/utils.sh`,
|
|
40
|
-
- a new "construct a URL / path / shell-eval string" code path lands.
|
|
41
|
-
|
|
42
|
-
## Running locally
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
cd oss-fuzz-integration/fuzz
|
|
46
|
-
|
|
47
|
-
# 30-second smoke (find regressions quickly)
|
|
48
|
-
go test -run TestNothing -fuzz=FuzzValidateName -fuzztime=30s ./...
|
|
49
|
-
go test -run TestNothing -fuzz=FuzzInitURLResolver -fuzztime=30s ./...
|
|
50
|
-
|
|
51
|
-
# Longer run when investigating a flake
|
|
52
|
-
go test -run TestNothing -fuzz=FuzzValidateName -fuzztime=10m ./...
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Failures land in `testdata/fuzz/Fuzz<Name>/` as auto-saved
|
|
56
|
-
reproducers. Commit them — they become permanent regression
|
|
57
|
-
guards via `go test ./...`.
|
|
58
|
-
|
|
59
|
-
## OSS-Fuzz integration (pending)
|
|
60
|
-
|
|
61
|
-
The `oss-fuzz-integration/` directory contains everything OSS-Fuzz
|
|
62
|
-
needs to onboard this project:
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
oss-fuzz-integration/
|
|
66
|
-
├── project.yaml # OSS-Fuzz project metadata
|
|
67
|
-
├── Dockerfile # build environment
|
|
68
|
-
├── build.sh # compiles every harness in fuzz/
|
|
69
|
-
└── fuzz/ # the harnesses themselves
|
|
70
|
-
├── go.mod
|
|
71
|
-
├── validate_name_test.go
|
|
72
|
-
└── init_url_resolver_test.go
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
To onboard:
|
|
76
|
-
|
|
77
|
-
1. Fork `github.com/google/oss-fuzz`.
|
|
78
|
-
2. Copy `oss-fuzz-integration/` contents to `projects/dotfiles/` in the fork.
|
|
79
|
-
3. Verify locally per <https://google.github.io/oss-fuzz/getting-started/new-project-guide/#testing-locally>:
|
|
80
|
-
|
|
81
|
-
```sh
|
|
82
|
-
python infra/helper.py build_image dotfiles
|
|
83
|
-
python infra/helper.py build_fuzzers --sanitizer address dotfiles
|
|
84
|
-
python infra/helper.py check_build dotfiles
|
|
85
|
-
python infra/helper.py run_fuzzer dotfiles fuzz_validate_name
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
4. Open a PR to `google/oss-fuzz` per <https://google.github.io/oss-fuzz/getting-started/accepting-new-projects/>.
|
|
89
|
-
5. Once merged, OSS-Fuzz schedules continuous runs on GCP; findings land as private issues in the OSS-Fuzz tracker and are mirrored to the maintainer email in `project.yaml`.
|
|
90
|
-
6. Update `docs/security/SCORECARD.md` — Scorecard's `Fuzzing` check recognises OSS-Fuzz projects automatically (0 → 10).
|
|
91
|
-
|
|
92
|
-
The upstream PR opens the door to the **CIFuzz** GitHub Action,
|
|
93
|
-
which runs OSS-Fuzz-style fuzzing on every PR in this repo
|
|
94
|
-
(separate from the local-go-fuzz CI job).
|
|
95
|
-
|
|
96
|
-
## CI workflow
|
|
97
|
-
|
|
98
|
-
`.github/workflows/fuzz.yml` (planned) runs each harness for
|
|
99
|
-
60 seconds on every PR touching:
|
|
100
|
-
|
|
101
|
-
- `scripts/dot/lib/utils.sh`
|
|
102
|
-
- `scripts/dot/commands/init.sh`
|
|
103
|
-
- `oss-fuzz-integration/**`
|
|
104
|
-
|
|
105
|
-
This is the local equivalent of CIFuzz and catches the
|
|
106
|
-
"shell-regex-change without Go-port update" drift class before
|
|
107
|
-
PR merge.
|
|
108
|
-
|
|
109
|
-
## See also
|
|
110
|
-
|
|
111
|
-
- `docs/security/SCORECARD.md` — `Fuzzing` check tracking.
|
|
112
|
-
- [Go native fuzzing tutorial](https://go.dev/doc/tutorial/fuzz).
|
|
113
|
-
- [OSS-Fuzz new project guide](https://google.github.io/oss-fuzz/getting-started/new-project-guide/).
|
|
114
|
-
- [CIFuzz GitHub Action](https://google.github.io/oss-fuzz/getting-started/continuous-integration/).
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
render_with_liquid: false
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Atuin History Filtering
|
|
6
|
-
|
|
7
|
-
This page documents how high-risk command patterns are excluded from
|
|
8
|
-
Atuin shell history, how to extend the list for your machine, and the
|
|
9
|
-
trade-offs of filter design.
|
|
10
|
-
|
|
11
|
-
## Why
|
|
12
|
-
|
|
13
|
-
Atuin syncs shell history across machines and exposes a fuzzy-search UI
|
|
14
|
-
(`Ctrl-R`). Without a filter, every command — including ones that
|
|
15
|
-
contain secrets passed inline (`AWS_SECRET_ACCESS_KEY=...`, `op run`,
|
|
16
|
-
`vault read`, `curl -H 'Authorization: Bearer ...'`) — is captured,
|
|
17
|
-
synced to a remote service, and made grep-able.
|
|
18
|
-
|
|
19
|
-
The `history_filter` array in `~/.config/atuin/config.toml` lists
|
|
20
|
-
regular expressions that, if matched, prevent Atuin from recording the
|
|
21
|
-
command at all (it never enters the local DB, and therefore never
|
|
22
|
-
syncs).
|
|
23
|
-
|
|
24
|
-
## How it ships
|
|
25
|
-
|
|
26
|
-
Patterns are sourced from `.chezmoidata/secrets-patterns.toml` and
|
|
27
|
-
materialised into `~/.config/atuin/config.toml` by the chezmoi template
|
|
28
|
-
at `dot_config/atuin/config.toml.tmpl`.
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
.chezmoidata/secrets-patterns.toml
|
|
32
|
-
└── [atuin.history_filter]
|
|
33
|
-
defaults = [...] # audited baseline (this repo)
|
|
34
|
-
extra = [...] # empty by default; populated per machine
|
|
35
|
-
|
|
36
|
-
dot_config/atuin/config.toml.tmpl
|
|
37
|
-
└── chezmoi apply ─────► ~/.config/atuin/config.toml
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Run `chezmoi apply ~/.config/atuin/config.toml` after editing the
|
|
41
|
-
defaults; `dot doctor` reports the count of deployed patterns and
|
|
42
|
-
fails loud if the block is missing.
|
|
43
|
-
|
|
44
|
-
## What's filtered by default
|
|
45
|
-
|
|
46
|
-
The audited baseline covers:
|
|
47
|
-
|
|
48
|
-
- Generic env-var exports: `^export (SECRET|TOKEN|PASSWORD|API_KEY|AWS_)`,
|
|
49
|
-
`^PASSWORD=`, `^[A-Z_]+_TOKEN=`, `^[A-Z_]+_KEY=`.
|
|
50
|
-
- Cloud provider auth: `aws ... configure|auth|login`, `gcloud auth ...`,
|
|
51
|
-
`az login`, `kubectl ... --kubeconfig`.
|
|
52
|
-
- AI provider keys: Anthropic, OpenAI, Gemini, Mistral.
|
|
53
|
-
- SaaS secrets: Stripe, GitHub PAT (`GH_TOKEN`, `GITHUB_TOKEN`), `NPM_TOKEN`,
|
|
54
|
-
`CARGO_REGISTRY_TOKEN`.
|
|
55
|
-
- Authorization headers (`curl -H 'Authorization: ...'`).
|
|
56
|
-
- Embedded creds in git URLs (`git clone https://user:pass@...`).
|
|
57
|
-
- Secret managers: `vault`, `op` (1Password), `chamber`.
|
|
58
|
-
- Key material: `ssh-keygen`, `ssh-add`, `gpg --import|--export-secret`,
|
|
59
|
-
`age -d|-e --passphrase`.
|
|
60
|
-
- DB connection strings with inline creds
|
|
61
|
-
(`postgres|mysql|mongodb|redis://user:pass@host`).
|
|
62
|
-
|
|
63
|
-
See `.chezmoidata/secrets-patterns.toml` for the canonical list.
|
|
64
|
-
|
|
65
|
-
## Adding per-host patterns
|
|
66
|
-
|
|
67
|
-
Each contributor or machine can extend the list without editing the
|
|
68
|
-
shared template. In `~/.config/chezmoi/chezmoi.toml`:
|
|
69
|
-
|
|
70
|
-
```toml
|
|
71
|
-
[data.atuin.history_filter]
|
|
72
|
-
extra = [
|
|
73
|
-
"^my-private-tool ",
|
|
74
|
-
"^OUR_CORP_API_KEY=",
|
|
75
|
-
"tailscale up --auth-key=",
|
|
76
|
-
]
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
Then re-apply:
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
chezmoi apply ~/.config/atuin/config.toml
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
The `extra` patterns are appended to the defaults in the deployed
|
|
86
|
-
config.
|
|
87
|
-
|
|
88
|
-
## Adding a pattern to the project defaults
|
|
89
|
-
|
|
90
|
-
Edit `.chezmoidata/secrets-patterns.toml` and add a regex to
|
|
91
|
-
`[atuin.history_filter].defaults`. Then:
|
|
92
|
-
|
|
93
|
-
1. Add a fixture command to `tests/unit/secrets/test_atuin_history_filter.sh`
|
|
94
|
-
under `LEAKED_FIXTURES` — your new pattern must catch at least one
|
|
95
|
-
real-shape command.
|
|
96
|
-
2. Run the test: `bash tests/unit/secrets/test_atuin_history_filter.sh`.
|
|
97
|
-
3. Add a benign-fixture if your regex is broad enough to risk false
|
|
98
|
-
positives.
|
|
99
|
-
4. Open a PR; CI runs the same test.
|
|
100
|
-
|
|
101
|
-
## Trade-offs
|
|
102
|
-
|
|
103
|
-
`history_filter` is a deny-list. Two classes of failure to design
|
|
104
|
-
around:
|
|
105
|
-
|
|
106
|
-
- **False positives**: an overly broad regex hides commands the user
|
|
107
|
-
needs to recall. Mitigation: every new pattern must include a
|
|
108
|
-
fixture under `BENIGN_FIXTURES` that the regex correctly does *not*
|
|
109
|
-
match.
|
|
110
|
-
- **False negatives**: a new secret format ships, no pattern matches,
|
|
111
|
-
the secret lands in history. Mitigation: the OpenSSF Scorecard
|
|
112
|
-
workflow (issue #869) and the nightly drift detector (#875) will
|
|
113
|
-
surface new exposure surfaces; review them quarterly.
|
|
114
|
-
|
|
115
|
-
`history_filter` does not replace:
|
|
116
|
-
|
|
117
|
-
- A real secret manager (`age`/`sops`, 1Password, Vault) — see
|
|
118
|
-
`docs/security/ENCRYPTION.md`.
|
|
119
|
-
- Pre-commit `gitleaks` / `detect-secrets` scans — see
|
|
120
|
-
`config/pre-commit-config.yaml`.
|
|
121
|
-
- Server-side audit logging — see `docs/security/COMPLIANCE.md`.
|
|
122
|
-
|
|
123
|
-
It's the last line of defence against accidental command-line capture,
|
|
124
|
-
not the first.
|
|
125
|
-
|
|
126
|
-
## References
|
|
127
|
-
|
|
128
|
-
- Atuin config schema: <https://atuin.sh/docs/config>
|
|
129
|
-
- Chezmoi template data: <https://www.chezmoi.io/reference/templates/>
|
|
130
|
-
- Issue #872 (this hardening)
|
|
131
|
-
- `tests/unit/secrets/test_atuin_history_filter.sh` (pattern-coverage test)
|
|
132
|
-
- `scripts/diagnostics/doctor.sh` — "Atuin History Filter" section
|