feat(credential): improve credential peer routing and visibility (#1971)

- improve credential peer filtering and related route lookup behavior
- expose credential peer information through CLI and API definitions
- add and refine tests for credential routing and peer interactions
This commit is contained in:
KKRainbow
2026-03-08 14:06:33 +08:00
committed by GitHub
parent f3db348b01
commit ef44027f57
8 changed files with 197 additions and 22 deletions
+2 -2
View File
@@ -372,7 +372,7 @@ enum CredentialSubCommand {
},
/// Revoke a credential by its ID
Revoke {
#[arg(help = "credential ID (public key base64)")]
#[arg(help = "credential ID (UUID)")]
credential_id: String,
},
/// List all active credentials
@@ -1440,7 +1440,7 @@ impl CommandHandler<'_> {
println!();
println!("To use this credential on a new node:");
println!(
" easytier-core --network-name <name> --secure-mode --credential {}",
" easytier-core --network-name <name> --secure-mode --credential {} -p <node-url>",
response.credential_secret
);
}