forked from AndreyMaximov/docker-jenkins-nginx-letsencrypt
-
Notifications
You must be signed in to change notification settings - Fork 3
Configure secure communication
Andrey Maximov edited this page Jun 1, 2021
·
2 revisions
- The installed conversion tool (see https://github.com/fivejars/vyva/wiki/Server-provisioning for details)
- An Open Y website with Virtual Y and Virtual Y Video Automation modules installed (see https://github.com/fivejars/vyva/wiki/Drupal-module-installation-and-configuration)
When you initiate a video processing on the Virtual Y side, the module triggers a job in Jenkins. In order to only let your website do that, you have to secure that job with the password.
- Log into Jenkins at the conversion tool server.
- Hover over the
VIDEO_PIPELINElink, click on the chevron icon, click on theConfigurelink. - At the top of page, click on the
Build Triggerslink and the page will scroll down. - Set the value of the
Authentication Tokenfield under theBuild Triggerssection. It's recommended if the value is long (16+ characters). Keep the value in secret, as it allows to trigger the conversion remotely.

- Save the changes.
- Log into you Virtual Y website.
- Go to Admin menu > Virtual Y > Virtual YMCA settings > Video Automation.
- Find the
AUTHENTICATION SETTINGSsections and set the value of its Domain field tohttps://%CONVERSION_TOOL_DOMAIN_NAME%/buildByToken/buildWithParameters?job=VIDEO_PIPELINE&token=%AUTHENTICATION_TOKEN%, where:-
%CONVERSION_TOOL_DOMAIN_NAME%is the domain name the conversion tool server is accessed at; -
%AUTHENTICATION_TOKEN%is the value you set in item 4.
-

- Submit the form.
On each step, a Video processing reports back to the Virtual Y website to keep the progress visible and create a Video node in the end. The reporting happens via a webhook the Video Automation module provides. When the webhook is called, some changes to the database happen. You must not allow anything but trusted applications to make those changes.
The same technique is used here - an authentication token.
- Log into your Virtual Y website.
- Go to Admin menu > Virtual Y > Virtual YMCA settings > Video Automation.
- Find the
WEBHOOK AUTHENTICATIONsections and set the value of its Token field. Keep it long and keep it in secret.

- Submit the form.
- Log into Jenkins at the conversion tool server.
- Hover over the
Workerlink in the sidebar, click on the chevron icon, click on theConfigurelink. - Scroll the form down to the Node Properties > Environment variables.
- There are 3 environment variables:
AUTH_PASS,AUTH_TOKEN,AUTH_USER. Popuplate theAUTH_TOKENvariable value with the token you set in item 3.

- Save the changes.