accept optional service identity
Summary: Use the service identity if present.
@@ -202,6 +202,9 @@ enum Command {
/// Options for compression
#[clap(flatten)]
compress_opts: CompressOpts,
+ /// Optional service identity for remote service ACL
+ #[clap(long)]
+ service_identity: Option<String>,
},
/// Replay historical data (interactive)
Replay {
@@ -317,7 +320,7 @@ enum DebugCommand {
// Whether or not to start a service to respond to network request
// (e.g. for stats collection or otherwise)
pub enum Service {
- On(Option<u16>),
+ On(Option<u16>, Option<String>),
Off,
}
@@ -678,13 +681,15 @@ fn real_main(init: init::InitToken) {
ref disable_disk_stat,
ref disable_exitstats,
ref compress_opts,
+ ref service_identity,
} => {
logutil::set_current_log_target(logutil::TargetLog::Term);
+ let service_identity = service_identity.clone();
run(
init,
debug,
below_config,
- Service::On(*port),
+ Service::On(*port, service_identity),
RedirectLogOnFail::Off,
|init, below_config, logger, errs| {
record(
