Skip to main content

Kurulum Dökümanı 24.2.3

Install Admin Dashboard

docker run -it -p 80:80 -p 443:443 -e VUE_APP_ENV_CUSTOM_URL=https://udentify-uat.private.cloud.fraud.com:8083/secure/ -e VUE_APP_ENV_CUSTOM_INSECURE_URL=https://udentify-uat.private.cloud.fraud.com:8083/ -v /opt/udentify/ui-certs:/etc/nginx/certs  -v /opt/udentify/default.conf:/etc/nginx/conf.d/default.conf registry.fraud.com/udentify/udentify-admin-dashboard-ui:25.1.0

Install Certificate Server

docker run -dit --restart=always -p 8080:8080 --env-file /opt/udentify/udentify-cc.env -v /opt/udentify/certs:/opt/udentify/certs registry.fraud.com/udentify/certificate-server:24.2.3
udentify-cc.env
UDENTIFY_CC_CERT_FOLDER_ROOT=/opt/udentify/certs/
UDENTIFY_CC_KEYSTORE_NAME=truststore.bks
UDENTIFY_CC_CRLSTORE_NAME=crlstore.bks

UDENTIFY_CC_SERVER_PORT=8080

UDENTIFY_CC_TRUSTSTORE_UPDATE_JOB=disable
UDENTIFY_CC_CRL_CHECK=disable

UDENTIFY_CC_IDCERT_SERVER_URL=https://my.ihs.com.tr/index.php/s/kndW2WkL0VF7X0O/download
UDENTIFY_CC_IDCERT_SERVER_URL2=https://my.ihs.com.tr/index.php/s/SNWcxXkBIAOPBLy/download
UDENTIFY_CC_MCCERT_SERVER_URL=https://my.ihs.com.tr/index.php/s/jwZqd8upXv7tNk1/download

UDENTIFY_CC_PASSCERTML_SERVER_URL=https://my.ihs.com.tr/index.php/s/g7Ru4Ha8UcQlYzJ/download
UDENTIFY_CC_PASSCERTDSC_SERVER_URL=https://my.ihs.com.tr/index.php/s/yHD8DFIPm7KbITR/download

UDENTIFY_CC_SCRIPT_FOLDER_ROOT=/opt/udentify/scripts/
UDENTIFY_CC_TRUSTSTORE_FOLDER_ROOT=/opt/udentify/truststore/
UDENTIFY_CC_CRL_FOLDER_ROOT=/opt/udentify/crls/
UDENTIFY_CC_CRLSTORE_FOLDER_ROOT=/opt/udentify/crlstore/
UDENTIFY_CC_DSC_CORRECTION_FOLDER_ROOT=/opt/udentify/dsc-correction/

ERROR: relation "qrtz_locks" does not exist hatası

Caused by: org.postgresql.util.PSQLException: ERROR: relation "qrtz_locks" does not exist Position: 15 ... 40 common frames omitted

Hatası için postgresql'de şu komut çalıştırılmalı ve container silinerek yeniden başlatılmalı.

alter database postgres set search_path to udentify;

Yeni Logback.xml Dosyası

Rest sunucuları için logback.xml dosyası değiştirildi. Sebebi ise vulnerability fix yapılabilmesi içindir.

logback.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">

<property name="LOG_DIR" value="/opt/udentify/log" />

<appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>UTF-8</charset>
<Pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern>
</encoder>
</appender>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/udentify.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover. Make sure the path matches the one in the file element or else
the rollover logs are placed in the working directory. -->
<fileNamePattern>${LOG_DIR}/udentify.log.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>

<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFileNamingAndTriggeringPolicy">
<maxFileSize>5MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>

<encoder>
<charset>UTF-8</charset>
<pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>


<appender name="CLIENT_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/client.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover. Make sure the path matches the one in the file element or else
the rollover logs are placed in the working directory. -->
<fileNamePattern>${LOG_DIR}/client.log.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>

<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFileNamingAndTriggeringPolicy">
<maxFileSize>5MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>

<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="io.udentify.rest.config.LogFileHeaderPatternLayout">
<!--<header>Date;TXID;OS;Module;Process Period;Log Type;Log</header>-->
<pattern>%msg%n</pattern>
</layout>
</encoder>
</appender>

<logger name="loggerService" level="DEBUG" additivity="false">
<appender-ref ref="CLIENT_FILE"/>
</logger>

<appender name="lIVENESS_COMPARE_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/liveness.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover. Make sure the path matches the one in the file element or else
the rollover logs are placed in the working directory. -->
<fileNamePattern>${LOG_DIR}/liveness.log.%d{yyyy-MM-dd}.%i.gz</fileNamePattern>

<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFileNamingAndTriggeringPolicy">
<maxFileSize>5MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>

<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="io.udentify.rest.config.LogFileHeaderPatternLayout">
<!-- <header>Date;ImageFileName;IDRND;UdentifyLiveness</header> -->
<pattern>%msg%n</pattern>
</layout>
</encoder>
</appender>

<logger name="livenessLoggerService" level="DEBUG" additivity="false">
<appender-ref ref="lIVENESS_COMPARE_FILE"/>
</logger>


<appender name="FACE_COMPARE_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/face.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover. Make sure the path matches the one in the file element or else
the rollover logs are placed in the working directory. -->
<fileNamePattern>${LOG_DIR}/face.log.%d{yyyy-MM-dd}.%i.gz</fileNamePattern>

<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFileNamingAndTriggeringPolicy">
<maxFileSize>5MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>

<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="io.udentify.rest.config.LogFileHeaderPatternLayout">
<header>Date;TrxID;Algorithm;MatchScoreThreshold;Score;Result;EuclideanDist;DotProduct;CosSimilarity</header>
<pattern>%msg%n</pattern>
</layout>
</encoder>
</appender>

<logger name="faceLoggerService" level="DEBUG" additivity="false">
<appender-ref ref="FACE_COMPARE_FILE"/>
</logger>

<root level="INFO">
<appender-ref ref="consoleAppender" />
<appender-ref ref="FILE"/>
</root>
</configuration>