Skip to content

Commit 6e5b3d4

Browse files
committed
Document support for bearer token authentication over https in gitrepositories
Signed-off-by: Christian Ihle <blurpy@gmail.com>
1 parent e0d9585 commit 6e5b3d4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/spec/v1beta2/gitrepositories.md

+17
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,23 @@ data:
131131
password: <BASE64>
132132
```
133133

134+
#### Bearer token authentication
135+
136+
To authenticate towards a Git repository over HTTPS using bearer token
137+
authentication (in other words: using a `Authorization: Bearer` header), the referenced
138+
Secret is expected to contain the token in `.data.bearerToken`.
139+
140+
```yaml
141+
---
142+
apiVersion: v1
143+
kind: Secret
144+
metadata:
145+
name: bearer-token-auth
146+
type: Opaque
147+
data:
148+
bearerToken: <BASE64>
149+
```
150+
134151
#### HTTPS Certificate Authority
135152

136153
To provide a Certificate Authority to trust while connecting with a Git

0 commit comments

Comments
 (0)