openresty / openresty/encrypted-session-nginx-module
Variables are not supported for configuring the module.
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 203
- Forks
- 50
- Avg merge
- 1h 25m
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the handling of the encrypted_session_key and encrypted_session_iv directives and trace how their arguments are interpreted when the configuration is loaded. Verify the supplied nginx configuration example, including variable expansion and per-session IV behavior, and add coverage for the expected result if the repository provides relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, nginx
- Domain
- backend, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100