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

Make CertFile and KeyFile relative to CustomPath (#9868) #9874

Merged
merged 1 commit into from
Jan 19, 2020

Conversation

zeripath
Copy link
Contributor

Backport #9868

  • Make CertFile and KeyFile relative to CustomPath

The current code will absolute CertFile and KeyFile against the current working directory. This is quite unexpected for users. This code makes relative paths absolute against the CustomPath.

Fix #4196

  • Improve error reporting when reading certificates

  • Apply suggestions from code review

Co-Authored-By: guillep2k [email protected]

Co-authored-by: guillep2k [email protected]

* Make CertFile and KeyFile relative to CustomPath

The current code will absolute CertFile and KeyFile against the current working directory. This is quite unexpected for users. This code makes relative paths absolute against the CustomPath.

Fix go-gitea#4196

* Improve error reporting when reading certificates

* Apply suggestions from code review

Co-Authored-By: guillep2k <[email protected]>

Co-authored-by: guillep2k <[email protected]>
@zeripath zeripath added type/bug pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! labels Jan 19, 2020
@zeripath zeripath added this to the 1.11.0 milestone Jan 19, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jan 19, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 19, 2020
@6543 6543 mentioned this pull request Jan 19, 2020
@6543
Copy link
Member

6543 commented Jan 19, 2020

ping lgtm

@zeripath zeripath merged commit bcb722d into go-gitea:release/v1.11 Jan 19, 2020
@zeripath zeripath deleted the backport-9868 branch January 19, 2020 20:29
@mrsdizzie mrsdizzie mentioned this pull request Apr 2, 2020
7 tasks
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants