Quick Reference
dsec Commands (Wrappers - Recommended)
| Command | Description |
|---|---|
|
Load secrets (safe wrapper) |
|
Clear ALL loaded secrets |
|
Short alias for dsource |
|
Short alias for dsunsource |
Domain Access Control (Who Can Access What)
| Domain | Access | Restrict |
|---|---|---|
d000 (yours) |
FULL access to everything |
N/A |
d001+ (clients) |
All standard tiers (lab, dev, staging, prod) |
|
# Your stuff - always works
dsec show d000 dev/network # ✓
# Client stuff - all standard tiers allowed
dsec show d001 dev/network # ✓
dsec show d001 prod # ✓
# Restrict to lab-only if needed
DSEC_ALLOWED_TIERS="lab" dsec show d001 prod # ✗ BLOCKED
dsec Commands (Direct)
| Command | Description |
|---|---|
|
List all domains and tiers |
|
Initialize new domain |
|
Add secrets from file |
|
Edit encrypted file |
|
Display decrypted content |
|
Load to project directory |
|
Securely remove .env |
|
Install shell wrappers |
|
Enable passphrase protection |
dsec Utility Commands (v2.0.0+)
| Command | Description |
|---|---|
|
Show secrets status (domains, loaded env) |
|
Verify all files decrypt correctly |
|
Display domain/environment tree |
|
Count secrets across domains |
|
Backup entire secrets directory |
|
Show version and codename |
Vault Commands
| Command | Description |
|---|---|
|
Mount gocryptfs vault |
|
Unmount vault |
|
Show vault status |
|
Unmount all vaults |
LUKS Commands
| Command | Description |
|---|---|
|
Open and mount LUKS drive |
|
Unmount and close LUKS |
|
Backup to cold storage |
SSH Commands
| Command | Description |
|---|---|
|
Connect to host |
|
Verbose connection |
|
Export YubiKey resident keys |
|
Show key fingerprint |
|
Deploy key to host |
YubiKey Commands
| Command | Description |
|---|---|
|
Show YubiKey status |
|
FIDO2 status |
|
List FIDO2 credentials |
|
Change FIDO2 PIN |
gopass Commands
| Command | Description |
|---|---|
|
Display password |
|
Copy to clipboard |
|
Generate new password |
|
Edit password entry |
|
List all entries |
|
Sync with git remote |
Age Commands
| Command | Description |
|---|---|
|
Encrypt file |
|
Decrypt file |
|
Generate new identity |
SSL/TLS Certificate Extraction
Extract self-signed certificates from services for verification:
# Extract cert (creates dir if missing, skips if exists)
CERT=~/.secrets/certs/<domain>/ise_dataconnect.crt
[ -f "$CERT" ] || {
mkdir -p "$(dirname "$CERT")" && \
echo | openssl s_client -connect host:port 2>&1 | \
sed -n '/BEGIN CERT/,/END CERT/p' > "$CERT"
}
| Command | Description |
|---|---|
|
Connect and show cert chain |
|
Display cert details |
|
Check expiry dates |
|
Verify against system CA store |
gocryptfs Commands
| Command | Description |
|---|---|
|
Initialize new vault |
|
Mount vault |
|
Unmount vault |
|
List mounted vaults |
LUKS Direct Commands
| Command | Description |
|---|---|
|
Open LUKS container |
|
Close LUKS container |
|
Create LUKS container |
|
Backup LUKS header |
File Locations
| Path | Contents |
|---|---|
|
Age-encrypted hot storage |
|
Custom scripts (dsec, age-edit, etc.) |
|
Age identity (master.age.key) |
|
Domain secrets (d000, d001…) |
|
SSH keys and config |
|
gocryptfs encrypted vaults |
|
Vault mount points |
Key Files
| File | Purpose |
|---|---|
|
Age identity (CRITICAL - never commit) |
|
Domain registry mapping |
|
YubiKey SSH key handle |
|
Vault master keys (CRITICAL) |
|
GPG keyring |