日志中暴露的 URL 秘密
作者: ndaprela创建于 2026年8月18日更新于 2026年8月18日
- Clone the repository and build the project:
git clone https://GitHub.com/redpanda-data/connect
cd connect
task build:redpanda-connect- 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- Run the following command:
target/redpanda-connect echo config.yaml- Notice that while the
input.nats.auth.passwordfield is redacted, the element ofinput.nats.urlswhich contains a password is not.
内容来源: redpanda-data/connect