kestra-io / plugin-git

Apache License 2.0
3 stars 4 forks source link

unable to connect to self hosted gitea repository #61

Open stumpf84 opened 7 months ago

stumpf84 commented 7 months ago

Feature description

When using a self hosted git repository using a self signed certificate it is not possible to use e.g. io.kestra.plugin.git.Sync.

Error:
2024-04-01 23:26:14.327
https://MYGITEA/MYUSER/Kestra-Test: Secure connection to https://MYGITEA/MYUSER/Kestra-Test could not be established because of SSL problems
2024-04-01 23:26:14.327
https://MYGITEA/MYUSER/Kestra-Test: Secure connection to https://MYGITEA/MYUSER/Kestra-Test could not be established because of SSL problems
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
unable to find valid certification path to requested target

I cannot find a way to trust the certificate. Normally I would use git config --global http.sslCAInfo ~/.git-certs/cert.pem

Possible solution: Property to trusted certificate in io.kestra.plugin.git.*