#4705·connect

日志中暴露的 URL 秘密

作者: ndaprela创建于 2026年8月18日更新于 2026年8月18日
  1. Clone the repository and build the project:
bash
git clone https://GitHub.com/redpanda-data/connect
cd connect
task build:redpanda-connect
  1. Create the test YAML config file:
cat > config.yaml <<'EOF'
input:
  nats:
    urls:
      - nats://127.0.0.1:4222
      - nats://[email protected]:4222
      - nats://demo_user:[email protected]:4222
    subject: test.subject
    auth:
      user: separate_user
      password: separate_password
output:
  drop: {}
EOF
  1. Run the following command:
target/redpanda-connect echo config.yaml
  1. Notice that while the input.nats.auth.password field is redacted, the element of input.nats.urls which contains a password is not.

内容来源: redpanda-data/connect