-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Missing SSL certificate store in Docker image? #731
Comments
I am able to get curl to work by adding the following docker volume, which seems like it should not be necessary: |
I think it is intended that CA certificates are not bundled in because the app is never intended to make outgoing requests. Bundling CA certificates also brings in additional security load on auditing, handling possible revocations and prevent customizations. I checked similar projects like ntfy doesn't look like they include it either. You should be able to just build a new container by a Dockerfile using the official image as the base and just install new packages. I will retag it as feature request, I think this is not a bug as bring able to cURL out from the stock container is not a design feature. I don't think we should include it in stock but if enough people request it we can consider releasing an extra version of docker release with a more sane environment for plugins and interactive CLI use, etc. |
I think this should be resolved with a new release of gotify/server. As the new dockerfile installs ca-certificates for all architectures. I'll do this on the weekend. |
Thank you. Let me know if you need any help testing. I think it would be ideal that the docker container has plugin support builtin with SSL certs by adding this package. |
@mmomjian Could you verify that it works with the latest version 2.6.0? For me it does.
|
Hello, I can run it on the command line as you showed, but when I update my instance I get this error on startup:
|
Please show your config.yml if you have one. |
Nvm. can reproduce it with:
|
I use env vars, but I do have that one set. However even when I removed all the env vars it still seemed to not work. I can do some more debugging if needed.
|
@mmomjian Could you try out 2.6.1? |
Hello, Now I am getting this (2.6.1)
|
I think this is an issue with the underlying plugin at this point, as if I remove it from the plugins folder it starts up ok. I can open an issue with the plugin unless there are any changes in 2.6.x that could cause this bug |
Plugins are only compatible for one gotify version, so after each gotify/server update you have to update all plugins. |
Thank you for the fix! Sorry I forgot to reply |
Hello, I am trying to setup the gotify2telegram bot but kept getting x509 cert errors for api.telegram.org in the logs. I dug further and I am not able to validate any external SSL certs using the command line with the latest arm64 docker image of Gotify. Is this a known issue and is there any workaround?
Can the issue be reproduced with the latest available release? yes
Which one is the environment gotify server is running in?
Docker startup command or config file here (please mask sensitive information)
Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)
On which client do you experience problems? (Select as many as you can see)
Docker shell
What did you do?
Run a static curl command, sourced from https://github.com/moparisthebest/static-curl
What did you expect to see?
Ability to curl outside websites
What did you see instead? (Include screenshots, android logcat/request dumps if possible)
The text was updated successfully, but these errors were encountered: