-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: changes to direct auth filter in zipkin-eureka test image (#3699
) Formerly, we didn't test the authenticated side, so some review drift passed even though authenticating would crash on startup: ``` Parameter 0 of method filterChain in zipkin.test.EurekaSecurity required a bean of type 'org.springframework.security.config.annotation.web.builders.HttpSecurity' that could not be found. ``` This uses a simple auth filter instead of spring-security which also causes csrf and cors handling as well special handling of actuator used int the health check. Signed-off-by: Adrian Cole <adrian@tetrate.io>
- Loading branch information
1 parent
5ff651f
commit 10e0458
Showing
4 changed files
with
73 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# Copyright 2015-2024 The OpenZipkin Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
|
||
# uses 2.4 so we can use condition: service_healthy | ||
version: "2.4" | ||
|
||
# Test both authenticated and unauthenticated, as if there is a Spring problem, | ||
# the latter will crash. We only need to use HEALTHCHECK for this. | ||
services: | ||
eureka: | ||
image: openzipkin/zipkin-eureka:test | ||
container_name: eureka | ||
sut: | ||
image: openzipkin/zipkin-eureka:test | ||
container_name: sut | ||
environment: | ||
EUREKA_USERNAME: testuser | ||
EUREKA_PASSWORD: testpassword | ||
depends_on: | ||
eureka: | ||
condition: service_healthy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters