-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GMS-79 System status cache removed + samples created + repositories m…
…arked with Repository annotation
- Loading branch information
1 parent
cad40d8
commit 49ab1c9
Showing
20 changed files
with
156 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
batch-files/redis-cache/compose-app-postgresql-with-redis-standalone.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker compose --env-file env-postgresql-with-redis.txt -p give-my-secret up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: "3.9" | ||
services: | ||
gms-app: | ||
#build: . | ||
container_name: gms-app-${SELECTED_DB}-${SELECTED_AUTH} | ||
image: ghcr.io/peter-szrnka/give-my-secret:latest | ||
ports: | ||
- "8080:8080" | ||
- "8443:8443" | ||
environment: | ||
- SPRING_PROFILE | ||
- DB_JDBC_URL | ||
- DB_USERNAME | ||
- DB_CREDENTIAL | ||
- DB_SHOW_SQL | ||
- DB_MAX_LIFETIME | ||
- SSL_KEYSTORE | ||
- SSL_KEYSTORE_PATH | ||
- SSL_KEYSTORE_ALIAS | ||
- SSL_KEYSTORE_PASSWORD | ||
- KEYSTORE_PATH | ||
- KEYSTORE_TEMP_DEFAULT_PATH | ||
- LDAP_BASE_DN | ||
- LDAP_CREDENTIAL | ||
- LDAP_URL | ||
- LDAP_USERNAME | ||
- LDAP_PASSWORD_ENCODER | ||
- SELECTED_DB | ||
- SELECTED_AUTH | ||
- HTTPS_PORT | ||
- CONFIG_SECRET_JWT | ||
- CONFIG_SECRET_CRYPTO | ||
- CONFIG_ENCRYPTION_IV | ||
- EVENT_OLD_LIMIT | ||
- MESSAGE_OLD_LIMIT | ||
- ENABLE_SECRET_ROTATION | ||
- ENABLE_EVENT_MAINTENANCE | ||
- ENABLE_MESSAGE_CLEANUP | ||
- ENABLE_REDIS_CACHE | ||
- REDIS_HOST | ||
- REDIS_PORT | ||
|
||
volumes: | ||
- "D:/dev/projects/open-source/keystores/:/usr/share/ssl/" | ||
- "D:/dev/projects/open-source/ks/:/usr/share/keystore/" | ||
- "D:/dev/projects/open-source/temp-ks/:/usr/share/keystore-temp/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
SELECTED_DB=postgresql | ||
SELECTED_AUTH=db | ||
SPRING_PROFILE=${SELECTED_DB},${SELECTED_AUTH},https | ||
|
||
# HTTPS configuration | ||
SSL_KEYSTORE_TYPE=PKCS12 | ||
SSL_KEYSTORE_PATH=/usr/share/ssl/ | ||
SSL_KEYSTORE=${SSL_KEYSTORE_PATH}test.p12 | ||
SSL_KEYSTORE_PASSWORD=Test1234 | ||
SSL_KEYSTORE_ALIAS=test | ||
HTTPS_PORT=8443 | ||
|
||
# Secrets | ||
CONFIG_SECRET_JWT=MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2Nzg= | ||
CONFIG_SECRET_CRYPTO=MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2Nzg= | ||
CONFIG_ENCRYPTION_IV=R4nd0mIv1234567! | ||
|
||
# LDAP | ||
LDAP_BASE_DN=dc=givemysecret,dc=szrnkapeter,dc=hu | ||
LDAP_URL=ldap://host.docker.internal:11389 | ||
LDAP_USERNAME=uid=admin,ou=system | ||
LDAP_CREDENTIAL=secret | ||
LDAP_PASSWORD_ENCODER=CRYPT | ||
|
||
# Common db configuration | ||
DB_SHOW_SQL=false | ||
|
||
# MS SQL configuration | ||
DB_JDBC_URL=jdbc:postgresql://host.docker.internal:5432/gms?currentSchema=gms&schema=gms | ||
DB_USERNAME=postgres | ||
DB_CREDENTIAL=Secret | ||
|
||
# Keystore storage path | ||
KEYSTORE_PATH=/usr/share/keystore/ | ||
KEYSTORE_TEMP_DEFAULT_PATH=/usr/share/keystore-temp/ | ||
|
||
# Redis | ||
ENABLE_REDIS_CACHE=true | ||
REDIS_HOST=localhost | ||
REDIS_PORT=6379 | ||
|
||
# Windows specific settings | ||
COMPOSE_CONVERT_WINDOWS_PATHS=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...ms-backend/src/main/java/io/github/gms/secure/repository/ApiKeyRestrictionRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
code/gms-backend/src/main/java/io/github/gms/secure/repository/EventRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
code/gms-backend/src/main/java/io/github/gms/secure/repository/SecretRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
code/gms-backend/src/main/java/io/github/gms/secure/repository/SystemPropertyRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.