generated from 8iq/nodejs-hackathon-boilerplate-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(condo): DOMA-6871 fix code for semgrep alerts (#3733)
* feat(condo): DOMA-6871 run-semgrep.sh argument propagation in order to use different script output * fix(condo): DOMA-6871 fix code for semgrep csrf attacks rule * fix(condo): DOMA-6871 fix code for semgrep not proper regexp replace usages * fix(condo): DOMA-6871 fix code for semgrep path vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep md5 vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep ReDoS issue vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep paths vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep inject html insecure vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep not sanitized where statement vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep console log formatters vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep default ruleset vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep default ruleset vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep default ruleset vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep rest of condo vulnerabilities * fix(condo): DOMA-6871 fix code for semgrep rest of condo vulnerabilities * fix(condo): DOMA-6871 add semgrep documentation * fix(condo): DOMA-6871 add semgrep documentation * fix(condo): DOMA-6871 fix semgrep address-service vulnerabilities * fix(condo): DOMA-6871 fix semgrep dev-portal vulnerabilities * fix(condo): DOMA-6871 fix semgrep miniaps vulnerabilities * fix(condo): DOMA-6871 fix semgrep docs * fix(condo): DOMA-6871 use getEscaped util for escape string * fix(condo): DOMA-6871 remove not proper comments for bridge/ui packages * fix(condo): DOMA-6871 adopt run-semgrep to support running on submodules
- Loading branch information
1 parent
ee453fd
commit 4fe1d81
Showing
67 changed files
with
381 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,13 @@ PORT=3000 | |
SERVER_URL=http://localhost:3000 | ||
DEFAULT_LOCALE=ru | ||
FILE_FIELD_ADAPTER=local | ||
GOOGLE_RECAPTCHA_CONFIG='{"SITE_KEY":"6LcPRvQaAAAAAJRyxsFIB4rP5VH036pFOkNH8lgh", "SERVER_KEY":"6LcPRvQaAAAAADn_h1440Es7fXIGD0E4lpXR_FyF"}' | ||
# nosemgrep: generic.secrets.gitleaks.generic-api-key.generic-api-key | ||
GOOGLE_RECAPTCHA_CONFIG='{"SITE_KEY":"<SITE_KEY>", "SERVER_KEY":"<SERVER_KEY>"}' | ||
HELP_REQUISITES='{ "support_email": "[email protected]", "support_email_mobile": "[email protected]", "bot_email": "[email protected]", "support_phone": "+1 301 000-00-00" }' | ||
|
||
# Cache settings | ||
ADAPTER_CACHE_CONFIG = '{ "enabled": true, "excludedLists":[], "logging":0, "maxCacheSize":1000, "logStatsEachSecs": 60 }' | ||
REQUEST_CACHE_CONFIG = '{ "enabled": true, "logging":0, "logStatsEachSecs": 60 }' | ||
ADAPTER_CACHE_CONFIG='{ "enabled": true, "excludedLists":[], "logging":0, "maxCacheSize":1000, "logStatsEachSecs": 60 }' | ||
REQUEST_CACHE_CONFIG='{ "enabled": true, "logging":0, "logStatsEachSecs": 60 }' | ||
|
||
#OIDC_CONDO_CLIENT_CONFIG='{"serverUrl":"http://localhost:3000", "clientId":"<client id>", "clientSecret":"<client secret>"}' | ||
|
||
|
@@ -24,10 +25,11 @@ FEATURE_TOGGLE_CONFIG='{"url":null,"apiKey":null,"static":{}}' | |
BANK_ACCOUNT_REQUEST_EMAIL_TARGET=[email protected] | ||
|
||
# FIREBASE_CONFIG_JSON contents can be retrieved from https://console.firebase.google.com/project/<PROJECT_ID>/settings/serviceaccounts/adminsdk | ||
# nosemgrep: generic.secrets.security.detected-google-gcm-service-account.detected-google-gcm-service-account | ||
# FIREBASE_CONFIG_JSON='{"type": "service_account", "project_id": "<PROJECT_ID>", "private_key_id": "<PRIVATE_KEY_ID", "private_key": "<PRIVATE_KEY>", "client_email": "<FIREBASE_ADMIN_SDK_EMAIL> at .gserviceaccount.com", "client_id": "<CLIENT_ID>", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/<CLIENT_EMAIL_VALUE>"}' | ||
|
||
# real Firebase push token for testing real push notification delivery to device, would be used only if provided | ||
# FIREBASE_PUSH_TOKEN_TEST=flt0weSOS8eROf6OEZAmHp:APA91bG0I-QBvGjCL5jblzDoOuVV6bZ1x4dyRmyPqr2iZBYyFbDJcqtKw0vvzo4MH-PaLiVQJbLfAGCoryYXykdqCKXdx2QqYAk6vE4pmxrKk6RHe33-mVNHNTB0HxYI9KUsb21CHfPp | ||
# FIREBASE_PUSH_TOKEN_TEST=<TOKEN> | ||
|
||
# HMS - Huawei Messaging System | ||
# HMS_CONFIG_JSON contents can be retrieved from ..., there should be separate section for each app receiving push notifications via HMS | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,5 @@ apps/condo/public/ui | |
.turbo | ||
|
||
# semgrep | ||
semgrep.sarif | ||
semgrep.sarif | ||
semgrep_results/* |
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 |
---|---|---|
|
@@ -21,3 +21,7 @@ | |
yarn-error.log | ||
npm-debug.* | ||
ignore.* | ||
|
||
# not a source code files | ||
docker-compose.yml | ||
packages/codegen/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ module.exports = [ | |
email: '[email protected]', | ||
isAdmin: true, | ||
isSupport: true, | ||
// this is development only data | ||
// nosemgrep: generic.secrets.gitleaks.generic-api-key.generic-api-key | ||
password: '3a74b3f07978', | ||
dv: 1, | ||
sender: { | ||
|
@@ -22,6 +24,8 @@ module.exports = [ | |
email: '[email protected]', | ||
isAdmin: false, | ||
isSupport: false, | ||
// this is development only data | ||
// nosemgrep: generic.secrets.gitleaks.generic-api-key.generic-api-key | ||
password: '1a92b3a07c78', | ||
dv: 1, | ||
sender: { | ||
|
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
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
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
Oops, something went wrong.