MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / redact_token

Function redact_token

gateway/src/admin_service.rs:783–790  ·  view source on GitHub ↗
(token: &str)

Source from the content-addressed store, hash-verified

781}
782
783fn redact_token(token: &str) -> String {
784 let len = token.len();
785 if len <= 8 {
786 "*".repeat(len)
787 } else {
788 format!("{}...{}", &token[..4], &token[len - 4..])
789 }
790}
791
792/// Convert proto ZtDomainConfig to internal ZtDomainConfig
793fn proto_to_zt_domain_config(

Callers 1

dns_cred_to_protoFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected