Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement logs anonymization #57

Open
gtema opened this issue Jul 25, 2024 · 0 comments
Open

Implement logs anonymization #57

gtema opened this issue Jul 25, 2024 · 0 comments
Assignees

Comments

@gtema
Copy link

gtema commented Jul 25, 2024

We need to check whether logs contain sensitive information before we upload them to the storage. One potential idea would be to use trivy with following trivy-secret.yaml

rules:
  - id: openstack-application-credential
    category: OpenStack
    title: Application Credential
    severity: CRITICAL
    keywords:
      - application_credential_secret
    regex: (?i)['"]?application_credential_secret['"]?\s*(=|:)\s*['"]?(?P<secret>[0-9a-zA-Z\-_=]{8,90})['"]?
    secret-group-name: secret
  - id: password-credential
    category: General
    title: Password
    severity: CRITICAL
    keywords:
      - password
    regex: (?i)['"]?password['"]?\s*(=|:)\s*['"]?(?P<secret>[0-9a-zA-Z\-_=]{8,90})['"]?
    secret-group-name: secret
  - id: auth
    category: General
    title: HTTP Authorization
    severity: CRITICAL
    keywords:
      - Authorization
    regex: (?i)authorization:\s*['"]?(?P<type>\w+)\s(?P<secret>[0-9a-zA-Z\-_=]{8,90})['"]?
    secret-group-name: secret

Unfortunately it only reports findings with suggestions how to replace the line, but does not the replacing itself.

Maybe there are other tools out there, but we definitely need to be able to tune what to check (since i.e. application_credentials are pretty unique to OpenStack)

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

No branches or pull requests

2 participants