thevahidal / soul

🕉 A SQLite REST and realtime server
https://thevahidal.github.io/soul/
MIT License
1.45k stars 50 forks source link

User registration feature #152

Closed AbegaM closed 4 months ago

AbegaM commented 5 months ago

Modifications

  1. Added a middleware named processRequest to remove some fields from the /api/tables/_users API call
  2. Added a middleware named processResponse to redirect an API call to the user registration endpoint
TahaKhanAbdalli commented 4 months ago

Auth mode enabled and not enabled. I have tested this by creating the .env file and assigning AUTH = true, which enables the Auth mode. Subsequently, it creates the tables in foobar.db. However, if the Auth mode is not enabled, it creates the database with the name foobar.db but does not create the tables. Then, when I attempt to create tables manually and create a user using the endpoint /api/tables/_users/rows, it successfully creates the user but returns the following error message: Please restart soul so a default role can be created. So, if the Auth is disabled, why is this error message showing?

AbegaM commented 4 months ago

Auth mode enabled and not enabled. I have tested this by creating the .env file and assigning AUTH = true, which enables the Auth mode. Subsequently, it creates the tables in foobar.db. However, if the Auth mode is not enabled, it creates the database with the name foobar.db but does not create the tables. Then, when I attempt to create tables manually and create a user using the endpoint /api/tables/_users/rows, it successfully creates the user but returns the following error message: Please restart soul so a default role can be created. So, if the Auth is disabled, why is this error message showing?

Hello @TahaKhanAbdalli, if the AUTH mode is disabled, there is no need to create users. The registration process will be skipped, and there will be no need to create roles. In this case, we have planned to make the _users table name reserved, meaning it will not be allowed to create a table with this name in the DB, so you only need to test the authentication feature by setting AUTH to true

TahaKhanAbdalli commented 4 months ago

Okay, that should resolve the error. But in my opinion, there should be an additional check which confirms whether the AUTH is enabled or not.

AbegaM commented 4 months ago

Okay, that should resolve the error. But in my opinion, there should be an additional check which confirms whether the AUTH is enabled or not.

Sure, when a user tries to access the reserved resources like _roles, _roles_permissions, _users and _users_roles while AUTH is set to false we can throw an error saying, You can't access this endpoint while AUTH is set to false

IanMayo commented 4 months ago

But @AbegaM - this looks like a legitimate use of the app. It may be a bit niche, but I see the logic in being able to do user management with auth (temporarily) switched off, then switch auth back on.

Please restart soul so a default role can be created

This warning suggest code is going down a route it shouldn't, if auth is off.

AbegaM commented 4 months ago

But @AbegaM - this looks like a legitimate use of the app. It may be a bit niche, but I see the logic in being able to do user management with auth (temporarily) switched off, then switch auth back on.

Please restart soul so a default role can be created

This warning suggest code is going down a route it shouldn't, if auth is off.

Note that this error message is not shown when AUTH is disabled, if AUTH is disabled there is no reason for the user to use the /_users endpoint, The error is thrown when the code fails to get the default role in the DB

AbegaM commented 4 months ago

@IanMayo and we have decided to make the default table names reserved so if the user tries to set the AUTH to false and then tries to create a table by using the reserved table names like _users they will get an error

IanMayo commented 4 months ago

@IanMayo and we have decided to make the default table names reserved so if the user tries to set the AUTH to false and then tries to create a table by using the reserved table names like _users they will get an error

Sure. Tables with reserved names cannot be created. But, I see running with auth disabled as being like running as super-user - able to change (almost) any thing.

AbegaM commented 4 months ago

@IanMayo The issue you mentioned about Souls default endpoints being accessed while AUTH is set to false is fixed now, i have added a check that throws an error when a user tries to access the default endpoints when AUTH is set to false

AbegaM commented 4 months ago

@thevahidal The comments in this PR are fixed, please let us know if you have additional comments

gitguardian[bot] commented 4 months ago

⚠️ GitGuardian has uncovered 70 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [9693625](https://dashboard.gitguardian.com/incidents/9693625?occurrence=125628929) | Triggered | Username Password | 23e6230fe8e6a67d422517d2b675057bd374a082 | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/23e6230fe8e6a67d422517d2b675057bd374a082#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cR16) | | [9693625](https://dashboard.gitguardian.com/incidents/9693625?occurrence=125637127) | Triggered | Username Password | f4c90f5a2aa68bc162db239cf7413a7f478f4d9e | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/f4c90f5a2aa68bc162db239cf7413a7f478f4d9e#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cL16) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=125990117) | Triggered | Username Password | ff632facd38633a7e499b8f30c77f2ab0531fbb5 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/ff632facd38633a7e499b8f30c77f2ab0531fbb5#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126653373) | Triggered | Username Password | 7cd7163d8e664d8da514f2b8a8de65280b3ffa10 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/7cd7163d8e664d8da514f2b8a8de65280b3ffa10#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126653735) | Triggered | Username Password | caea10728c11c7871f1e016f767059530ae93bc7 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/caea10728c11c7871f1e016f767059530ae93bc7#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126653945) | Triggered | Username Password | 3699a814a4247463cfa50d3e6a6fc3e30c42a64c | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/3699a814a4247463cfa50d3e6a6fc3e30c42a64c#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126653953) | Triggered | Username Password | e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126653961) | Triggered | Username Password | 6d3dad53a38e29c01242af8a18952c2fea2f24e7 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/6d3dad53a38e29c01242af8a18952c2fea2f24e7#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126653969) | Triggered | Username Password | be9f77e0b49985b6c743f0c8bd8564a7941dcaf4 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/be9f77e0b49985b6c743f0c8bd8564a7941dcaf4#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126653977) | Triggered | Username Password | d2fb268d3b96696d068b21f1d9170154454f84e0 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/d2fb268d3b96696d068b21f1d9170154454f84e0#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126653988) | Triggered | Username Password | 819335170292f497b6de787316ff230a9092555b | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/819335170292f497b6de787316ff230a9092555b#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R64) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=125990116) | Triggered | Generic Password | ff632facd38633a7e499b8f30c77f2ab0531fbb5 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/ff632facd38633a7e499b8f30c77f2ab0531fbb5#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653374) | Triggered | Generic Password | 7cd7163d8e664d8da514f2b8a8de65280b3ffa10 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/7cd7163d8e664d8da514f2b8a8de65280b3ffa10#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653738) | Triggered | Generic Password | caea10728c11c7871f1e016f767059530ae93bc7 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/caea10728c11c7871f1e016f767059530ae93bc7#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653943) | Triggered | Generic Password | 3699a814a4247463cfa50d3e6a6fc3e30c42a64c | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/3699a814a4247463cfa50d3e6a6fc3e30c42a64c#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653950) | Triggered | Generic Password | e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653959) | Triggered | Generic Password | 6d3dad53a38e29c01242af8a18952c2fea2f24e7 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/6d3dad53a38e29c01242af8a18952c2fea2f24e7#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653964) | Triggered | Generic Password | be9f77e0b49985b6c743f0c8bd8564a7941dcaf4 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/be9f77e0b49985b6c743f0c8bd8564a7941dcaf4#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653972) | Triggered | Generic Password | d2fb268d3b96696d068b21f1d9170154454f84e0 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/d2fb268d3b96696d068b21f1d9170154454f84e0#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653986) | Triggered | Generic Password | 819335170292f497b6de787316ff230a9092555b | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/819335170292f497b6de787316ff230a9092555b#diff-30f99d9586b218337b8da9b053c476452ef2937ad01f117c493276abf50f7b83R63) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126421864) | Triggered | Generic Password | fc2f01157f5ed7da8d0c4bd6241f2fa69c97e92d | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/fc2f01157f5ed7da8d0c4bd6241f2fa69c97e92d#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653370) | Triggered | Generic Password | 5bd553f0ca0e782ba185070cc0f0ee6e1f304625 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/5bd553f0ca0e782ba185070cc0f0ee6e1f304625#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653375) | Triggered | Generic Password | 7cd7163d8e664d8da514f2b8a8de65280b3ffa10 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/7cd7163d8e664d8da514f2b8a8de65280b3ffa10#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653736) | Triggered | Generic Password | caea10728c11c7871f1e016f767059530ae93bc7 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/caea10728c11c7871f1e016f767059530ae93bc7#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653944) | Triggered | Generic Password | 3699a814a4247463cfa50d3e6a6fc3e30c42a64c | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/3699a814a4247463cfa50d3e6a6fc3e30c42a64c#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653948) | Triggered | Generic Password | e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653957) | Triggered | Generic Password | 6d3dad53a38e29c01242af8a18952c2fea2f24e7 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/6d3dad53a38e29c01242af8a18952c2fea2f24e7#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653966) | Triggered | Generic Password | be9f77e0b49985b6c743f0c8bd8564a7941dcaf4 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/be9f77e0b49985b6c743f0c8bd8564a7941dcaf4#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653974) | Triggered | Generic Password | d2fb268d3b96696d068b21f1d9170154454f84e0 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/d2fb268d3b96696d068b21f1d9170154454f84e0#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653985) | Triggered | Generic Password | 819335170292f497b6de787316ff230a9092555b | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/819335170292f497b6de787316ff230a9092555b#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR177) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126421862) | Triggered | Generic Password | fc2f01157f5ed7da8d0c4bd6241f2fa69c97e92d | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/fc2f01157f5ed7da8d0c4bd6241f2fa69c97e92d#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126421863) | Triggered | Generic Password | fc2f01157f5ed7da8d0c4bd6241f2fa69c97e92d | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/fc2f01157f5ed7da8d0c4bd6241f2fa69c97e92d#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126421865) | Triggered | Generic Password | fc2f01157f5ed7da8d0c4bd6241f2fa69c97e92d | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/fc2f01157f5ed7da8d0c4bd6241f2fa69c97e92d#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653367) | Triggered | Generic Password | 5bd553f0ca0e782ba185070cc0f0ee6e1f304625 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/5bd553f0ca0e782ba185070cc0f0ee6e1f304625#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653368) | Triggered | Generic Password | 5bd553f0ca0e782ba185070cc0f0ee6e1f304625 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/5bd553f0ca0e782ba185070cc0f0ee6e1f304625#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653369) | Triggered | Generic Password | 5bd553f0ca0e782ba185070cc0f0ee6e1f304625 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/5bd553f0ca0e782ba185070cc0f0ee6e1f304625#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653376) | Triggered | Generic Password | 7cd7163d8e664d8da514f2b8a8de65280b3ffa10 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/7cd7163d8e664d8da514f2b8a8de65280b3ffa10#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653377) | Triggered | Generic Password | 7cd7163d8e664d8da514f2b8a8de65280b3ffa10 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/7cd7163d8e664d8da514f2b8a8de65280b3ffa10#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653378) | Triggered | Generic Password | 7cd7163d8e664d8da514f2b8a8de65280b3ffa10 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/7cd7163d8e664d8da514f2b8a8de65280b3ffa10#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653733) | Triggered | Generic Password | caea10728c11c7871f1e016f767059530ae93bc7 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/caea10728c11c7871f1e016f767059530ae93bc7#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653734) | Triggered | Generic Password | caea10728c11c7871f1e016f767059530ae93bc7 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/caea10728c11c7871f1e016f767059530ae93bc7#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653737) | Triggered | Generic Password | caea10728c11c7871f1e016f767059530ae93bc7 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/caea10728c11c7871f1e016f767059530ae93bc7#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653940) | Triggered | Generic Password | 3699a814a4247463cfa50d3e6a6fc3e30c42a64c | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/3699a814a4247463cfa50d3e6a6fc3e30c42a64c#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653941) | Triggered | Generic Password | 3699a814a4247463cfa50d3e6a6fc3e30c42a64c | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/3699a814a4247463cfa50d3e6a6fc3e30c42a64c#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653942) | Triggered | Generic Password | 3699a814a4247463cfa50d3e6a6fc3e30c42a64c | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/3699a814a4247463cfa50d3e6a6fc3e30c42a64c#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653947) | Triggered | Generic Password | e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653951) | Triggered | Generic Password | e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653952) | Triggered | Generic Password | e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653956) | Triggered | Generic Password | 6d3dad53a38e29c01242af8a18952c2fea2f24e7 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/6d3dad53a38e29c01242af8a18952c2fea2f24e7#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653960) | Triggered | Generic Password | 6d3dad53a38e29c01242af8a18952c2fea2f24e7 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/6d3dad53a38e29c01242af8a18952c2fea2f24e7#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653962) | Triggered | Generic Password | 6d3dad53a38e29c01242af8a18952c2fea2f24e7 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/6d3dad53a38e29c01242af8a18952c2fea2f24e7#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653967) | Triggered | Generic Password | be9f77e0b49985b6c743f0c8bd8564a7941dcaf4 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/be9f77e0b49985b6c743f0c8bd8564a7941dcaf4#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653968) | Triggered | Generic Password | be9f77e0b49985b6c743f0c8bd8564a7941dcaf4 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/be9f77e0b49985b6c743f0c8bd8564a7941dcaf4#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653970) | Triggered | Generic Password | be9f77e0b49985b6c743f0c8bd8564a7941dcaf4 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/be9f77e0b49985b6c743f0c8bd8564a7941dcaf4#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653971) | Triggered | Generic Password | d2fb268d3b96696d068b21f1d9170154454f84e0 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/d2fb268d3b96696d068b21f1d9170154454f84e0#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653973) | Triggered | Generic Password | d2fb268d3b96696d068b21f1d9170154454f84e0 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/d2fb268d3b96696d068b21f1d9170154454f84e0#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653976) | Triggered | Generic Password | d2fb268d3b96696d068b21f1d9170154454f84e0 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/d2fb268d3b96696d068b21f1d9170154454f84e0#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653984) | Triggered | Generic Password | 819335170292f497b6de787316ff230a9092555b | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/819335170292f497b6de787316ff230a9092555b#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653987) | Triggered | Generic Password | 819335170292f497b6de787316ff230a9092555b | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/819335170292f497b6de787316ff230a9092555b#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653989) | Triggered | Generic Password | 819335170292f497b6de787316ff230a9092555b | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/819335170292f497b6de787316ff230a9092555b#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR176) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126458066) | Triggered | Username Password | c2b53308273211e4c795fff2591978ec9215d15d | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/c2b53308273211e4c795fff2591978ec9215d15d#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cR21) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126459131) | Triggered | Username Password | bf8d676c83de77d3e889e3d6032332c5509df2f3 | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/bf8d676c83de77d3e889e3d6032332c5509df2f3#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cR21) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126460287) | Triggered | Username Password | 64af47f1ce23b91458848f2c6923cd869f2ecd35 | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/64af47f1ce23b91458848f2c6923cd869f2ecd35#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cR21) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126466301) | Triggered | Username Password | 879fb1d99e382381f6bae7634318f240327cd8cf | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/879fb1d99e382381f6bae7634318f240327cd8cf#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cR27) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126467002) | Triggered | Username Password | dd1272b0cc0b884fd3d1593054a38a84c67847fa | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/dd1272b0cc0b884fd3d1593054a38a84c67847fa#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cR21) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126474156) | Triggered | Username Password | f097363bd9134d9ac74c69fbd5e083c837a7144f | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/f097363bd9134d9ac74c69fbd5e083c837a7144f#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cL27) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126653949) | Triggered | Username Password | e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167 | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/e76ed6d2378bfaf16dd920d4dcb87ec5f07ba167#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cL21) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126653958) | Triggered | Username Password | 6d3dad53a38e29c01242af8a18952c2fea2f24e7 | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/6d3dad53a38e29c01242af8a18952c2fea2f24e7#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cL21) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126653965) | Triggered | Username Password | be9f77e0b49985b6c743f0c8bd8564a7941dcaf4 | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/be9f77e0b49985b6c743f0c8bd8564a7941dcaf4#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cL21) | | [9884708](https://dashboard.gitguardian.com/incidents/9884708?occurrence=126653975) | Triggered | Username Password | d2fb268d3b96696d068b21f1d9170154454f84e0 | .env.sample | [View secret](https://github.com/thevahidal/soul/commit/d2fb268d3b96696d068b21f1d9170154454f84e0#diff-088d9f35d23a4347d221d71dd49b02b95001dff4abe637a40fe0bc04d502049cL21) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/secrets-detection-engine/detectors/generics/username_password#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!