Repository navigation
copy SSL certificates from NC instance to ExApp upon install/update action - #448
Merged
Merged
Conversation
Signed-off-by: Oleksander Piskun <[email protected]>
Contributor
Author
|
the only thing that worries me is that we copy all the certificates from the bundle from the server, including the system ones. as far as I know, this shouldn't break anything, and this PR won't be backported, so we have plenty of time for testing until Nextcloud 31 get released. |
kyteinsky
reviewed
Nov 21, 2024
kyteinsky
reviewed
Nov 21, 2024
Signed-off-by: Alexander Piskun <[email protected]>
oleksandr-nc
force-pushed
the
feat/ssl-certificates-update
branch
from
December 26, 2024 11:45
7f7e394 to
1343bda
Compare
Signed-off-by: Oleksander Piskun <[email protected]>
oleksandr-nc
force-pushed
the
feat/ssl-certificates-update
branch
from
December 26, 2024 11:51
1343bda to
4d4c892
Compare
oleksandr-nc
enabled auto-merge
December 27, 2024 13:05
bigcat88
added a commit
to cloud-py-api/nc_py_api
that referenced
this pull request
Jan 19, 2025
After internal discussion with @kyteinsky when we tested this nextcloud/app_api#448 - it was found out that the `test-deploy` ExApp from AppAPI "Test Deploy" button action fails in such setups, since the Python library "httpx" ignores system certificates by default. reference: encode/httpx#302 Temporary workaround, until "httpx" will change it's behavior. --------- Signed-off-by: bigcat88 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the
updateCertificatesmethod to automate SSL certificate updates in Docker containers.It detects the container's OS, determines the correct certificate directory (e.g.,
/usr/local/share/ca-certificatesfor Debian), parses the Nextcloud certificate bundle, copies individual certificates into the container, and applies updates using OS-specific commands likeupdate-ca-certificates.Tested on Debian and Alpine.