fix client encrypted password (#105)

* fix client encrypted password

* fix client encrypted password

* fix failing testcase
This commit is contained in:
Hoan Luu Huu
2023-06-16 07:47:31 +07:00
committed by GitHub
parent c37d417a69
commit 6e47e37cc2
3 changed files with 11 additions and 9 deletions

View File

@@ -33,6 +33,8 @@ Configuration is provided via environment variables:
|K8S| service running as kubernetes service |no|
|K8S_RTPENGINE_SERVICE_NAME| rtpengine service name(required for K8S) |no|
|K8S_FEATURE_SERVER_SERVICE_NAME| feature server service name(required for K8S) |no|
|JWT_SECRET| secret for signing JWT token |yes|
|ENCRYPTION_SECRET| secret for credential encryption(JWT_SECRET is deprecated) |yes|
##### drachtio server location
```

14
package-lock.json generated
View File

@@ -10,7 +10,7 @@
"license": "MIT",
"dependencies": {
"@jambonz/db-helpers": "^0.9.1",
"@jambonz/digest-utils": "^0.0.2",
"@jambonz/digest-utils": "^0.0.3",
"@jambonz/http-health-check": "^0.0.1",
"@jambonz/realtimedb-helpers": "^0.8.6",
"@jambonz/rtpengine-utils": "^0.4.3",
@@ -612,9 +612,9 @@
}
},
"node_modules/@jambonz/digest-utils": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/@jambonz/digest-utils/-/digest-utils-0.0.2.tgz",
"integrity": "sha512-TcUpHQZZ+69mnU6wA3pBcq17l9NbRZCQLJY7g/i9eaRONpAfw6vYkRWF7GtIaJat9Gu18tVs4idHvbfiqx40tA==",
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/@jambonz/digest-utils/-/digest-utils-0.0.3.tgz",
"integrity": "sha512-iv9O2wMKPM3dU9eXyNWYD5hwxKKQ2/LkR5TgqvpbsyAN/Ow46rISb5hL2GJtNRoV4AyfLBNCLcqdIVIDMb20yw==",
"dependencies": {
"bent": "^7.3.12",
"debug": "^4.3.4",
@@ -5759,9 +5759,9 @@
}
},
"@jambonz/digest-utils": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/@jambonz/digest-utils/-/digest-utils-0.0.2.tgz",
"integrity": "sha512-TcUpHQZZ+69mnU6wA3pBcq17l9NbRZCQLJY7g/i9eaRONpAfw6vYkRWF7GtIaJat9Gu18tVs4idHvbfiqx40tA==",
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/@jambonz/digest-utils/-/digest-utils-0.0.3.tgz",
"integrity": "sha512-iv9O2wMKPM3dU9eXyNWYD5hwxKKQ2/LkR5TgqvpbsyAN/Ow46rISb5hL2GJtNRoV4AyfLBNCLcqdIVIDMb20yw==",
"requires": {
"bent": "^7.3.12",
"debug": "^4.3.4",

View File

@@ -20,7 +20,7 @@
},
"scripts": {
"start": "node app",
"test": "NODE_ENV=test HTTP_PORT=3050 JAMBONES_NETWORK_CIDR='127.0.0.1/32' JAMBONES_HOSTING=1 SBC_ACCOUNT_SID=ed649e33-e771-403a-8c99-1780eabbc803 JAMBONES_TIME_SERIES_HOST=127.0.0.1 JAMBONES_MYSQL_HOST=127.0.0.1 JAMBONES_MYSQL_USER=jambones_test JAMBONES_MYSQL_PASSWORD=jambones_test JAMBONES_MYSQL_DATABASE=jambones_test JAMBONES_REDIS_HOST=localhost JAMBONES_REDIS_PORT=16379 JAMBONES_LOGLEVEL=error DRACHTIO_SECRET=cymru DRACHTIO_HOST=127.0.0.1 DRACHTIO_PORT=9060 JAMBONES_RTPENGINES=127.0.0.1:12222 JAMBONES_FEATURE_SERVERS=172.38.0.11 node test/ ",
"test": "NODE_ENV=test HTTP_PORT=3050 JAMBONES_NETWORK_CIDR='127.0.0.1/32' JAMBONES_HOSTING=1 JWT_SECRET=foobarbazzle SBC_ACCOUNT_SID=ed649e33-e771-403a-8c99-1780eabbc803 JAMBONES_TIME_SERIES_HOST=127.0.0.1 JAMBONES_MYSQL_HOST=127.0.0.1 JAMBONES_MYSQL_USER=jambones_test JAMBONES_MYSQL_PASSWORD=jambones_test JAMBONES_MYSQL_DATABASE=jambones_test JAMBONES_REDIS_HOST=localhost JAMBONES_REDIS_PORT=16379 JAMBONES_LOGLEVEL=error DRACHTIO_SECRET=cymru DRACHTIO_HOST=127.0.0.1 DRACHTIO_PORT=9060 JAMBONES_RTPENGINES=127.0.0.1:12222 JAMBONES_FEATURE_SERVERS=172.38.0.11 node test/ ",
"coverage": "./node_modules/.bin/nyc --reporter html --report-dir ./coverage npm run test",
"jslint": "eslint app.js lib"
},
@@ -32,7 +32,7 @@
"@jambonz/siprec-client-utils": "^0.2.5",
"@jambonz/stats-collector": "^0.1.8",
"@jambonz/time-series": "^0.2.5",
"@jambonz/digest-utils": "^0.0.2",
"@jambonz/digest-utils": "^0.0.3",
"aws-sdk": "^2.1354.0",
"bent": "^7.3.12",
"cidr-matcher": "^2.1.1",