Replies: 8 comments
-
I believe I looked into the source code, the error happens when accessing gitlab server to list exiting hooks (Gitlab API), where should not throw an error like that - unless the gitlab server really uses en invalid TLS cert. Could you let me know if the issue still exists? If yes, could you manually access the URL in your browser to see if there's CERT validation warning. |
Beta Was this translation helpful? Give feedback.
-
Our GitLab uses a certificate provided by an internal certification authority, so the certificate is valid but I couldn't find any way to make the event source trust this certificate since it is just like using a self signed certificate, any ideas how to achieve that ? |
Beta Was this translation helpful? Give feedback.
-
If that's the case, one way I can think of is, you mount a volume with You can specify |
Beta Was this translation helpful? Give feedback.
-
I don't see how I can do it since I have no control over the deployment which is created by the controller. |
Beta Was this translation helpful? Give feedback.
-
Specifying |
Beta Was this translation helpful? Give feedback.
-
mounting a volume with .ssh/known_hosts to /etc/ssh was not going to work because eventsource pod is using https to contact GitLab and not ssh, so the certificate needs to be added to the system truststore. apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
name: gitlab
spec:
service:
ports:
- port: 12000
targetPort: 12000
gitlab:
demo:
projectID: "12383"
webhook:
endpoint: /push
port: "12000"
method: POST
url: http://gitlab-event-source.mydomain
events:
- PushEvents
- TagPushEvents
accessToken:
key: token
name: gitlab-access
enableSSLVerification: false
gitlabBaseURL: https://gitlab.mydomain
template:
container:
volumeMounts:
- name: certs-volume
mountPath: /etc/ssl/certs
volumes:
- name: certs-volume
configMap:
name: ca-certificates Thank you @whynowy for your help, you pointed me to the right direction :-) |
Beta Was this translation helpful? Give feedback.
-
@mchebitou - converted to a discussion as I think it might help others. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
when I created a new gitlab eventsource I am getting the following error :
even though I have set enableSSLVerification to false.
I have also decoded the content of the variable EVENTSOURCE_OBJECT in the gitlab-eventsource deployment created by the controller and noticed that the enableSSLVerification parameter was ignored and is not even part of the passed configuration:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expecting the gitlab-eventsource pod to be up and running with a successful connection to Gitlab.
Environment (please complete the following information):
Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
Beta Was this translation helpful? Give feedback.
All reactions