Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Base Behavior
Continue to perform your standard code review, summarization, and bug detection as usual.
Do not suppress your default helpful observations or summaries.

Sensitive data review
Flag and require review and possible removal, whenever you detect PII, passwords, keys, potential client/private data, and/or related sensitive data committed to the repository.

Dependencies license review
Flag and require review and possible removal or replace with alternatives, whenever you detect directly added licensed code or dependency libraries being imported through dependency managers (maven, npm, pip, etc), that are not in line with the current repository license terms, as saved in the LICENSE file in the project root. For this particular repository, the license being used right now is Apache License Version 2.0. Flag any dependency and/or code imported or used, that is licensed with a commercial license, as particularly high risk. Flag any AGPL or similar strong copyleft licenses as very hi risk. Only open source licenses are allowed that are not strong copyleft. Flag dependencies with missing/unknown licenses.

Security Review
Perform a review of potential issues exposing vulnerabilities in code that can be easily exploited by third parties, if they have access to this repository source code - unprotected endpoints or ports, simple default passwords, unsafe authentication methods, unencrypted communication, etc.
22 changes: 0 additions & 22 deletions .github/workflows/secret-scan.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ target
***REMOVED*** Secret purge script and artifacts
purge-secrets.sh
replacements.txt
.vscode
27 changes: 0 additions & 27 deletions .gitleaks.toml

This file was deleted.

12 changes: 0 additions & 12 deletions .pre-commit-config.yaml

This file was deleted.

13 changes: 3 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: postgres:16.8
environment:
POSTGRES_USER: postgres
***REMOVED*** SECURITY: Override with a strong password in production via POSTGRES_PASSWORD env var
# REMOVED*** SECURITY: Override with a strong password in production via POSTGRES_PASSWORD env var
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-admin}
POSTGRES_DB: viz
ports:
Expand All @@ -16,7 +16,6 @@ services:
networks:
backend-api:


eureka:
build:
context: ./registry
Expand All @@ -36,15 +35,13 @@ services:
networks:
backend-api:


api-gateway:
build:
context: ./api-gateway
dockerfile: Dockerfile
environment:
SPRING_DATASOURCE_URL: "jdbc:postgresql://postgres:5432/viz"
SPRING_DATASOURCE_USERNAME: "postgres"
***REMOVED*** SECURITY: Override with a strong password via SPRING_DATASOURCE_PASSWORD env var in production
SPRING_DATASOURCE_USERNAME: "postgres" # SECURITY: Override with a strong password via SPRING_DATASOURCE_PASSWORD env var in production
SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD:-admin}
JAVA_OPTS: "-Xmx512m -Xms512m -XX:+UseG1GC -XX:InitialHeapSize=512m -XX:MaxHeapSize=512m -XX:+ParallelRefProcEnabled"
ports:
Expand All @@ -55,7 +52,6 @@ services:
networks:
backend-api:


api-security:
build:
context: ./api-security
Expand All @@ -71,7 +67,6 @@ services:
networks:
backend-api:


superset-proxy:
build:
context: ./superset-proxy
Expand All @@ -88,7 +83,7 @@ services:
SPRING_APPLICATION_NAME: "superset-proxy"
SPRING_DATA_REDIS_HOST: "cache"
SPRING_DATA_REDIS_PORT: "6379"
***REMOVED*** SECURITY: Override with a strong password via SPRING_DATA_REDIS_PASSWORD env var in production
#SECURITY: Override with a strong password via SPRING_DATA_REDIS_PASSWORD env var in production
SPRING_DATA_REDIS_PASSWORD: ${SPRING_DATA_REDIS_PASSWORD:-admin}
SPRING_DATA_CACHE_TYPE: "redis"
ports:
Expand All @@ -100,7 +95,6 @@ services:
networks:
backend-api:


cache:
image: redis:6.2-alpine
restart: always
Expand All @@ -115,6 +109,5 @@ services:
volumes:
cache:


networks:
backend-api:
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
***REMOVED***!/bin/bash
#!/bin/bash

PROP_FILE="/etc/$1.properties"
truncate -s 0 $PROP_FILE
Expand Down
1 change: 0 additions & 1 deletion gitleaks-report.json

This file was deleted.

14 changes: 7 additions & 7 deletions superset-proxy/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
***REMOVED***!/bin/bash
#!/bin/bash

PROP_FILE="/etc/$1.properties"
truncate -s 0 $PROP_FILE
Expand All @@ -13,15 +13,15 @@ to_camel_case() {
local output=""
IFS='/' read -ra parts <<< "$input"
output="${parts[0]}"
for ((i=1; i<${***REMOVED***parts[@]}; i++)); do
for ((i=1; i<${#parts[@]}; i++)); do
part="${parts[i]}"
output+="${part^}"
done
echo "$output"
}

***REMOVED***EUREKA_CLIENT_SERVICE/URL_DEFAULT/ZONE
***REMOVED***eureka.client.serviceUrl.defaultZone
#EUREKA_CLIENT_SERVICE/URL_DEFAULT/ZONE
#eureka.client.serviceUrl.defaultZone

while IFS='=' read -r -d '' n v; do
if [[ $n == SPRING_* || $n == EUREKA_* ]]; then
Expand Down Expand Up @@ -60,9 +60,9 @@ to_camel_case() {


echo 'server.compression.enabled=true' >> $PROP_FILE
echo '***REMOVED*** ========================================
***REMOVED*** GZIP Compression Settings for Spring Boot
***REMOVED*** ========================================
echo '# ========================================
# GZIP Compression Settings for Spring Boot
# ========================================
server.compression.enabled=true
server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain
server.compression.min-response-size=1024
Expand Down