Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm getting tons of TLS config reloaded messages when OPAL_LOG_TO_FILE is true #656

Open
ojecborec opened this issue Sep 16, 2024 · 0 comments · May be fixed by #657
Open

I'm getting tons of TLS config reloaded messages when OPAL_LOG_TO_FILE is true #656

ojecborec opened this issue Sep 16, 2024 · 0 comments · May be fixed by #657
Labels
bug Something isn't working

Comments

@ojecborec
Copy link

Following is my docker compose permitio/opal-client:0.7.12 simplified settings

services:
  opal-client:
    image: permitio/opal-client:0.7.12
    environment:
      - OPAL_LOG_TO_FILE=true
      - OPAL_LOG_FILE_PATH=/opal/opal-client.log
      - OPAL_INLINE_OPA_CONFIG={"log_level":"info","tls_cert_file":"/opal/opa-cert.crt","tls_private_key_file":"/opal/opa-private.key","addr":"http://localhost:8181,https://0.0.0.0:8282"}
      - OPAL_INLINE_OPA_LOG_FORMAT=http
      - $ROOT_DIR/opa-private.key:/opal/opa-private.key
      - $ROOT_DIR/opa-cert.crt:/opal/opa-cert.crt

As log as OPAL_LOG_TO_FILE=false everything is fine. Once I change to OPAL_LOG_TO_FILE=true I'm getting a lot of TLS messages

opal-client-1  | 2024-09-16T08:12:54.952078+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.952322+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.952561+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.952802+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.953033+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.953305+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.953601+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.953928+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.954264+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.954594+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.954913+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.955241+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.955590+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
opal-client-1  | 2024-09-16T08:12:54.955939+0000 | 25 | opal_client.engine.logger               | INFO  | TLS config reloaded  {"cert-file": "/opal/opa-cert.crt", "cert-key-file": "/opal/opa-private.key", "time": "2024-09-16T08:12:54Z"}
@ojecborec ojecborec added the bug Something isn't working label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant