Before you start#
An account is your personal identity at a service. A credential proves access; keep its secret part private. A password manager encrypts unique passwords and recovery information. Two-factor authentication (2FA) asks for another proof after a password. Keep an approved setup that already works; the steps below explain missing setup.
| Item | Boundary |
|---|---|
| Password, token, recovery code | Approved private secret store; never a public record |
| SSH private key | Stays private on its computer |
| SSH public key (the .pub file) | May be given to the named service |
| Example settings file | Setting names and fictional values only |
A token authorizes service access. An SSH key pair separates the public key from the private proof. A passphrase is a password protecting the private-key file; it does not make the file safe to share. Git's ignore rule prevents recording selected files; it is not encryption or permission to disclose their contents.
A fictional token has entered a public commit. Would deleting that file stop someone using the token? Decide the containment action before the explanation.
Why deleting the file is insufficient
Copies and history can retain it. The service must disable or replace the exposed credential. Preserve evidence with credentials and private details removed and use the private reporting route. This is a fictional decision; do not disable a healthy account to practise.
Keep private keys private even when protected by a passphrase. Use fictional values in example files.