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

NAS-132836 / 25.04 / Fix ACME registration query #15080

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/middlewared/middlewared/api/v25_04_0/acme_registration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pydantic import Field

from middlewared.api.base import BaseModel, single_argument_args
from middlewared.api.base import BaseModel, LongString, single_argument_args


__all__ = [
Expand All @@ -13,6 +13,13 @@ class JWKCreate(BaseModel):
public_exponent: int = 65537


class ACMERegistrationBody(BaseModel):
id: int
contact: str
status: str
key: LongString


class ACMERegistrationEntry(BaseModel):
id: int
uri: str
Expand All @@ -22,6 +29,7 @@ class ACMERegistrationEntry(BaseModel):
new_nonce_uri: str
new_order_uri: str
revoke_cert_uri: str
body: ACMERegistrationBody


@single_argument_args('acme_registration_create')
Expand Down
Loading