auto-ssl / auto-ssl/lua-resty-auto-ssl

Set TTL for challenges stored in redis

Open
#242 2 comments 9 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
2k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

We are using auto-ssl to generate certs on the fly for custom domains owned by our customers. Once in a while someone sets a `CAA` record that prevents let's encrypt from issuing a cert. When this happens the challenge token in redis is not deleted and over time many hundreds can pile up. We are adding a check to the endpoint used in the `allow_domains` function to prevent this but in general it might be a good idea to set the TTL of challenge tokens to say 24 hours or at least expose a config parameter to do this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing where challenge tokens are stored in Redis and inspect the endpoint used by the allow_domains function. Confirm the intended 24-hour expiry behavior, then determine whether the TTL should be fixed or exposed as configuration; done means failed challenges no longer accumulate indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx, redis
Domain
backend, databases, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.