eclipse-tractusx / eclipse-tractusx/tractusx-testlab

Support dynamic secret injection and log masking during TCK execution

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
1
Forks
3
Avg merge
1d 15h
Merged PRs (30d)
21

Description

### Description
As the core execution engine,
I need to securely accept dynamic secrets and ensure they are masked in all outputs,
so that sensitive tenant data is never leaked in execution traces, reports, or stdout logs.

### Acceptance Criteria

- [ ] **Context Injection:** Extend the engine's `ExecutionContext` (or equivalent configuration model) to accept a dictionary/map of temporary secrets passed.
- [ ] **Secret Masking:** Implement a sanitization/masking utility that automatically replaces the actual secret values with `***MASKED***` before any data is written to execution traces, output files, or terminal logs.
- [ ] **Assertion Safety:** Ensure that if an assertion fails, the error message does not expose the secret value (e.g., comparing a masked string in the output instead of the raw secret).
- [ ] **Documentation:** Add a brief guide or example in the repository demonstrating how the backend should inject these secrets when launching a TCK job.

Contributor guide

Open the contributing guide

Research direction

Start by locating the engine's ExecutionContext or equivalent configuration model and trace how execution data reaches traces, output files, terminal logs, and assertion errors. Define the masking behavior for injected temporary secrets across each output path, then add the requested backend injection guide or example and verify that failed assertions do not reveal raw secret values.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, documentation, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.