You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2025. It is now read-only.
- Drop Authorization headers only for Basic auth.
- Add support for GitHub Container registry.
- Jackson MessageConverter support for text/plain. The Github CR response's media-type is always text/plain although the content is in JSON
- Normalize Azure redirect URI
- Add Container Registries IT tests
- Add SCDF image build configuration
- Fix docker compose debug conf for build pack images
Resolves#4412
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-container-registry/src/main/java/org/springframework/cloud/dataflow/container/registry/ContainerImageRestTemplateFactory.java
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-container-registry/src/main/java/org/springframework/cloud/dataflow/container/registry/authorization/DropAuthorizationHeaderRequestRedirectStrategy.java
+55-16Lines changed: 55 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2020-2020 the original author or authors.
2
+
* Copyright 2020-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -32,33 +32,48 @@
32
32
importorg.apache.http.protocol.HttpContext;
33
33
34
34
/**
35
-
* The Amazon S3 API supports two Authentication Methods (https://amzn.to/2Dg9sga):
36
-
* (1) HTTP Authorization header and (2) Query string parameters (often referred to as a pre-signed URL).
35
+
* Both Amazon and Azure Container Registry services require special treatment for the Authorization headers when the
36
+
* HTTP request are forwarded to 3rd party services.
37
37
*
38
-
* But only one auth mechanism is allowed at a time. If the http request contains both an Authorization header and
39
-
* an pre-signed URL parameters then an error is thrown.
38
+
* Amazon:
39
+
* The Amazon S3 API supports two Authentication Methods (https://amzn.to/2Dg9sga):
40
+
* (1) HTTP Authorization header and (2) Query string parameters (often referred to as a pre-signed URL).
40
41
*
41
-
* Container Registries often use AmazonS3 as a backend object store. If HTTP Authorization header
42
-
* is used to authenticate with the Container Registry and then this registry redirect the request to a S3 storage
43
-
* using pre-signed URL authentication, the redirection will fail.
42
+
* But only one auth mechanism is allowed at a time. If the http request contains both an Authorization header and
43
+
* an pre-signed URL parameters then an error is thrown.
44
44
*
45
-
* Solution is to implement a HTTP redirect strategy that removes the original Authorization headers when the request is
46
-
* redirected toward an Amazon signed URL.
45
+
* Container Registries often use AmazonS3 as a backend object store. If HTTP Authorization header
46
+
* is used to authenticate with the Container Registry and then this registry redirect the request to a S3 storage
47
+
* using pre-signed URL authentication, the redirection will fail.
48
+
*
49
+
* Solution is to implement a HTTP redirect strategy that removes the original Authorization headers when the request is
50
+
* redirected toward an Amazon signed URL.
51
+
*
52
+
* Azure:
53
+
* Azure have same type of issues as S3 so header needs to be dropped as well.
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server/src/test/java/org/springframework/cloud/dataflow/integration/test/DataFlowIT.java
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -288,6 +288,41 @@ public void applicationMetadataDockerTests() {
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server/src/test/java/org/springframework/cloud/dataflow/integration/test/util/DockerComposeFactory.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,12 @@ public class DockerComposeFactory {
0 commit comments