Skip to content

Commit

Permalink
Document support for bearer token authentication over https in gitrep…
Browse files Browse the repository at this point in the history
…ositories

Signed-off-by: Christian Ihle <[email protected]>
  • Loading branch information
blurpy authored and darkowlzz committed Jan 24, 2023
1 parent 04b06dd commit 51bb596
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 51bb596

Please sign in to comment.