Skip to content

Commit

Permalink
Merge pull request #1000 from blurpy/feature/git_bearer_token
Browse files Browse the repository at this point in the history
Document support for bearer token authentication over https in gitrepositories
  • Loading branch information
darkowlzz authored Jan 24, 2023
2 parents 04b06dd + 51bb596 commit 9dc4271
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/spec/v1beta2/gitrepositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9dc4271

Please sign in to comment.