Objective
Configure a Cribl Stream remote Git repository without storing a plaintext password in .git/config.
Environment
- Cribl Stream Leader
- On-premises deployment with an external Git repository
- Basic authentication or a credential-bearing Remote URL
Procedure
- Rotate the Git password or token if it may already have been exposed.
- On the Cribl Stream Leader, create an SSH key pair from the CLI as the Cribl service user. Use a passphrase-protected private key when required by your security policy.
- Add the public key to the Git provider with permission to access the repository.
- Configure the Cribl remote repository to use the provider’s SSH URL and SSH authentication. Do not include a username, password, or token in the Remote URL.
- Complete passphrase-protected SSH configuration through the Leader CLI, because this capability is CLI-only.
- Configure and verify SSH host-key handling for the Git provider, then test a Git operation such as commit and push.
- Confirm that the remote URL in
.git/configcontains only the SSH URL and no plaintext password or token.
Additional Information
See Connect to External Git Repositories for the supported SSH URL format, SSH authentication, host-key setup, and remote-repository security considerations.
