ory / oathkeeper

A cloud native Identity & Access Proxy / API (IAP) and Access Control Decision API that authenticates, authorizes, and mutates incoming HTTP(s) requests. Inspired by the BeyondCorp / Zero Trust white paper. Written in Go.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=hydra
Apache License 2.0
3.2k stars 349 forks source link

Oathkeeper docker-compose.yml outdated env vars #1164

Open cerealkill opened 2 months ago

cerealkill commented 2 months ago

Preflight checklist

Ory Network Project

No response

Describe the bug

Oathkeeper default docker-compose.yml have outdated metric variables

Reproducing the bug

git clone git@github.com:ory/oathkeeper.git
cd oathkeeper
docker compose up

Relevant log output

oathkeeper                  | {"audience":"application","error":{"message":"missing port in address","stack_trace":"stack trace could not be recovered from error type *net.AddrError"},"level":"fatal","msg":"Unable to initialize Tracer for Oathkeeper.","service_name":"ORY Oathkeeper","service_version":"v0.40.7","time":"2024-05-14T09:19:08.243127416Z"}

Relevant configuration

services:
  oathkeeper:
    environment:
      - TRACING_PROVIDER=jaeger
      - TRACING_PROVIDER_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling
      - TRACING_PROVIDER_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831
      - TRACING_PROVIDER_JAEGER_SAMPLING_TYPE=const
      - TRACING_PROVIDER_JAEGER_SAMPLING_VALUE=1

Version

0.40.7

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker Compose

Additional Context

Env vars changed, to fix just change to:

services:
  oathkeeper:
    environment:
      - TRACING_PROVIDER=jaeger
      - TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL: http://jaeger:5778/sampling
      - TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS: jaeger:6831