-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Self hosted, Self signed SSL certificates - gRPC token refresh errors #1029
Comments
Just to double check, you would like to use system-wide CA in all containers and want your containers to trust your custom CA, right? |
@nandor-magyar Yes exactly! I was able to somehow make it work by making modifications to docker-compose with trafeik ssl (the default one) plus injecting the certificate to dagent by making new dockerfile for it. But still this setup lacks grpc token refreshes (denied). |
This case the TLS termination is done by Traefik. It seems that is correct and agent already trusts the CA. Then the culprit should be somewhere else, did you check the logs of crux? https://docs.dyrector.io/self-managed/self-signed-certificates Edit: added the link to the related docs page. |
@nandor-magyar Thank you for this section! I'll check it today and if no problems occurs I'll close this issue!! I really appreciate your work on that one <3 |
@nandor-magyar Unfortunately this documentation lacks a crucial amount of steps in order to make it work in 80%. Still I'm facing problem with refreshing token. No matter what I did was not able to get refresh token to work. In order to save time I'm including what I've tried to do and noticed: The token is 0 bytes long in persistence:
To debug this issue further please can you include some branch which has entire setup for self signed certificates working as a example? I'm willing to help resolve this issue as well as include PR for setting up self signed certificates more automatically. I've created fork and branch that has some of my changes implemented like separate docker-compose file for self signed ssl and script that automatically adds required cert to dagent at runtime: Branch Some more logs from different attempts: Making fresh install and trying to fetch token
Certificate looks valid:
Adding token manually and trying to execute dagent:
|
Could you please attach some logs from crux when token this happens? |
Sure thing, there you go! Crux logs after removing all persistence storage and revoking token:
dagent logs after that:
Just to be sure I've tried to pass |
I'm having a hard time implementing a custom SSL certificates to dyrectorio. I was able to change some trafeik config in docker-compose file and also add my custom CA to the trusted ones. To bypass dagent I needed to mount volume to dagent using my script on github gist
I'm able to login, deploy, and add node but after token expiry it crashes because on start I cannot get the token fetch.
Where should I look to fix it? I wanna make PR later when I'll clean up the cloned repository to enable other users of dyrectorio to also deploy self signed certificates. I would appreciate if someone has already did repo with those changes.
The text was updated successfully, but these errors were encountered: