How are secrets protected in transit and in logs, and what are the limits?
IntermediateConceptSecrets, Variables, Environments & Permissions
Answer
Secrets are encrypted client-side with a libsodium sealed box using the repo or org public key before upload, stored encrypted, and decrypted only when sent to a runner for a job that references them. The runner masks exact values in logs. Limits: 48 KB per secret, 100 secrets per repository, 100 per environment, 1,000 per organization. For larger blobs (certificates, kubeconfigs), store an encryption passphrase as the secret and commit the encrypted file, or better, fetch at runtime from a cloud secret manager via OIDC.
More on Secrets, Variables, Environments & Permissions
Where can secrets be defined, and what is the precedence?BeginnerAre secrets available to every step automatically?BeginnerWhy is it a bad idea to store structured data like JSON or a whole `.env` file as one secret?IntermediateWhat is an environment, and which protection rules can it have?BeginnerWhen does a job wait for environment approval, and what does the reviewer see?IntermediateHow do deployment branch policies interact with tags and `workflow_dispatch`?Advanced