Uh oh!
There was an error while loading. Please reload this page.
Add redact feature for file uploads - #10
Conversation
1015f87 to
3d90e69Comparedcibot
commented
Mar 11, 2026
from change #10:
|
dcibot
commented
Mar 11, 2026
dcibot
commented
Mar 11, 2026
from change #10:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dcibot
commented
Mar 17, 2026
from change #10:
|
tonyskapunk
commented
Mar 19, 2026
recheck |
dcibot
commented
Mar 19, 2026
from change #10:
|
tonyskapunk
commented
Mar 26, 2026
recheck |
dcibot
commented
Mar 26, 2026
from change #10:
|
dcibot
commented
Apr 4, 2026
dcibot
commented
Apr 4, 2026
dcibot
commented
Apr 4, 2026
dcibot
commented
Apr 9, 2026
from change #10:
|
dcibot
commented
Apr 13, 2026
dcibot
commented
Apr 13, 2026
dcibot
commented
May 8, 2026
dcibot
commented
May 10, 2026
dcibot
commented
May 11, 2026
dcibot
commented
May 11, 2026
dcibot
commented
May 12, 2026
dcibot
commented
May 12, 2026
tonyskapunk
commented
Jun 17, 2026
Indeed 😞 my bad, I thought I could avoid the load into memory with file-like objects. I'll get rid of it and only use a single call. I'm including another way to load small files into memory but larger ones will be written to disk, consumers will be able to pass either to file when uploading them to the control server transparently, I can modify it if needed or if it turns not to be a good approach. |
dcibot
commented
Jun 17, 2026
from change #10:
|
dcibot
commented
Jun 17, 2026
from change #10:
|
dcibot
commented
Jun 17, 2026
from change #10:
|
dcibot
commented
Jun 17, 2026
from change #10:
|
dcibot
commented
Jun 17, 2026
dcibot
commented
Jun 24, 2026
from change #10:
|
dcibot
commented
Jun 24, 2026
dcibot
commented
Jun 25, 2026
dcibot
commented
Jun 25, 2026
dcibot
commented
Jun 25, 2026
Provide functions to strip sensitive data (tokens, credentials, pull secrets) from content before uploading to the DCI control server. A helper determines whether redaction is active, checking an environment variable first and falling back to a caller-provided default. This lets callers enable or disable redaction globally The API offers a file path and a string variant, both built on top of a line-by-line streaming. This keeps memory usage constant regardless of file size, which matters for large log and configuration files. Custom regex patterns can be supplied via environment variable, replacing the built-in defaults, to support project-specific secrets. Assisted-by: Claude Gitleaks-Sign: OC4zMC4wfDIwMjYtMDgtMTBUMjI6MTM6MTF8YzBlYjhlYjQ5YjVmMTk3N2VlOTJiZjk0NmM2MmZmZDUwMTY5ZDU4Yw== Gitleaks-Hash: 6f1eb83afc605505c0daf1dae6905745408162f062db4334044236205d3a36b8
dcibot
commented
Aug 21, 2026
tonyskapunk
commented
Aug 24, 2026
recheck |
Provide functions to strip sensitive data (tokens, credentials, pull secrets) from content before uploading to the DCI control server.
A helper determines whether redaction is active, checking an environment variable first and falling back to a caller-provided default. This lets callers enable or disable redaction globally
The API offers a file path and a string variant, both built on top of a line-by-line streaming. This keeps memory usage constant regardless of file size, which matters for large log and configuration files.
Custom regex patterns can be supplied via environment variable, replacing the built-in defaults, to support project-specific secrets.
Assisted-by: Claude
Gitleaks-Sign: OC4zMC4wfDIwMjYtMDYtMjRUMTQ6MDQ6MDl8ZjIwYjBhNTFiYTYxMjk5NjhmY2JhYWM5ZmI0ZDZiMjhhZmQwNjA4NA==
Gitleaks-Hash: 58e7a79cda4babef8a0a89ee58ac56d654994bde75c5f7dbc6475047626f62ba
This feature was initially included in dci-ansible as part of the dci callback plugin via distributedci/dci-ansible#4 but it will be required as well in dci-pipeline, thus making dciclient a better candidate for this functionality so its code can be reused in different places.
Later it mimic the file api, providing a single function to do multiple things, while convenient on the code it was not clear for the consumer, forcing to understand really well how to make use of it.
Now, it offers functions to redact based on content or file path. Making the api less complex.