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
Cleaned up docker locally for breaking change in postgres image
Recently, the docker image's default security config was changed because it defaulted to super insecure settings:
docker-library/postgres#580
We didn't care about that since we were only using it locally for testing. Updating the Makefiles for auth related services to work with newer versions of the docker postgres image. Also cleaned up some of authn's use of PG_URL so there was less inconsistency and hard-codedness.
Signed-off-by: Tyler Cloke <tylercloke@gmail.com>
Copy file name to clipboardExpand all lines: components/authn-service/Makefile
+2-2
Original file line number
Diff line number
Diff line change
@@ -50,11 +50,11 @@ test:
50
50
51
51
test_with_db:
52
52
@docker ps | grep authn-postgres || (echo "Docker postgres not up. Run 'make setup_docker_pg' and try this command again.";exit 1)
53
-
@PG_URL="postgresql://postgres@127.0.0.1:5432/authn_test?sslmode=disable&timezone=UTC" go test -cover -count=1 -parallel=1 -p 1 $(packages)
53
+
@PGTZ=UTC PG_URL="postgresql://postgres@127.0.0.1:5432/authn_test?sslmode=disable&password=docker" go test -cover -count=1 -parallel=1 -p 1 $(packages)
54
54
@echo "Docker containers still up, run 'make kill_docker_pg' to bring them down or test again with make test_with_db."
0 commit comments