Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit e631d41

Browse files
authored
Merge pull request #40560 from thaJeztah/19.03_backport_33434_api_doc_base64url
[19.03 backport] Update API docs to specify using base64url Upstream-commit: 56399cdacf5edd4bd8ae2c1993b10342105fa1a9 Component: engine
2 parents ec69262 + b029f96 commit e631d41

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

components/engine/api/swagger.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ info:
6565
6666
# Authentication
6767
68-
Authentication for registries is handled client side. The client has to send authentication details to various endpoints that need to communicate with registries, such as `POST /images/(name)/push`. These are sent as `X-Registry-Auth` header as a Base64 encoded (JSON) string with the following structure:
68+
Authentication for registries is handled client side. The client has to send authentication details to various endpoints that need to communicate with registries, such as `POST /images/(name)/push`. These are sent as `X-Registry-Auth` header as a [base64url encoded](https://tools.ietf.org/html/rfc4648#section-5) (JSON) string with the following structure:
6969
7070
```
7171
{
@@ -3639,7 +3639,7 @@ definitions:
36393639
com.example.some-other-label: "some-other-value"
36403640
Data:
36413641
description: |
3642-
Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-3.2))
3642+
Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
36433643
data to store as secret.
36443644
36453645
This field is only used to _create_ a secret, and is not returned by
@@ -3689,7 +3689,7 @@ definitions:
36893689
type: "string"
36903690
Data:
36913691
description: |
3692-
Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-3.2))
3692+
Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
36933693
config data.
36943694
type: "string"
36953695
Templating:
@@ -6771,7 +6771,7 @@ paths:
67716771
required: false
67726772
- name: "X-Registry-Auth"
67736773
in: "header"
6774-
description: "A base64-encoded auth configuration. [See the authentication section for details.](#section/Authentication)"
6774+
description: "A base64url-encoded auth configuration. [See the authentication section for details.](#section/Authentication)"
67756775
type: "string"
67766776
- name: "platform"
67776777
in: "query"
@@ -6999,7 +6999,7 @@ paths:
69996999
type: "string"
70007000
- name: "X-Registry-Auth"
70017001
in: "header"
7002-
description: "A base64-encoded auth configuration. [See the authentication section for details.](#section/Authentication)"
7002+
description: "A base64url-encoded auth configuration. [See the authentication section for details.](#section/Authentication)"
70037003
type: "string"
70047004
required: true
70057005
tags: ["Image"]
@@ -8705,7 +8705,7 @@ paths:
87058705
type: "string"
87068706
- name: "X-Registry-Auth"
87078707
in: "header"
8708-
description: "A base64-encoded auth configuration to use when pulling a plugin from a registry. [See the authentication section for details.](#section/Authentication)"
8708+
description: "A base64url-encoded auth configuration to use when pulling a plugin from a registry. [See the authentication section for details.](#section/Authentication)"
87098709
type: "string"
87108710
- name: "body"
87118711
in: "body"
@@ -8870,7 +8870,7 @@ paths:
88708870
type: "string"
88718871
- name: "X-Registry-Auth"
88728872
in: "header"
8873-
description: "A base64-encoded auth configuration to use when pulling a plugin from a registry. [See the authentication section for details.](#section/Authentication)"
8873+
description: "A base64url-encoded auth configuration to use when pulling a plugin from a registry. [See the authentication section for details.](#section/Authentication)"
88748874
type: "string"
88758875
- name: "body"
88768876
in: "body"
@@ -9563,7 +9563,7 @@ paths:
95639563
foo: "bar"
95649564
- name: "X-Registry-Auth"
95659565
in: "header"
9566-
description: "A base64-encoded auth configuration for pulling from private registries. [See the authentication section for details.](#section/Authentication)"
9566+
description: "A base64url-encoded auth configuration for pulling from private registries. [See the authentication section for details.](#section/Authentication)"
95679567
type: "string"
95689568
tags: ["Service"]
95699569
/services/{id}:
@@ -9722,7 +9722,7 @@ paths:
97229722
type: "string"
97239723
- name: "X-Registry-Auth"
97249724
in: "header"
9725-
description: "A base64-encoded auth configuration for pulling from private registries. [See the authentication section for details.](#section/Authentication)"
9725+
description: "A base64url-encoded auth configuration for pulling from private registries. [See the authentication section for details.](#section/Authentication)"
97269726
type: "string"
97279727

97289728
tags: ["Service"]

0 commit comments

Comments
 (0)