You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently it's not possible to use git-cliff with a self-hosted GitLab instance that uses an own CA for example with self-signed certificates.
A possible solution would be to use the rustls-tls-native-roots feature instead of rustls-tls for reqwest or provide a similar CLI argument like uv in astral-sh/uv#2362
Steps To Reproduce
Setup a GitLab instance with a self-signed CA
Set GITLAB_REPO, GITLAB_TOKEN and GITLAB_API_URL environment variables
Run git-cliff
Expected behavior
git-cliff can request information from a self-hosted GitLab instance using an own CA cert chain
Screenshots / Logs
WARN git_cliff_core::changelog > You are using an experimental feature! Please report bugs at <https://git-cliff.org/issues>
ERROR git_cliff_core::changelog > Failed to lookup project! HTTP client with middleware error: `Middleware error: Request error: error sending request for url (https://xxx/api/v4/projects/xxx)`
thread 'main' panicked at git-cliff-core/src/changelog.rs:452:18:
Could not get gitlab metadata: HttpClientMiddlewareError(Middleware(Request error: error sending request for url (https://xxx/api/v4/projects/xxx)
Caused by:
0: error sending request for url (https://xxx/api/v4/projects/xxx)
1: client error (Connect)
2: invalid peer certificate: UnknownIssuer
Software information
Operating system: Debian Linux
Project version: 2.5.0 installed from PyPI
Additional context
No response
The text was updated successfully, but these errors were encountered:
The possible solution you recommended looks solid, would you be down to implement it? 🐻 I can also try it out but it would be easier if you already have an environment to test it out.
Is there an existing issue for this?
Description of the bug
Hi,
currently it's not possible to use git-cliff with a self-hosted GitLab instance that uses an own CA for example with self-signed certificates.
A possible solution would be to use the
rustls-tls-native-roots
feature instead ofrustls-tls
for reqwest or provide a similar CLI argument like uv in astral-sh/uv#2362Steps To Reproduce
Expected behavior
git-cliff can request information from a self-hosted GitLab instance using an own CA cert chain
Screenshots / Logs
Software information
Additional context
No response
The text was updated successfully, but these errors were encountered: