Skip to content

Commit 08cd59d

Browse files
author
Snehal Maid
committed
6.0.0 version release
1 parent df83156 commit 08cd59d

31 files changed

+573
-4
lines changed

admin-api/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "keymaker-admin-api",
3-
"version": "5.1.0",
3+
"version": "6.0.0",
44
"description": "API app for Keymaker",
55
"main": "src/index.js",
66
"scripts": {

docker/.DS_Store

6 KB
Binary file not shown.

docker/v1/.DS_Store

6 KB
Binary file not shown.

docker/v1/build_docker.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
###
3+
### Usage: sh ./build_docker.sh <dir1> <dir2>
4+
### This script will run the build.sh file for keymaker & any other directories specified in the args
5+
###
6+
echo ""
7+
echo "*** Cleaning build folder ***"
8+
echo ""
9+
find ./build -exec rm -rdf "{}" \;
10+
mkdir ./build
11+
### Build keymaker
12+
cd ./keymaker
13+
./build.sh
14+
cd ..

docker/v1/build_package.sh

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/sh
2+
if [ -z "$KEYMAKER_VERSION" ]
3+
then
4+
echo "KEYMAKER_VERSION must be set first by running command:"
5+
echo " source ./getVersion.sh"
6+
exit 1
7+
else
8+
echo "KEYMAKER_VERSION is ${KEYMAKER_VERSION}, ok to proceed? (y/n)"
9+
read isVersionOk
10+
if [ "$isVersionOk" != "y" ]
11+
then
12+
echo "Stopping build, re-run when version is ok."
13+
exit 1
14+
else
15+
echo "Building with KEYMAKER_VERSION ${KEYMAKER_VERSION}"
16+
fi
17+
fi
18+
19+
### Cleaning build directory
20+
echo ""
21+
echo "*** Cleaning build directory ***"
22+
echo ""
23+
rm -r ./build/*
24+
### Packaging Docker images
25+
echo ""
26+
echo "*** Packaging docker images ***"
27+
echo ""
28+
docker save keymaker-ui:${KEYMAKER_VERSION} keymaker-admin-api:${KEYMAKER_VERSION} keymaker-engine-api:${KEYMAKER_VERSION} | gzip > keymakerDocker.tar.gz
29+
mv keymakerDocker.tar.gz ./build
30+
### Packaging Config
31+
echo ""
32+
echo "*** Packaging Keymaker config ***"
33+
echo ""
34+
35+
tar --exclude='movies*' -zcvf keymaker_config.tar.gz ./config
36+
mv ./keymaker_config.tar.gz ./build
37+
38+
39+
#cp docker-compose.yml ./build/docker-compose.yml
40+
sed 's|${KEYMAKER_VERSION}|'$KEYMAKER_VERSION'|g' docker-compose.yml > ./build/docker-compose.yml
41+
cp ./keymaker.sh ./build/keymaker.sh
42+
cp ../../admin-api/scripts/create-user.sh ./build
43+
echo ""
44+
echo "*** Packaging everything ***"
45+
echo ""
46+
cd ./build
47+
tar cvf keymaker.tar.gz *
48+
echo "*** Done ***"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIEqTCCA5GgAwIBAgIJALsY4Ol9rMRoMA0GCSqGSIb3DQEBCwUAMIGTMQswCQYD
3+
VQQGEwJVUzELMAkGA1UECAwCQ0ExEjAQBgNVBAcMCVNhbiBNYXRlbzEOMAwGA1UE
4+
CgwFTmVvNGoxEjAQBgNVBAsMCVNvbHV0aW9uczEbMBkGA1UEAwwSY2EubmVvNGou
5+
c29sdXRpb25zMSIwIAYJKoZIhvcNAQkBFhNzb2x1dGlvbnNAbmVvNGouY29tMB4X
6+
DTIxMDQyNjE1MzA1OVoXDTIzMDczMDE1MzA1OVowgZkxCzAJBgNVBAYTAlVTMQsw
7+
CQYDVQQIDAJDQTESMBAGA1UEBwwJU2FuIE1hdGVvMQ4wDAYDVQQKDAVOZW80ajES
8+
MBAGA1UECwwJU29sdXRpb25zMSEwHwYDVQQDDBhrZXltYWtlci5uZW80ai5zb2x1
9+
dGlvbnMxIjAgBgkqhkiG9w0BCQEWE3NvbHV0aW9uc0BuZW80ai5jb20wggEiMA0G
10+
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCs4qpVJjPAUQHzZcS1V00p4Jbr9wlq
11+
ir48axQ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7fAOOUZ
27+
-----END CERTIFICATE-----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-----BEGIN RSA PRIVATE KEY-----
2+
MIIEpQIBAAKCAQEArOKqVSYzwFEB82XEtVdNKeCW6/cJaoq+PGsUENWpdTgD8TLz
3+
7eAgiTaqcpomh59/YGEZygC0BtugEV3UsPS+y5pFdvCnjlPLZ7NbX+5pYKaDf5yG
4+
Bgqurk3iirygVd1Vn8yxJhKPBM9G9p4ryNdWJofc+ElXht93jPmtvEVAiZwCM064
5+
0cG6E+qGJLLPJwrklnf0McTNfS5iH2RhRQMLN1nG45StEWrCHWCCQkoseAYaGjCv
6+
NOQAeaLGLEuIFLZU7VSEiWtPTYnJfcTr4OZ92ePfQ8G5fJm5yNmn5MlgCF2g7bjD
7+
xbNmCG9XGv6Ux7INbdHH+L4TuO1+NRyfrSfM/QIDAQABAoIBAQCSnHHoXco7SDdI
8+
SsBjLFLCtbQnDUsN7/Td1cyhbiATyNoG/LfBvXS6CALJxxHvp4HkoNO265u/yRZY
9+
Q+Mv4Y2/qedIs1LUrxjqqz5M/yicDvmrCXjavMpgBKqeDtJFnrqTFooQCGMCqCi8
10+
0Wu+GWb0q/jnEYNJXE7M3ZvI8k2Fo8OVr/Ge1AoZjprX+0P5nBQ6Y3suCKD/ZeQJ
11+
HPtwZnOr9qyFZ2OPzD1Ycbp0G0fV+qqAOGy4DzFMDxgSgQKLbLr66h48jUB0YPT4
12+
c+K1FIy8jkrieskVfxsHsxYoZvJ1kKxekmGoWF0rzg+p51fLstt+xagnkIonwBg2
13+
o8qcwUBdAoGBANZFVCLRBWPTIBZQ/zh5VzRen9jezdJg2QS3brMCMJtNHcntrjo6
14+
yXVdKok3JBp86AjkQiA8FdqiZ7v9lQ+kzmv0fTVsLaIxc4F+i61B+UzroFqZic+e
15+
DA1VaunRbebWCpegrFRXfCpSRyX6/Ur+jG8283eZYzCf89w12goVj/0zAoGBAM6O
16+
B2BCLrWyJFy8b1tYqou2MIeeXDwXLMzsNqTyCw+lyyIqJiOUCfF8Doxz31UvPArU
17+
4juF+idtwWvMpC3OHHACehCJHcvomyMLQXdKk4JDJaZCVyVPtFJv4EShXK983cHz
18+
EASScY84uVFmpo+UOkfYQrFt3bSBGP38DdxA8i0PAoGBAISlOJexJBAPNC78h3Lz
19+
kyulZHlCPNJ/B/omgE4rDeImVEmcbR45JFwWh+2YCC6poo9WlyUTbUgDAArdyfh8
20+
QxmLqjN3O6zLxkClEVz5mZany4YqxKiVo8phVaVX9BxR5w7E9cnkusYMV2VIwqM5
21+
f8CdmQ0yFLiWXMW3RLq3bIMHAoGAQevqRrpYlfyIxmANWiXuKDC5RE8yOKtczPoG
22+
ZpYpGZFcR0cUbP5uPffN3N2ORW2RyBMxMLYNpE/PD0x8iXHieY0Qz/4y2EUgXgrV
23+
lfDjKwurFGjPz0Sk1DqIZN7q6cb8L04Xqp3iSEdePbB5MBGqmAtZHa9mtpkNFOJA
24+
ui6wG9kCgYEAsDUyPkedVaPJPLINYnaBFPwm3bB50h7qrIorZSzzlOQ+90/9MF3+
25+
CGJYFK7Fvk+nxrpNQh/fp+dFmSCbwl2NNHPBx7gHA50U/Q9u8fDtxD/GpP7JSzav
26+
Nd3lhcDEpcNjIQ82Cm+2/dWVyOQyVZbpEWmSkYikzV7wmC5cEH6hnJQ=
27+
-----END RSA PRIVATE KEY-----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
==== Keymaker 6.0.0 - Labs ==== Uj3ULminMvjRyPkSqktgIhHSXUPCRZ/jZub2JDM3dNwJfxG5/GxCOupIft+7fWAofuxMitbwImpfY8y2tb/OHWt/ujhXSUuUJx4wp6tQl3oLLtt8m+YWCix6kinN8cODzH8Djx/bO1ZWjfTnEiXqusP3UwCnFUkXa4Nvo7nmTQEUS1U4MNtY+Sfsw2I0LOz9m/jBvYD2xULXP54qTGdFIkJwPUDm2t1L7KxaOXRmZ5EMdZItBb77gjiuQeSqLr7ysLu7fXvS8rHSBmkZdT+x442TaueD7SNRSELLb+mweNe69xS1dSZhwA23h0t511X+7oUJd8at1YN/o4ArQQLPeQ==_$$_jTU4Sspeo9sVpPnUHWzkDdElPG0m0LBfEq1xHybZPcmvH/bAqktK+5TP0oYXKxj6aeUePH/xbdl13ybivFvoAw==
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIEqTCCA5GgAwIBAgIJALsY4Ol9rMRoMA0GCSqGSIb3DQEBCwUAMIGTMQswCQYD
3+
VQQGEwJVUzELMAkGA1UECAwCQ0ExEjAQBgNVBAcMCVNhbiBNYXRlbzEOMAwGA1UE
4+
CgwFTmVvNGoxEjAQBgNVBAsMCVNvbHV0aW9uczEbMBkGA1UEAwwSY2EubmVvNGou
5+
c29sdXRpb25zMSIwIAYJKoZIhvcNAQkBFhNzb2x1dGlvbnNAbmVvNGouY29tMB4X
6+
DTIxMDQyNjE1MzA1OVoXDTIzMDczMDE1MzA1OVowgZkxCzAJBgNVBAYTAlVTMQsw
7+
CQYDVQQIDAJDQTESMBAGA1UEBwwJU2FuIE1hdGVvMQ4wDAYDVQQKDAVOZW80ajES
8+
MBAGA1UECwwJU29sdXRpb25zMSEwHwYDVQQDDBhrZXltYWtlci5uZW80ai5zb2x1
9+
dGlvbnMxIjAgBgkqhkiG9w0BCQEWE3NvbHV0aW9uc0BuZW80ai5jb20wggEiMA0G
10+
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCs4qpVJjPAUQHzZcS1V00p4Jbr9wlq
11+
ir48axQQ1al1OAPxMvPt4CCJNqpymiaHn39gYRnKALQG26ARXdSw9L7LmkV28KeO
12+
U8tns1tf7mlgpoN/nIYGCq6uTeKKvKBV3VWfzLEmEo8Ez0b2nivI11Ymh9z4SVeG
13+
33eM+a28RUCJnAIzTrjRwboT6oYkss8nCuSWd/QxxM19LmIfZGFFAws3WcbjlK0R
14+
asIdYIJCSix4BhoaMK805AB5osYsS4gUtlTtVISJa09Nicl9xOvg5n3Z499Dwbl8
15+
mbnI2afkyWAIXaDtuMPFs2YIb1ca/pTHsg1t0cf4vhO47X41HJ+tJ8z9AgMBAAGj
16+
gfcwgfQwgbIGA1UdIwSBqjCBp6GBmaSBljCBkzELMAkGA1UEBhMCVVMxCzAJBgNV
17+
BAgMAkNBMRIwEAYDVQQHDAlTYW4gTWF0ZW8xDjAMBgNVBAoMBU5lbzRqMRIwEAYD
18+
VQQLDAlTb2x1dGlvbnMxGzAZBgNVBAMMEmNhLm5lbzRqLnNvbHV0aW9uczEiMCAG
19+
CSqGSIb3DQEJARYTc29sdXRpb25zQG5lbzRqLmNvbYIJAPBWnD/iyK5bMAkGA1Ud
20+
EwQCMAAwCwYDVR0PBAQDAgTwMCUGA1UdEQQeMByCCW5lbzRqLmNvbYIJbG9jYWxo
21+
b3N0hwR/AAABMA0GCSqGSIb3DQEBCwUAA4IBAQCCCKIugTyPrTSxmcx1rA7Zk6YQ
22+
yseXgVqV5/i1fyw2/grZWFc2hZeJGVR1CNvh+susBvklfQWF/6rEoCDUqISDJ7Pd
23+
4035rnABIFna0olywszjIkiNQh8TeWHK+aL329aAOWqVYVysGAT2xhKgqnnvsvrz
24+
KAkeCiMuz+BuOWYQ+d+E5hYvilbRxyJ2b4yynS/16Q3oJQXCX0BcQtD2T7ZAjOsN
25+
hUlbIlkhylcRCIVtXNogW4N7TSDqJCT5OrfscMEWI9Ww8RMD6SyA5Z/N894dHdaZ
26+
8GUVlgSzxkByIPzcx4D2AAm+BRJxyXkUtmRnCcUvG67EoDQlnJwkj7fAOOUZ
27+
-----END CERTIFICATE-----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-----BEGIN RSA PRIVATE KEY-----
2+
MIIEpQIBAAKCAQEArOKqVSYzwFEB82XEtVdNKeCW6/cJaoq+PGsUENWpdTgD8TLz
3+
7eAgiTaqcpomh59/YGEZygC0BtugEV3UsPS+y5pFdvCnjlPLZ7NbX+5pYKaDf5yG
4+
Bgqurk3i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20+
QxmLqjN3O6zLxkClEVz5mZany4YqxKiVo8phVaVX9BxR5w7E9cnkusYMV2VIwqM5
21+
f8CdmQ0yFLiWXMW3RLq3bIMHAoGAQevqRrpYlfyIxmANWiXuKDC5RE8yOKtczPoG
22+
ZpYpGZFcR0cUbP5uPffN3N2ORW2RyBMxMLYNpE/PD0x8iXHieY0Qz/4y2EUgXgrV
23+
lfDjKwurFGjPz0Sk1DqIZN7q6cb8L04Xqp3iSEdePbB5MBGqmAtZHa9mtpkNFOJA
24+
ui6wG9kCgYEAsDUyPkedVaPJPLINYnaBFPwm3bB50h7qrIorZSzzlOQ+90/9MF3+
25+
CGJYFK7Fvk+nxrpNQh/fp+dFmSCbwl2NNHPBx7gHA50U/Q9u8fDtxD/GpP7JSzav
26+
Nd3lhcDEpcNjIQ82Cm+2/dWVyOQyVZbpEWmSkYikzV7wmC5cEH6hnJQ=
27+
-----END RSA PRIVATE KEY-----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
user nginx;
2+
worker_processes auto;
3+
4+
error_log /var/log/nginx/error.log warn;
5+
pid /var/run/nginx.pid;
6+
7+
8+
events {
9+
worker_connections 1024;
10+
}
11+
12+
13+
http {
14+
include /etc/nginx/mime.types;
15+
default_type application/octet-stream;
16+
17+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
18+
'$status $body_bytes_sent "$http_referer" '
19+
'"$http_user_agent" "$http_x_forwarded_for"';
20+
21+
access_log /var/log/nginx/access.log main;
22+
23+
sendfile on;
24+
#tcp_nopush on;
25+
26+
keepalive_timeout 65;
27+
28+
#gzip on;
29+
30+
server {
31+
listen 3080;
32+
listen 3443 ssl;
33+
server_name localhost;
34+
ssl_certificate neo4j.com.crt;
35+
ssl_certificate_key neo4j.com.key;
36+
37+
#charset koi8-r;
38+
#access_log /var/log/nginx/host.access.log main;
39+
40+
location / {
41+
root /usr/share/nginx/html;
42+
index index.html index.htm;
43+
try_files $uri /index.html;
44+
}
45+
46+
#error_page 404 /404.html;
47+
48+
# redirect server error pages to the static page /50x.html
49+
#
50+
error_page 500 502 503 504 /50x.html;
51+
location = /50x.html {
52+
root /usr/share/nginx/html;
53+
}
54+
}
55+
}
56+
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
window._dynamicEnv_ = {
2+
REACT_APP_GRAPHQL_URI: "http://localhost:36402/graphql",
3+
REACT_APP_RECOMMENDATION_URI: "http://localhost:36401/graphql",
4+
REACT_APP_EULA_GRAPHQL_URI: "ignore",
5+
REACT_APP_AUTH_DOMAIN: "none",
6+
REACT_APP_AUTH_CLIENT_ID: "none",
7+
REACT_APP_AUTH_CALLBACK: "none",
8+
REACT_APP_AUTH_METHOD: "local",
9+
REACT_APP_AUTH_LOGOUT_URL: "localhost",
10+
REACT_APP_EXPIRE_TIME: "3600",
11+
REACT_APP_HIVE_URI: "",
12+
REACT_APP_HIVE_UI: "",
13+
REACT_APP_SOLUTION: "",
14+
};

docker/v1/config/whitelist/whitelisted-origins.txt

Whitespace-only changes.

docker/v1/docker-compose.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
version: "1"
2+
3+
services:
4+
keymaker-admin-api:
5+
image: keymaker-admin-api:${KEYMAKER_VERSION}
6+
ports:
7+
- "36402:4002"
8+
volumes:
9+
- ./config/keymaker-license:/app/license
10+
- ./config/keymaker-certificate:/app/ssh_keys
11+
- ./config/logs:/app/logs
12+
environment:
13+
- LICENSE_FILE=/app/license/license.lic
14+
- NEO4J_URI=neo4j+s://127a9b64.databases.neo4j.io:7687
15+
- NEO4J_USERNAME=neo4j
16+
- NEO4J_PASSWORD=5YePYymYZzq5Phd39gYnVRPRiVlQL1dgTCAGgNzuoz4
17+
- NEO4J_DATABASE=neo4j
18+
- GRAPHQL_LISTEN_PORT=4002
19+
- ENCRYPTION_KEY=keymakerEncryptionKey
20+
- ENGINE_API_APIKEY=LZmIbId7He4dh0hH7ZUVKz5A
21+
- AUTH_METHOD=local
22+
- HOST_NAME=localhost
23+
- HOST_PROTOCOL=http
24+
- LOGS_DIR=/app/logs
25+
- LOG_LEVEL=info
26+
- LOG_MAX_SIZE=20m
27+
- LOG_RETENTION_PERIOD=14d
28+
- MAX_CACHED_DRIVERS=100
29+
- MAX_DRIVER_AGE=3600000
30+
- NEO4J_TRANSACTION_TIMEOUT=300000
31+
- DRIVER_CACHE_PRUNE_INTERVAL=600000
32+
keymaker-engine-api:
33+
image: keymaker-engine-api:${KEYMAKER_VERSION}
34+
ports:
35+
- "36401:4001"
36+
volumes:
37+
- ./config/keymaker-license:/app/license
38+
- ./config/keymaker-certificate:/app/ssh_keys
39+
- ./config/whitelist:/app/config
40+
- ./config/logs:/app/logs
41+
environment:
42+
- LICENSE_FILE=/app/license/license.lic
43+
- WHITELISTED_ORIGINS_FILE=/app/config/whitelisted-origins.txt
44+
- NEO4J_URI=neo4j+s://127a9b64.databases.neo4j.io:7687
45+
- NEO4J_USERNAME=neo4j
46+
- NEO4J_PASSWORD=5YePYymYZzq5Phd39gYnVRPRiVlQL1dgTCAGgNzuoz4
47+
- NEO4J_DATABASE=neo4j
48+
- GRAPHQL_LISTEN_PORT=4001
49+
- ENCRYPTION_KEY=keymakerEncryptionKey
50+
- HOST_NAME=localhost
51+
- HOST_PROTOCOL=http
52+
- MAX_CACHED_DRIVERS=100
53+
- MAX_DRIVER_AGE=3600000
54+
- NEO4J_TRANSACTION_TIMEOUT=300000
55+
- DRIVER_CACHE_PRUNE_INTERVAL=600000
56+
- MAX_CACHED_APIKEYS=100
57+
- APIKEY_CACHE_PRUNE_INTERVAL=600000
58+
- LOGS_DIR=/app/logs
59+
- LOG_LEVEL=info
60+
- LOG_MAX_SIZE=20m
61+
- LOG_RETENTION_PERIOD=14d
62+
- MAX_CACHED_ENGINES=100
63+
- MAX_ENGINE_AGE=3600000
64+
- ENGINE_CACHE_PRUNE_INTERVAL=600000
65+
- ENGINE_CACHE_RESET_INTERVAL=86400000
66+
keymaker-ui:
67+
image: keymaker-ui:${KEYMAKER_VERSION}
68+
ports:
69+
- "36081:3080"
70+
- "36444:3443"
71+
volumes:
72+
- ./config/keymaker-ui:/usr/share/nginx/html/config
73+
- ./config/keymaker-ui-nginx:/usr/share/nginx/conf
74+
depends_on:
75+
- "keymaker-engine-api"
76+
- "keymaker-admin-api"

docker/v1/getVersion.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
# Get the directory of the current script
4+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5+
6+
# Path to the version.js file
7+
input="$SCRIPT_DIR/../../ui/src/version.js"
8+
9+
# Check if the input file exists
10+
if [[ ! -f "$input" ]]; then
11+
echo "Error: File $input not found."
12+
return 1 # Use 'return' instead of 'exit' when sourcing
13+
fi
14+
15+
# Extract the version number using sed
16+
VERSION=$(sed -n "s/export const VERSION = '\([^']*\)';/\1/p" "$input")
17+
18+
# Replace '-' and '+' with '_'
19+
VERSION=${VERSION//-/_}
20+
VERSION=${VERSION//+/_}
21+
22+
# Output the version and export it as an environment variable
23+
echo "VERSION: $VERSION"
24+
export KEYMAKER_VERSION=$VERSION

0 commit comments

Comments
 (0)