Skip to content
Open
Show file tree
Hide file tree
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
38 changes: 37 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ arrayvec = { version = "0.7", features = ["serde"] }
async-channel = "2.3.1"
async-trait = "0.1.83"
axum = "0.8.1"
axum-extra = { version = "0.12.6", features = ["middleware"] }
axum-extra = { version = "0.12.6", features = ["middleware", "typed-header"] }
axum-server = "0.8.0"
base64 = "0.23.1"
bytes = "1.10.0"
Expand Down
6 changes: 5 additions & 1 deletion custom-domains/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ pub enum TaskKind {
pub struct InputTask {
pub kind: TaskKind,
pub domain: String,
// Whether to also include a `*.domain` wildcard SAN in the certificate
/// Whether to also include a `*.domain` wildcard SAN in the certificate
pub wildcard: Option<bool>,
/// The canister ID associated with the domain (if known at submission time)
pub canister_id: Option<Principal>,
}

#[derive(CandidType, Deserialize, Serialize, Debug, Clone, PartialEq, Eq, new)]
Expand All @@ -91,6 +93,8 @@ pub struct ScheduledTask {
pub enc_cert: Option<Vec<u8>>,
// Whether to also include a `*.domain` wildcard SAN in the certificate
pub wildcard: Option<bool>,
/// The canister ID associated with the domain (if known at submission time)
pub canister_id: Option<Principal>,
}

#[derive(CandidType, Deserialize, Serialize, Clone, Debug)]
Expand Down
4 changes: 4 additions & 0 deletions custom-domains/canister/canister_backend.did
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ type InputTask = record {
domain: text;
// Whether to also include a *.domain wildcard SAN in the certificate
wildcard: opt bool;
// The canister ID associated with the domain (if known at submission time)
canister_id: opt principal;
};

// Reasons why a task might fail
Expand Down Expand Up @@ -99,6 +101,8 @@ type ScheduledTask = record {
enc_cert: opt blob;
// Whether to also include a *.domain wildcard SAN in the certificate
wildcard: opt bool;
// The canister ID associated with the domain (if known at submission time)
canister_id: opt principal;
};

// Status of a domain
Expand Down
Loading
Loading