Bug 1759118

Summary: kube-state-metrics: new feature exposing annotations as metrics can lead to information disclosure
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alegrand, anpicker, bmontgom, eparis, erooth, jburrell, jokerman, kakkoyun, lcosic, mloibl, nstielau, pkrupa, sfowler, sponnaga, surbania
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-01 23:41:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1759119    

Description Marian Rehak 2019-10-07 12:50:57 UTC
A combination of the default kubectl behavior and this new feature can cause the entire secret content to end up in metric labels, thus inadvertently exposing the secret content in metrics.

Upstream advisory:

https://github.com/kubernetes/kube-state-metrics/releases/tag/v1.7.2

Comment 1 Sam Fowler 2019-12-01 23:41:32 UTC

*** This bug has been marked as a duplicate of bug 1740431 ***