mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
[PR #11] [MERGED] fixed logic to check status from our challenge #658
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dehydrated-io/dehydrated/pull/11
Author: @germeier
Created: 12/6/2015
Status: ✅ Merged
Merged: 12/6/2015
Merged by: @lukas2511
Base:
master← Head:fixpending📝 Commits (1)
76a3783fixed logic to check status from our challenge📊 Changes
1 file changed (+9 additions, -6 deletions)
View changed files
📝
letsencrypt.sh(+9 -6)📄 Description
the old code had a problem and would interpret a challenge that
returned "pending" and then "invalid" as valid.
This code actually has another problem. The RFC defines:
"status (optional, string): The status of this authorization.
Possible values are: "pending", "valid", and "invalid". If this
field is missing, then the default value is "pending"."
So actually the correct way to implement this would be:
while -z "${status}" || ; do
But without further checks this might lead to an endless loop. So this
is "good enough(tm)". ;)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.