smart_proxy_container_gateway 3.5.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9fcdcfa36eed1f6e070503c159281e5c72e07cfd2b78c7fd08fc67e852b2eadb
|
|
4
|
+
data.tar.gz: 834e6422b299d6e434c0cddd2923c3fa2d548109655221d8f259ff45e3becb0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ef2a0fe40e712fa60e3222a707cac996b279efab0410763191cf69e24679f6cfff5ea2c07263bcb5d7bdefc196706e502d67e52c5411411bf7172a446736634
|
|
7
|
+
data.tar.gz: 622dacf9d030aec24a60d3581bcb2dbf769bc9beb6d42a2544d0068dd70c10cddc176afe1241df22a8a34cfa29bc6db98b6a8bee650969678af2364c56786e77
|
|
@@ -5,8 +5,7 @@ module Proxy
|
|
|
5
5
|
class Plugin < ::Proxy::Plugin
|
|
6
6
|
plugin 'container_gateway', Proxy::ContainerGateway::VERSION
|
|
7
7
|
|
|
8
|
-
default_settings :
|
|
9
|
-
:katello_registry_path => '/v2/',
|
|
8
|
+
default_settings :katello_registry_path => '/v2/',
|
|
10
9
|
:sqlite_timeout => 30_000,
|
|
11
10
|
:db_max_connections => 30,
|
|
12
11
|
:db_pool_timeout => 30
|
|
@@ -181,11 +181,11 @@ module Proxy
|
|
|
181
181
|
get '/v2/token' do
|
|
182
182
|
response.headers['Docker-Distribution-API-Version'] = 'registry/2.0'
|
|
183
183
|
|
|
184
|
-
#
|
|
185
|
-
#
|
|
186
|
-
#
|
|
187
|
-
# param when inserting
|
|
188
|
-
if
|
|
184
|
+
# Flatpak client requests do not contain the account param that podman relies on.
|
|
185
|
+
# It contains Base64 encoded username in the Authorization header.
|
|
186
|
+
# We need to extract the username from the Authorization header and
|
|
187
|
+
# set it as the account param to be used when inserting new token record.
|
|
188
|
+
if flatpak_client? && auth_header.raw_header.present?
|
|
189
189
|
encoded_string = auth_header.raw_header&.split(' ')&.[](1)
|
|
190
190
|
decoded_string = Base64.decode64(encoded_string) if encoded_string.present?
|
|
191
191
|
username = decoded_string.split(':')[0] if decoded_string.present?
|