Security and Troubleshooting
Security Best Practices
- Never commit
.env to version control
- Use
.env.example as a template
- Rotate tokens regularly
- Use minimal permissions
- Set token expiration dates
- Store sensitive values securely
- Do not share tokens
Troubleshooting
- Check that
MISE_GITHUB_TOKEN is set correctly
- Verify required permissions (
repo, read:packages)
- Check for token expiration
AWS commands fail with authentication errors
- Verify AWS credentials are configured (host machine or
.env)
- Check credential file format:
~/.aws/credentials
- Ensure
AWS_DEFAULT_REGION is set if using environment variables
Web service cannot connect to API
- Verify
PUBLIC_API_URL points to the correct host and port
- Check that the API service is running
- Verify network connectivity between services