Skip to content

Add real-time log masking for IPs, SSH keys, and hostnames#3

Merged
deepssin merged 1 commit intodeepssin:openstack-localfrom
Adarsha1999:teuthology-log-mask
Dec 23, 2025
Merged

Add real-time log masking for IPs, SSH keys, and hostnames#3
deepssin merged 1 commit intodeepssin:openstack-localfrom
Adarsha1999:teuthology-log-mask

Conversation

@Adarsha1999
Copy link

@Adarsha1999 Adarsha1999 commented Dec 18, 2025

Add real-time log masking for sensitive data
This PR adds a logging filter that masks sensitive information (IPs, SSH keys, hostnames) in real-time during teuthology runs.
Changes
teuthology/util/logmask.py - New SensitiveDataFilter class
teuthology/init.py - Auto-enable masking on import
teuthology/task/ansible.py - Apply filter to ansible.log
teuthology/scrape.py - Apply filter to scrape.log

Log - http://10.0.196.88:8081/teuthology/ubuntu-2025-12-16_11:13:35-teuthology:nop-tentacle-distro-default-openstack/3098/teuthology.log

@deepssin deepssin merged commit e2274ff into deepssin:openstack-local Dec 23, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants