A quick start to deploy a sidecar to a Linux machine.
This repo provides a script that help install the Cyral Sidecar via linux packages.
Please review the sidecar deployment for more information.
These instructions have been fully tested on the following operating systems:
- Ubuntu 20.04.2 LTS
- RHEL 8.3.0
- CentOS Linux release 8.3.2011
- Oracle Linux 8
NOTE: This script assumes that you have superuser privileges on the target machine.
- A Linux machine with at least 1 CPU, 4GB of RAM and 5GB of available disk space.
- You will either need to be root or have sudo permissions on the target machine in order to run the install script.
- Make sure curl and jq are installed on the target machine.
IMPORTANT: You must run the script as superuser!
- Open a terminal window in the location where you will install the sidecar.
- Export the environment variables
CYRAL_SIDECAR_ID
,CYRAL_CONTROL_PLANE
,CYRAL_SIDECAR_CLIENT_ID
andCYRAL_SIDECAR_CLIENT_SECRET
with the information from theCyral Templates
option in theDeployment
tab of your sidecar details. - Export the environment variable
CYRAL_SIDECAR_VERSION
with the desired sidecar version. - Run install-linux.sh as a super user.
Use the command below as an example:
sudo CYRAL_CONTROL_PLANE='<control plane url>' \
CYRAL_SIDECAR_ID='<sidecar id>' \
CYRAL_SIDECAR_CLIENT_ID='<client id>' \
CYRAL_SIDECAR_CLIENT_SECRET="<client secret>" \
CYRAL_SIDECAR_VERSION='<sidecar version>' \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/cyral-quickstart/quickstart-sidecar-linux/main/install-linux.sh)"
Otherwise you can do a git clone and execute the install:
git clone https://github.com/cyral-quickstart/quickstart-sidecar-linux.git
sudo CYRAL_CONTROL_PLANE='<control plane url>' \
CYRAL_SIDECAR_ID='<sidecar id>' \
CYRAL_SIDECAR_CLIENT_ID='<client id>' \
CYRAL_SIDECAR_CLIENT_SECRET="<client secret>" \
CYRAL_SIDECAR_VERSION='<sidecar version>' \
./install-linux.sh
- Download the sidecar binaries and store it on a preferred location (run the quick start installation procedure to download it).
- Export the environment variables
CYRAL_SIDECAR_ID
,CYRAL_CONTROL_PLANE
,CYRAL_SIDECAR_CLIENT_ID
andCYRAL_SIDECAR_CLIENT_SECRET
with the information from theCyral Templates
option in theDeployment
tab of your sidecar details. - Download the install-linux.sh to the target machine.
- Make the
install-linux.sh
executable:chmod +x install-linux.sh
- Use the
--local_package
argument to provide the location of the downloaded binaries.
sudo CYRAL_CONTROL_PLANE='<control plane url>' \
CYRAL_SIDECAR_ID='<sidecar id>' \
CYRAL_SIDECAR_CLIENT_ID='<client id>' \
CYRAL_SIDECAR_CLIENT_SECRET="<client secret>" \
CYRAL_SIDECAR_VERSION='<sidecar version>' \
./install-linux.sh --local_package=<binary_path>
A note on running multiple nodes of one sidecar, or multiple sidecars:
The installation steps on this page should be performed on any host that will be running a sidecar. Take care to note the difference between multiple instances of a sidecar vs. multiple sidecars:
-
If multiple hosts will be configured as instances of the same sidecar, then repeat the installation procedure using the settings you got in the steps above.
-
If you are planning to have each host operate as an individual sidecar (each with its own configuration in the Cyral control plane), then you will also need to repeat the steps above to get a unique Sidecar ID, Client ID, and Client Secret for each host.
Name | Default Value | Description |
---|---|---|
local_package |
Path to an already-downloaded Cyral sidecar RPM/DEB package to prevent the script from downloading a new one. |
Instructions for advanced deployment configurations are available for the following topics: