Skip to content

Commit e0295b6

Browse files
committed
feat(credentials): support firmware artifact access tokens
Signed-off-by: Jay Zhu <jayzhu@nvidia.com>
1 parent aedc0c7 commit e0295b6

27 files changed

Lines changed: 654 additions & 25 deletions

File tree

crates/admin-cli/src/credential/add_bmc/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ impl TryFrom<Args> for forgerpc::CredentialCreationRequest {
6060
password,
6161
mac_address: args.mac_address.map(|mac| mac.to_string()),
6262
vendor: None,
63+
credential_name: None,
6364
})
6465
}
6566
}

crates/admin-cli/src/credential/add_dpu_factory_default/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ impl From<Args> for forgerpc::CredentialCreationRequest {
5353
password: args.password,
5454
mac_address: None,
5555
vendor: Some(args.model.to_string()),
56+
credential_name: None,
5657
}
5758
}
5859
}

crates/admin-cli/src/credential/add_host_factory_default/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl From<Args> for forgerpc::CredentialCreationRequest {
4444
password: args.password,
4545
mac_address: None,
4646
vendor: Some(args.vendor.to_string()),
47+
credential_name: None,
4748
}
4849
}
4950
}

crates/admin-cli/src/credential/add_nic_lockdown_ikm/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl TryFrom<Args> for forgerpc::CredentialCreationRequest {
4444
password,
4545
mac_address: None,
4646
vendor: None,
47+
credential_name: None,
4748
})
4849
}
4950
}

crates/admin-cli/src/credential/add_uefi/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ impl TryFrom<Args> for forgerpc::CredentialCreationRequest {
5454
password,
5555
mac_address: None,
5656
vendor: None,
57+
credential_name: None,
5758
})
5859
}
5960
}

crates/admin-cli/src/credential/add_ufm/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl TryFrom<Args> for forgerpc::CredentialCreationRequest {
4747
password: args.token,
4848
mac_address: None,
4949
vendor: None,
50+
credential_name: None,
5051
})
5152
}
5253
}

crates/admin-cli/src/credential/bgp/delete_sitewide/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ impl From<Args> for forgerpc::CredentialDeletionRequest {
2727
credential_type: CredentialType::BgpSiteWideLeafPassword.into(),
2828
username: None,
2929
mac_address: None,
30+
credential_name: None,
3031
}
3132
}
3233
}

crates/admin-cli/src/credential/bgp/set_sitewide/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl TryFrom<Args> for forgerpc::CredentialCreationRequest {
4444
password: password_validator(args.password)?,
4545
mac_address: None,
4646
vendor: None,
47+
credential_name: None,
4748
})
4849
}
4950
}

crates/admin-cli/src/credential/delete_bmc/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ impl From<Args> for forgerpc::CredentialDeletionRequest {
5050
credential_type: CredentialType::from(args.kind).into(),
5151
username: None,
5252
mac_address: args.mac_address.map(|mac| mac.to_string()),
53+
credential_name: None,
5354
}
5455
}
5556
}

crates/admin-cli/src/credential/delete_ufm/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl TryFrom<Args> for forgerpc::CredentialDeletionRequest {
4242
credential_type: CredentialType::Ufm.into(),
4343
username: Some(username),
4444
mac_address: None,
45+
credential_name: None,
4546
})
4647
}
4748
}

0 commit comments

Comments
 (0)