Remove stale TLSMode/HttpPublic exposure vestige
TLSMode (off/internal/letsencrypt) was only referenced by HttpPublic.tls, and HttpPublic (the expose.http.public field, still carrying a path_prefix and a tls defaulting to the deleted internal mode) was referenced by no config, generator, deploy code, or test — a leftover from the pre-proxy:bool exposure design. Drop the enum, the model, the public field, and both CLI shim re-exports.
This commit is contained in:
@@ -10,7 +10,6 @@ from castle_core.manifest import ( # noqa: F401 — explicit re-exports for typ
|
|||||||
ExposeSpec,
|
ExposeSpec,
|
||||||
HttpExposeSpec,
|
HttpExposeSpec,
|
||||||
HttpInternal,
|
HttpInternal,
|
||||||
HttpPublic,
|
|
||||||
JobSpec,
|
JobSpec,
|
||||||
ManageSpec,
|
ManageSpec,
|
||||||
ProgramSpec,
|
ProgramSpec,
|
||||||
@@ -26,5 +25,4 @@ from castle_core.manifest import ( # noqa: F401 — explicit re-exports for typ
|
|||||||
RunSpec,
|
RunSpec,
|
||||||
ServiceSpec,
|
ServiceSpec,
|
||||||
SystemdSpec,
|
SystemdSpec,
|
||||||
TLSMode,
|
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ class RestartPolicy(str, Enum):
|
|||||||
ALWAYS = "always"
|
ALWAYS = "always"
|
||||||
|
|
||||||
|
|
||||||
class TLSMode(str, Enum):
|
|
||||||
OFF = "off"
|
|
||||||
INTERNAL = "internal"
|
|
||||||
LETSENCRYPT = "letsencrypt"
|
|
||||||
|
|
||||||
|
|
||||||
# ---------------------
|
# ---------------------
|
||||||
# Run specs (discriminated union)
|
# Run specs (discriminated union)
|
||||||
# ---------------------
|
# ---------------------
|
||||||
@@ -129,15 +123,8 @@ class HttpInternal(BaseModel):
|
|||||||
unix_socket: str | None = None
|
unix_socket: str | None = None
|
||||||
|
|
||||||
|
|
||||||
class HttpPublic(BaseModel):
|
|
||||||
hostnames: list[str] = Field(min_length=1)
|
|
||||||
path_prefix: str = "/"
|
|
||||||
tls: TLSMode = TLSMode.INTERNAL
|
|
||||||
|
|
||||||
|
|
||||||
class HttpExposeSpec(BaseModel):
|
class HttpExposeSpec(BaseModel):
|
||||||
internal: HttpInternal
|
internal: HttpInternal
|
||||||
public: HttpPublic | None = None
|
|
||||||
health_path: str | None = None
|
health_path: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user