Skip to content

Commit

Permalink
Merge pull request #119/#118 from NicolasOmar/fix/solve-security-issu…
Browse files Browse the repository at this point in the history
…es-back-end

Solve security issues in back end
  • Loading branch information
NicolasOmar authored Sep 26, 2023
2 parents e8e8ee4 + 16d1975 commit a4d3523
Show file tree
Hide file tree
Showing 7 changed files with 216 additions and 137 deletions.
10 changes: 9 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
"node/exports-style": ["error", "module.exports"],
"node/no-unsupported-features/es-syntax": ["off"],
"node/no-exports-assign": "error",
"node/no-deprecated-api": 2
"node/no-deprecated-api": 2,
"node/no-unpublished-import": [
"error",
{
"allowModules": [
"graphql-depth-limit"
]
}
]
}
}
3 changes: 2 additions & 1 deletion env/local.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ CONNECTION_URL=mongodb://127.0.0.1:27017/my-pets
JWT_SECRET=thisIsMyLocalSecret
CRYPT_SECRET=mySecretLocalItIs
CRYPT_METH=Rabbit
API_VERSION=0.1.18
CRYPT_SALT=8
API_VERSION=0.2.8
API_ENVIRONMENT=LOCAL
PLAYGROUND_URL=http://localhost:4000/graphql
REPOISTORY_URL=https://github.com/NicolasOmar/my-pets-api
Expand Down
3 changes: 2 additions & 1 deletion env/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ CONNECTION_URL=mongodb://127.0.0.1:27017/my-pets-test
JWT_SECRET=thisIsMyTestSecret
CRYPT_SECRET=mySecretTestItIs
CRYPT_METH=Rabbit
API_VERSION=0.1.18
CRYPT_SALT=8
API_VERSION=0.2.8
API_ENVIRONMENT=TESTING
PLAYGROUND_URL=http://localhost:4001/graphql
REPOISTORY_URL=https://github.com/NicolasOmar/my-pets-api
Expand Down
Loading

0 comments on commit a4d3523

Please sign in to comment.