Merge pull request #1000 from blurpy/feature/git_bearer_token

Document support for bearer token authentication over https in gitrepositories
This commit is contained in:
Sunny 2023-01-24 18:05:56 +05:30 committed by GitHub
commit 9dc4271d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -131,6 +131,23 @@ data:
password: <BASE64>
```
#### Bearer token authentication
To authenticate towards a Git repository over HTTPS using bearer token
authentication (in other words: using a `Authorization: Bearer` header), the referenced
Secret is expected to contain the token in `.data.bearerToken`.
```yaml
---
apiVersion: v1
kind: Secret
metadata:
name: bearer-token-auth
type: Opaque
data:
bearerToken: <BASE64>
```
#### HTTPS Certificate Authority
To provide a Certificate Authority to trust while connecting with a Git