Skip to content

remove full service account token from system log file #3012

Closed
@jimangel

Description

@jimangel
Environment
Dashboard version: v1.8.2
Kubernetes version: v1.9.6
Operating system: Ubuntu 16.04.4 LTS
Go version: v1.9.3
Steps to reproduce
  1. Login to dashboard using a service account token
  2. cat /var/log/containers/kubernetes-dashboard* | grep token
Observed result

You can see the full token stored in the logs

Expected result

The token should be redacted for security or only visible at a certain level of logging (eg: debug / verbose)

Comments

We ship our logs out to an external ELK server and support multi-tenancy for both ELK and k8s. As a result, anyone who has ELK access can see our admin service account.

I see value in the logs containing the token if you're troubleshooting, but I don't think it should be the default. A solution could be to accept an argument for the level of logging or change the log file path destination outside of the container logs getting shipped to ELK.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions