Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to delete none whitelisted domains in certificate update #112

Merged
merged 4 commits into from
Mar 27, 2024

Conversation

yuweizzz
Copy link
Contributor

fix: #85

@@ -332,10 +333,23 @@ function AUTOSSL.check_renew(premature)
goto continue
end

local domain = deserialized.domain
if not AUTOSSL.is_domain_whitelisted(domain, true) then
log(ngx_INFO, "domain ", domain, " not in whitelist, skipping")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log(ngx_INFO, "domain ", domain, " not in whitelist, skipping")
log(ngx_INFO, "domain ", domain, " not in whitelist but exists in storage, skipping renewal")

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you will actually delete the not whitelisted domain afterwards, it's not always "skipping". so this log line will need to move to after Line 345 and don't show if AUTOSSL.config.enabled_delete_not_whitelisted_domain is true.

@yuweizzz yuweizzz requested a review from fffonion March 26, 2024 03:05
@fffonion fffonion merged commit 1bbf39c into fffonion:master Mar 27, 2024
5 checks passed
@fffonion
Copy link
Owner

Thank you @yuweizzz !

kikito pushed a commit to Kong/kong that referenced this pull request Apr 23, 2024
### Summary

#### [0.13.0] - 2024-03-28
##### bug fixes
- **autossl:** log the errors on the list certificates request ([#110](fffonion/lua-resty-acme#110)) [6c9760f](fffonion/lua-resty-acme@6c9760f)

#### features
- **autossl:** add option to delete none whitelisted domains in certificate renewal ([#112](fffonion/lua-resty-acme#112)) [1bbf39c](fffonion/lua-resty-acme@1bbf39c)

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
bungle added a commit to Kong/kong that referenced this pull request Apr 23, 2024
### Summary

#### [0.13.0] - 2024-03-28
##### bug fixes
- **autossl:** log the errors on the list certificates request ([#110](fffonion/lua-resty-acme#110)) [6c9760f](fffonion/lua-resty-acme@6c9760f)

#### features
- **autossl:** add option to delete none whitelisted domains in certificate renewal ([#112](fffonion/lua-resty-acme#112)) [1bbf39c](fffonion/lua-resty-acme@1bbf39c)

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to delete none whitelisted domains in certificate update
2 participants