Export / Import Configuration Via GIT Repository
Prerequisites
To establish a new Git repository, an initial branch (such as "main" or "master") is required.
Setting up SSH connection to GIT
The integration of FIXICC H2 and a GIT repository is facilitated through SSH. First, the appropriate SSH key must be generated and installed into the environment where FIXICC H2 is installed. This could be a docker container, cloud, or a dedicated server.
In addition, the SSH key should be authorized in the GIT lab repository.
Detailed instructions for this process can be found here:
Authorizing an SSH key for use with SAML single sign-on - GitHub Enterprise Cloud Docs
Adding the Connection to Property File
The connection to the GIT repository is established in the ““/etc/fixicc-h2/local.app.property” file using the following parameter: fixicch2.git.url=GIT@<path_to_GIT_server>/<path_to_GIT_repository>
Once an authorized connection between FIXICC H2 and the GIT repository is established, the export and import functionality becomes accessible through the FIXICC H2 UI.
Connection to GIT for RPM Installation
NOTE!
All commands should be executed with sudo privileges.
Create the .ssh directory
sudo mkdir -p /home/fixicc-h2/.ssh
Set the temporary permissions for the .ssh directory
sudo chmod 777 /home/fixicc-h2/.ssh
Scan the SSH keys from the remote server and append them to known_hosts
sudo ssh-keyscan -H git.epam.com >> /home/fixicc-h2/.ssh/known_hosts
Generate the SSH key pair
Change the ownership of the .ssh directory and its contents
Set the permissions (the owner has read and write permissions, and no one else has any permissions) for the known_hosts file and for the .ssh directory (the owner has read, write, and execute permissions, and no one else has any permissions):
Add the SSH key to GitLab. The SSH key (public) can be obtained with the following command
Stop the fixicc-h2 service
Start the fixicc-h2 service
Setting up configurations
Servers can be configured one time in GIT settings for more convenient usage.