Skip to content

Variables are not supported for configuring the module. #22

Open
@rcosnita

Description

@rcosnita

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.

Activity

rcosnita

rcosnita commented on Oct 27, 2020

@rcosnita
Author

I will provide a PR for addressing this issue.

added a commit that references this issue on Oct 28, 2020
44bc895
added a commit that references this issue on Oct 28, 2020
99662f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @rcosnita

      Issue actions

        Variables are not supported for configuring the module. · Issue #22 · openresty/encrypted-session-nginx-module