thevahidal / soul

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

Update super-user feature #150

Closed AbegaM closed 6 months ago

AbegaM commented 7 months ago

Modifications

  1. Modified the cli.js file and added a new CLI command updateUser
  2. Added a function to modify the superusers metadata
IanMayo commented 7 months ago

There is a general issue in this PR where quotes are being corrected. IMHO this is a legacy issue in soul. We could do a separate PR to fix all of the quotes in the app. Then when we update our PR(s) they will inherit the fixed quotes. But, I suspect that will cause lots of painful conflicts. So, I think we'll have to live with this issue until we can merge this stuff back into develop. Then we can make the quotes consistent.

AbegaM commented 7 months ago

There is a general issue in this PR where quotes are being corrected. IMHO this is a legacy issue in soul. We could do a separate PR to fix all of the quotes in the app. Then when we update our PR(s) they will inherit the fixed quotes. But, I suspect that will cause lots of painful conflicts. So, I think we'll have to live with this issue until we can merge this stuff back into develop. Then we can make the quotes consistent.

Yes, this issue needs to be fixed, we can work on it after finishing the authentication feature

TahaKhanAbdalli commented 7 months ago

Hi There is an error while creating a super user. Because once we create the super user, make some changes to the code, and save it, By saving the changes, it tries to create a supper user again, which causes the app to crash. So we should need to validate that once the super user is already created, do not try to create the super user again.

AbegaM commented 7 months ago

Hi There is an error while creating a super user. Because once we create the super user, make some changes to the code, and save it, By saving the changes, it tries to create a supper user again, which causes the app to crash. So we should need to validate that once the super user is already created, do not try to create the super user again.

Hi @TahaKhanAbdalli , Could you please clarify the issue? because we are not creating a super user from the CLI, what you do is you first create a user via the /api/tables/_users/rows API, and then you update the user you created to a super user from the CLI

TahaKhanAbdalli commented 7 months ago

Basically I used this command to run the server. When I do yarn cli or yarn start --database chinook.db --port 8000 createsuperuser --username john --password 123456789 by passing in flags to create user it creates the db and creates the super user with given credentials. Whenever I restart the server it tries to re-run to create the user again which already exists and it causes the error something like user already exists and server crashes. I think instead of crashing the server it should check if user already exists then it shouldn't trigger the query to create user.

image

image

AbegaM commented 7 months ago

Hello @Muhammad Taha Khan , Could you please check this Readme file, i see you are passing a flag createsuperuser in the cli script but we dont have that script in the new PR, Could you please let me know which branch you are using for the test?

TahaKhanAbdalli commented 7 months ago

I was using 138_authentication branch for testing.

IanMayo commented 7 months ago

I was using 138_authentication branch for testing.

Hello @TahaKhanAbdalli - we're sequencing the PRs by each feature being in it's own branch, in it's own PR. So, you'll see this PR has its own branch.

AbegaM commented 7 months ago

@IanMayo Do you think it is better if we can change the updateuser CLI command to updatesuperuser? because we have said that we are using this command only to update the password and the is_superuser status of superusers but not normal users

IanMayo commented 7 months ago

Yes - that would prevent soul users thinking the command is for updating normal users.

Note: the tidying up in https://github.com/thevahidal/soul/tree/authentication_and_authorization has introduced a conflict that we need to fix in this branch. But, the conflict is quite understandable, and easy for us to fix. Note, once we update it in this branch, we may need to resolve it in downstream branches, but we may not. Nevertheless, it is worth promptly resolving the conflict in this PR, the conflicts only get more difficult to fix, if we leave them.

AbegaM commented 7 months ago

@thevahidal and @IanMayo The code is fixed based on the provided comments, @thevahidal Let us know if you have any other comments on this PR

AbegaM commented 7 months ago

Hello @thevahidal All of your new three comments in this PR are fixed, since the checkPasswordStrength function is in the next PR, i have called it in the controller function and we will be good when the next branch is merged into this one

gitguardian[bot] commented 6 months ago

⚠️ GitGuardian has uncovered 76 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) | | [9756676](https://dashboard.gitguardian.com/incidents/9756676?occurrence=126654000) | Triggered | Username Password | 4ad85ccf799fa48fa831ebf23c85f9bbce68ab58 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/4ad85ccf799fa48fa831ebf23c85f9bbce68ab58#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) | | [9756677](https://dashboard.gitguardian.com/incidents/9756677?occurrence=126653997) | Triggered | Generic Password | 4ad85ccf799fa48fa831ebf23c85f9bbce68ab58 | src/tests/testData.js | [View secret](https://github.com/thevahidal/soul/commit/4ad85ccf799fa48fa831ebf23c85f9bbce68ab58#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) | | [9863580](https://dashboard.gitguardian.com/incidents/9863580?occurrence=126653995) | Triggered | Generic Password | 4ad85ccf799fa48fa831ebf23c85f9bbce68ab58 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/4ad85ccf799fa48fa831ebf23c85f9bbce68ab58#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) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653996) | Triggered | Generic Password | 4ad85ccf799fa48fa831ebf23c85f9bbce68ab58 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/4ad85ccf799fa48fa831ebf23c85f9bbce68ab58#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR132) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653998) | Triggered | Generic Password | 4ad85ccf799fa48fa831ebf23c85f9bbce68ab58 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/4ad85ccf799fa48fa831ebf23c85f9bbce68ab58#diff-ef7d90439bd409c744bf0f9cbb06565b7f7294573fc4d1ac62c58dc4a6c46d0dR150) | | [9863581](https://dashboard.gitguardian.com/incidents/9863581?occurrence=126653999) | Triggered | Generic Password | 4ad85ccf799fa48fa831ebf23c85f9bbce68ab58 | src/swagger/index.js | [View secret](https://github.com/thevahidal/soul/commit/4ad85ccf799fa48fa831ebf23c85f9bbce68ab58#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!