fix: skip "onlyReturnExisting" if it's set to false#203
Conversation
There was a problem hiding this comment.
👋 Thanks for the patch.
This would fix issues creating new accounts in the Actalis ACME directory.
I think this is a bug that Actalis should fix regardless of a change on our side. Have you reported it to them?
RFC 8555 specs this field as an optional boolean and so seeing it present with the false value is wasted bytes on the wire from a semantic point of view, but certainly not invalid from a protocol point of view. They should process the new account request as normal.
Well, I haven't reported this to Actalis yet... In current upstream When "onlyReturnExisting" JSON field is omitted (like it's on my fork, when |
I think it's worthwhile. The behaviour you're describing is a bug in their ACME implementation and will continue to cause interop. issues with other standards compliant ACME clients in the future.
There's no RFC text that justifies this API response and that's the crux of the bug they should fix. The value is allowed to be present+false, and should only be processed when it's both present+true. |
For example: eggsampler/acme#29 ! |
This pull request causes
instant-acmeto skip serializing the "onlyReturnExisting" field, ifonly_return_existingfield ofinstant_acme::NewAccountstruct is set tofalse.This would fix issues creating new accounts in the Actalis ACME directory.
I have seen a note about the
only_return_existingfield: