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

Cannot connect to a self-hosted Gitlab instance with a self-signed cert #1007

Closed
1 task done
bal-stan opened this issue Jan 16, 2025 · 2 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@bal-stan
Copy link

bal-stan commented Jan 16, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

I need to connect to a self-hosted Gitlab instance with a self-signed certificate. However, even though I have added the cert to the OS trust store, git-cliff still fails with:

ERROR git_cliff_core::changelog > Failed to lookup project! HTTP client with middleware error: `error sending request for url (https://my-gitlab.domain.com/api/v4/projects/my%2Fproject)`
thread 'main' panicked at git-cliff-core/src/changelog.rs:458:18:
Could not get gitlab metadata: HttpClientMiddlewareError(Middleware(error sending request for url (https://my-gitlab.domain.com/api/v4/projects/my%2Fproject)

Caused by:
    0: client error (Connect)
    1: invalid peer certificate: UnknownIssuer))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I believe this is because rustls does not use the OS trust store.

Steps To Reproduce

export GITLAB_TOKEN=...
export GITLAB_API_URL=https://my-gitlab.domain.com/api/v4
git-cliff ... --gitlab-repo=my/project

Expected behavior

git-cliff command executes successfully.

Screenshots / Logs

No response

Software information

  • Operating system: Linux
  • Rust version: Not sure, installed via pip
  • Project version: 2.7.0

Additional context

No response

@bal-stan bal-stan added the bug Something isn't working label Jan 16, 2025
Copy link

welcome bot commented Jan 16, 2025

Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️

@bal-stan
Copy link
Author

Apologies, just realised this is a duplicate of #869.

@orhun orhun closed this as completed Jan 23, 2025
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
None yet
Development

No branches or pull requests

2 participants