developer_activity_authorization_header_key (redaction.rs)

clawdstrike · auth

Helper key function redacting→ retrieve ASCII hashmap

// Source: https://github.com/backbay-labs/clawdstrike | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use super::*;

pub(crate) fn redact_developer_activity_command_line(command_line: &str) -> String {
    let command_line = redact_developer_activity_jsonish_secret_fields(command_line);
    let parts = command_line
        .split_whitespace()
        .map(ToString::to_string)
        .collect::<Vec<_>>();
    let redacted = redact_developer_activity_args(&parts).join(" ");

    if redacted != command_line.as_str() {
        redacted
    } else if developer_activity_secret_like_value(&command_line) {
        "[REDACTED]".to_string()
    } else {
        redacted
    }
}

pub(crate

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key