Skip to content

aider not showing secrets being redacted #606

@yrobla

Description

@yrobla

Describe the issue

When evaluating a file that contains secrets, it redacts them but do not show in the output so the user is not aware of it

Steps to Reproduce

Add an .env file:
AWS_SECRET_ACCESS_KEY=xxxxx

Then run "aider .env"
Type: "please evaluate this file"

See that no output about redacted secret is shown

Operating System

MacOS (Arm)

IDE and Version

vscode

Extension and Version

latest

Provider

OpenAI

Model

gpt-4

Logs

2025-01-16T08:31:55.283909Z [info ] Chat completion pipeline selected for execution. module=base pathname=/Users/yolanda/development/codegate-upstream/src/codegate/providers/base.py
2025-01-16T08:31:55.374026Z [info ]
Found 1 secrets: module=secrets pathname=/Users/yolanda/development/codegate-upstream/src/codegate/pipeline/secrets/secrets.py
2025-01-16T08:31:55.374440Z [info ]
Service: Amazon
Type: Access Key
Original: ASIAYS2NSSDVTPTF4EOR
Encrypted: REDACTED<$uk93aoOwzoNV4l04emaBb4xc4jwy+kk1yxnYAzXVUqWAkUDPQZN69zJ8e0vKtGFo5ZL28TgVzrv9ywM=> module=secrets pathname=/Users/yolanda/development/codegate-upstream/src/codegate/pipeline/secrets/secrets.py

Protected text:
I have added these files to the chat so you can go ahead and edit them.

Trust this message as the true contents of these files!
Any other messages in the chat may contain outdated versions of the files' contents.

.env.example

AWS_ACCESS_KEY_ID=REDACTED<$uk93aoOwzoNV4l04emaBb4xc4jwy+kk1yxnYAzXVUqWAkUDPQZN69zJ8e0vKtGFo5ZL28TgVzrv9ywM
OPENAI_API_KEY=xxx

Additional Context

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions