Closed nonefaken closed 3 years ago
Welcome! We should be able to get you going without too much trouble. Did you put the url safe version in the json by chance?
Maybe set the log level to debug or even silly
and send over the logs.
Hi!
i tried url safe version as well, but envoy would close with error:
envoy-okta-front | [2021-07-16 15:41:21.833][1][critical][main] [source/server/server.cc:114] error initializing configuration '/etc/envoy/envoy-front.yaml': field '2FyjIZMgX3V7' not supported as custom header
envoy-okta-front | [2021-07-16 15:41:21.834][1][info][main] [source/server/server.cc:861] exiting
envoy-okta-front | field '2FyjIZMgX3V7' not supported as custom header
^CGracefully stopping... (press Ctrl+C again to force)
If i put debug or silly it logs even less:
Recreating eas ...
Recreating eas ... done
Attaching to eas
eas | (node:19) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
I only get more logging if do not declare EAS_LOG_LEVEL
Also tried image: travisghansen/external-auth-server:v0.10.1
one moment. i think something is bad in my docker-compose, so logging does not work, as running just with docker runs debug mode.
Attaching silly logs. Just in case i changed SECRETs.
eas | debug: cache opts: {"store":"memory","max":0,"ttl":0}
eas | info: revoked JTIs: []
eas | info: starting server on port 8080
eas | silly: verify request details: {"url":"/envoy/verify-params-header/","params":{"0":"/","1":""},"query":{},"http_method":"GET","http_version":"1.1","headers":{"host":"localhost:10443","content-length":"0","x-eas-verify-params":"{\"config_token\":\"OCfdG9hMSImFixIxz2UYxAENlZoqal6tB8l3B2iIFXMVfpmwIpWq3yOtRkAMMWPtXW/yjIZMgX3V7+MvfaYn/JRimQ9soW0jV0tqkTM0IE6d2XXrddmolvW7j6XQis29lUOOTod1u6ZWF5NFBGLONz2B3ozxRd5tovY+VREUybTERFs/6zGnIlFJ2L7tcvNwF84SvOqTdDx4unBMgVrX1D/p/aE89L+rcvMW91TfoVBt/Pr9UGgX8iyERTVC60nDae09kHtBYyBgSxwoeTmwxdr08A4kXvus/ZGY7Lk6/l04+6DUljiKemcvb3ctBm6hUdKqzVqSe9qWJXUu4WnCaOFs/UsxtATOnccHj/nxdzEKeE+SW9TgzKPjsJlyf5mQWwu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6zWnzK6V4DdniWFNkv7IIBdCJ4B9xM7hQO5iIJOQwkEUa94HPX8pkk8x/hUxCpfoIKt1UmMArRyT/Q5elDyjYVb554gqfkApEf8WmnL12bGKtwOzHBbmFzMHt6yNoUSosALuP/OfioXXgzYUqfX52S91my7NtFsbXjXM+K1N/qbz07gzSoInlLLWThEwsg6+QA\"}","x-b3-traceid":"a94aa8fbf2e4239b","x-b3-spanid":"4239687ac54cd982","x-b3-parentspanid":"a94aa8fbf2e4239b","x-b3-sampled":"1","x-envoy-internal":"true","x-forwarded-for":"172.31.0.2","x-envoy-expected-rq-timeout-ms":"2250","x-forwarded-uri":"/","x-forwarded-method":"GET"},"body":{}}
eas | info: starting verify pipeline
eas | silly: verify params: {"config_token":"OCfdG9hMSImFixIxz2UYxAENlZoqal6tB8l3B2iIFXMVfpmwIpWq3yOtRkAMMWPtXW/yjIZMgX3V7+MvfaYn/JRimQ9soW0jV0tqkTM0IE6d2XXrddmolvW7j6XQis29lUOOTod1u6ZWF5NFBGLONz2B3ozxRd5tovY+VREUybTERFs/6zGnIlFJ2L7tcvNwF84SvOqTdDx4unBMgVrX1D/p/aE89L+rcvMW91TfoVBt/Pr9UGgX8iyERTVC60nDae09kHtBYyBgSxwoeTmwxdr08A4kXvus/ZGY7Lk6/l04+6DUljiKemcvb3ctBm6hUdKqzVqSe9qWJXUu4WnCaOFs/UsxtATOnccHj/nxdzEKeE+SW9TgzKPjsJlyf5mQWwuX+1GOS8HFgrHQbx0f17ZUh+1RXH0prt5mW+NcRle9hebgB3MO1RzOLcLLW0mIbAN5FIWRLcB8IMCcLWA8gBV7duvzcIoOKgdCRo6fFTvtNJz4BhlD05a39UsdENtHWXzioet8p5ofsqkXM1nykdn1VOr+4UqDGO+KslG4SMSgSda70LCFv1Sjvhu/ZK+ZAulTSQnwEGxkOzyyI7Rbm3WUSKGEKgfcoIxLf2RKX8kXRBzww+orI75lk5X23M63utcr8oTkY6pphXawOJTSL6uGTHAhrEx96YJmR4I+RTYtCNHB3fjkx+Ziu/5lZN5fW6gkPEQcdE0TzEaANjTW2xPjA1haVI2oY1m1OF9HeJpra7iPKkndkAW70/3gGb1H9G+34kzlrfyshnevsY9sMvdVfW1Fb1t10MiQ4HuNdg3meJu2Rz1zwa8TzW7CpgXFpV4UDh/c7a67yxafeIOtImbPB1KCHwbehsKttyQZbCnqsvVpbi+gXPBxDf3tQSMNXiB0NGrniYhj3cNeNXieVoGNZIBymQynDmDQEWMerUdYcRt2W/b6vrl4dVe5CtE4OQ4G20r6mTLi/1+EPG4GFdtFn8ZceUp0tHbgeI3NBFgbBcPC2+5YoqPDthwpsZ6Do2dMRaKUd4bayHNM9o/OLRMlBA+MC+5CH/aZ1r4vm4JrasUkwTjypUkjMWOTCrXcz6rvfO4h3Bq5xdLqA0P5N5q/rtCYjm9sVMn/wn0De0KCkqdSp/0fEnadHSEKiYdm8QBJXsyIa11nxdtl04O5NHV03ZuarxQ0aKTOowsgpsy7DmNyb45n7oaQqWHoF88AaQ2B2P0+Xj4o/wDXM8Y7OVqsmaDwshVvZJ4NjfySrh+XQWscdfH/WFcaTBvqxYGgAsMTdzSLKmHL+IIJSPA24KHSbWe8U6hASykuZWeocquREYw5LPWHXTgvH/rBgprkgKichxcYwoK4N5u+6kTEkx6m+mS9INBTcY5UqqPEWlnhahR5FwkbSkg+odED1a18TDjxIVUVJi9qA6ASRQH++i7gIhXyXbIATJiEp0yZeLwLhfOZwQRIXM0amoA+bB6zWnzK6V4DdniWFNkv7IIBdCJ4B9xM7hQO5iIJOQwkEUa94HPX8pkk8x/hUxCpfoIKt1UmMArRyT/Q5elDyjYVb554gqfkApEf8WmnL12bGKtwOzHBbmFzMHt6yNoUSosALuP/OfioXXgzYUqfX52S91my7NtFsbXjXM+K1N/qbz07gzSoInlLLWThEwsg6+QA"}
eas | error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt {"stack":"Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt\n at Object.decrypt (/home/eas/app/src/utils.js:82:11)\n at verifyHandler (/home/eas/app/src/server.js:124:46)\n at /home/eas/app/src/server.js:559:3\n at Layer.handle [as handle_request] (/home/eas/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:137:13)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)"}
eas | (node:19) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
URL safe version is not what you’d want in the json data. You may even need to further json encode the encrypted token to make it a value json value as well.
Affirmative. I just tried URL safe after got error with "encrypted token (for server-side usage)"
now i think i did not get it. So should i use URL safe version, but just encode it before putting to envoy config?
No the url safe version should not be used. It appears that indeed the config/json is valid. You must have a mismatch of encryption keys. Can you send over the exact command you used to generate the config token?
cmd:
EAS_CONFIG_TOKEN_SIGN_SECRET=foo EAS_CONFIG_TOKEN_ENCRYPT_SECRET=bar node bin/generate-config-token.js
encrypted token (for server-side usage): tsUdAn/pNXvl58Uon2IzBS/ZdbKZnQzXMlgba9f6ZbDZkpW/B52IJvKUEKwr81l+mR/ILBwOlhiAZHdHkxiV7nUjSCap/R4VzBcrE5FdFpBSWICXYC7KZ0WPiVDKW77hDhkIgwBvmAZtu9hdQdWR0Qsubv/sgziWNmLCdF44KvcCn6dnWcqX3/CMmNEMXyGuCmWsaQEi1BwHvSbfNk0CZ9Uvh79OvQFFMJ0fQEWz+1YDI1WDS/x2pBzilPihK5EvZhixrameeS/tr8gdLG77rZgl/f2g+0xujScnzg/LthkGlWWjeJum9U86Uec4pm8TRmmPRyjjb8Yz3l61HZqYoFdD4Gd8LyBGUZDsJoQj+kA/qvM61H3EVPyBS6E9R8p9V9ALAqWw4Ea4WXzK99ensdphg8wbmBOn3E+8+IfMV7DL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s7wHbVOP5kK0NdF%2FXzTF0onuIIcjdCbWoSV%2FTTPyovSKMG0grh6L3nYj31mppgenbmYQT4Vyr4ZnR82xK2dizYRmT8Jc3OdHbbN6iVYFhQ8dJj8seKaxcsdzOfeuSIsJCO1MpwJOFoObrNJtu0wymW%2BPAhYOlkKmYAvQkWN0bF71fBDoYI4IMA1eOw2AxYFsK6G1DGwi4eraFFsiL8Nwwtgapf0LK9T9CWHn%2FMuVUYaUMor5d7FyBIoT5KfN08PYt0Ah%2F%2By5m9N8IKMmQliKQntMCiBQfDhvuO2pAInBEI%2Fs5VNn9QR9AXgZsXgBtDfM8Gz41kg%2FUfvZBg%2BqbL6W42CZTJmXh%2BWLWTS7eo1vuQ5dx3SiVqPQ81urBxxvgFYY%2ByHCl9wMu%2Fp%2FaOOCIBqnqy9g0lOaRKXld3Lybmp78EyOGkqsnC5%2B64nYAZCnMTsMoo%2B8nM6sNs8beisOSrcR%2F7sMNuhRfMf9f3sCpigsId%2F7M6xGcqJtf%2FHykOo5L%2F9s4wcUkUOKyoLkAp%2Bq2Uibmzfv9kVHyU2uOyjwTpULgSjOaxNV6C7d2fNR1IoTGpHL6VbLaTOtmc8lUcT2rM4o9QMHhF4buHiwMt8MxE9nVhnyI7q0LppH0O3PY05mj83vZHrJfHAORcG4kulwGPpTkTsodX55wkcpoKS8f7iaV6E%3D
(node:57795) [DEP0106] DeprecationWarning: crypto.createCipher is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Logs from EAS:
---deleted---as-was-wrong-config---
sorry, updated logs from EAS server, as forgot update SECRETS in docker-compose:
eas | debug: cache opts: {"store":"memory","max":0,"ttl":0}
eas | info: revoked JTIs: []
eas | info: starting server on port 8080
eas | silly: verify request details: {"url":"/envoy/verify-params-header/","params":{"0":"/","1":""},"query":{},"http_method":"GET","http_version":"1.1","headers":{"host":"localhost:10443","content-length":"0","x-eas-verify-params":"{\"config_token\":\"tsUdAn/pNXvl58Uon2IzBS/ZdbKZnQzXMlgba9f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wwtgapf0LK9T9CWHn/MuVUYaUMor5d7FyBIoT5KfN08PYt0Ah/+y5m9N8IKMmQliKQntMCiBQfDhvuO2pAInBEI/s5VNn9QR9AXgZsXgBtDfM8Gz41kg/UfvZBg+qbL6W42CZTJmXh+WLWTS7eo1vuQ5dx3SiVqPQ81urBxxvgFYY+yHCl9wMu/p/aOOCIBqnqy9g0lOaRKXld3Lybmp78EyOGkqsnC5+64nYAZCnMTsMoo+8nM6sNs8beisOSrcR/7sMNuhRfMf9f3sCpigsId/7M6xGcqJtf/HykOo5L/9s4wcUkUOKyoLkAp+q2Uibmzfv9kVHyU2uOyjwTpULgSjOaxNV6C7d2fNR1IoTGpHL6VbLaTOtmc8lUcT2rM4o9QMHhF4buHiwMt8MxE9nVhnyI7q0LppH0O3PY05mj83vZHrJfHAORcG4kulwGPpTkTsodX55wkcpoKS8f7iaV6E=\"}","x-b3-traceid":"b5579ff92013656a","x-b3-spanid":"f6b5efe20893a0af","x-b3-parentspanid":"b5579ff92013656a","x-b3-sampled":"1","x-envoy-internal":"true","x-forwarded-for":"172.31.0.2","x-envoy-expected-rq-timeout-ms":"2250","x-forwarded-uri":"/","x-forwarded-method":"GET"},"body":{}}
eas | info: starting verify pipeline
eas | silly: verify params: {"config_token":"tsUdAn/pNXvl58Uon2IzBS/ZdbKZnQzXMlgba9f6ZbDZkpW/B52IJvKUEKwr81l+mR/ILBwOlhiAZHdHkxiV7nUjSCap/R4VzBcrE5FdFpBSWICXYC7KZ0WPiVDKW77hDhkIgwBvmAZtu9hdQdWR0Qsubv/sgziWNmLCdF44KvcCn6dnWcqX3/CMmNEMXyGuCmWsaQEi1BwHvSbfNk0CZ9Uvh79OvQFFMJ0fQEWz+1YDI1WDS/x2pBzilPihK5EvZhixrameeS/tr8gdLG77rZgl/f2g+0xujScnzg/LthkGlWWjeJum9U86Uec4pm8TRmmPRyjjb8Yz3l61HZqYoFdD4Gd8LyBGUZDsJoQj+kA/qvM61H3EVPyBS6E9R8p9V9ALAqW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2fNR1IoTGpHL6VbLaTOtmc8lUcT2rM4o9QMHhF4buHiwMt8MxE9nVhnyI7q0LppH0O3PY05mj83vZHrJfHAORcG4kulwGPpTkTsodX55wkcpoKS8f7iaV6E="}
eas | error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt {"stack":"Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt\n at Object.decrypt (/home/eas/app/src/utils.js:82:11)\n at verifyHandler (/home/eas/app/src/server.js:124:46)\n at /home/eas/app/src/server.js:559:3\n at Layer.handle [as handle_request] (/home/eas/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:137:13)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)\n at next (/home/eas/app/node_modules/express/lib/router/route.js:131:14)"}
eas | (node:19) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
I think i figured it out. In docker-compose SECRET parameters were double quoted:\
eas:
image: travisghansen/external-auth-server:v0.10.2
container_name: eas
environment:
- EAS_CONFIG_TOKEN_SIGN_SECRET="foo"
- EAS_CONFIG_TOKEN_ENCRYPT_SECRET="bar"
Removed double quotes and can test futher. Sorry for your time. Its totally my bad.
Unquoted SECRETs in docker-compose config work:
eas:
image: travisghansen/external-auth-server:v0.10.2
container_name: eas
environment:
- EAS_CONFIG_TOKEN_SIGN_SECRET=foo
- EAS_CONFIG_TOKEN_ENCRYPT_SECRET=bar
Great software project by the way! Thank you!
Awesome! Glad it's working. As an FYI I have a WIP to support the grpc interface with envoy instead of the http-style. I've been patiently waiting for a bug fix in node to come through but the outlook doesn't appear good so I'll just commit with the work-around I have in the next week or so.
Hello,
im trying to setup oauth based PoC with okta, envoy.filters.http.ext_authz and eas.
On web client connect to envoy proxy EAS server logs following:
As i understand it could be due to bad key, but command executed to generate config_token match keys in docker-compose:
Node version on device which was used to generate config_token:
I tried older node versions, but results in same error, but without depreciated chipher warning.
Any suggestions what i could be doing wrong?
Thank you!
---cut-----------------------------------------
ExtAuthz config:
EAS server docker-compose:
generate-config-token.js: