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

Gateway doesn't work after token refresh #862

Open
teon opened this issue Nov 20, 2024 · 1 comment
Open

Gateway doesn't work after token refresh #862

teon opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@teon
Copy link
Contributor

teon commented Nov 20, 2024

  1. Pressing "Edit location settings" -> this already leads to the fact that the authentication token is different one.
  2. After that restart defguard core service.
  3. After that on the gateways you will start to see following logs:
defguard-gateway: [2024-11-20T10:38:24Z ERROR defguard_gateway::gateway] Couldn't retrieve gateway configuration from the core. Using gRPC URL: https://XXXXX:444/. Retrying in 10s. Error: status: Unauthenticated, message: "Invalid token", details: [], metadata: MetadataMap { headers: {"server": "nginx/1.22.1", "date": "Wed, 20 Nov 2024 10:38:24 GMT", "content-type": "application/grpc", "content-length": "0"} }
  1. Then you update the authentication token to the new one, restart defguard-gateway service on the gateway node, everything starts to work again.
@teon teon converted this from a draft issue Nov 20, 2024
@teon teon added the bug Something isn't working label Nov 20, 2024
@teon teon moved this to Refined & Ready in Backlog & Roadmap Nov 20, 2024
@t-aleksander t-aleksander self-assigned this Nov 21, 2024
@t-aleksander t-aleksander moved this from Refined & Ready to In Progress in Backlog & Roadmap Nov 21, 2024
@t-aleksander t-aleksander moved this from In Progress to Testing in Backlog & Roadmap Nov 21, 2024
@voyvodov
Copy link

I think that generally the tokens should not refresh with every click on save or editing something in the location. Generate it once the location is created.
If needs to be refresh that must be manually and only if admin wants to do so (e.g. have a generate button)

@teon teon moved this from Testing to Done in Backlog & Roadmap Nov 22, 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
Status: Done
Development

No branches or pull requests

3 participants