encrypted-session-nginx-module icon indicating copy to clipboard operation
encrypted-session-nginx-module copied to clipboard

Variables are not supported for configuring the module.

Open rcosnita opened this issue 4 years ago • 1 comments

It would be extremely beneficial to support variables while configuring the module. This will give us the possibility to implement rotating IV for each encrypted session.

In addition, it allows us to mix the current module nicely with other extensions: e.g njs. Here is an example about the desired behaviour:

set $encryptionKey "abcdefghijklmnopqrstuvwxyz123456";
set $encryptionIV "1234567812345678";

encrypted_session_key $encryptionKey;
encrypted_session_iv $encryptionIV;

I would expect this to work but unfortunately the code treats this literally.

rcosnita avatar Oct 27 '20 14:10 rcosnita

I will provide a PR for addressing this issue.

rcosnita avatar Oct 27 '20 14:10 rcosnita