Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

False positive on 5.4.2 Ensure the GKE Metadata Server is Enabled #25

Open
@dinvlad

Description

Hi Team,

We're seeing false-positives reported for "5.4.2 Ensure the GKE Metadata Server is Enabled" control. More specifically, we have a project with one and only cluster, on which Workload Metadata is enabled. When I query this cluster using

gcloud beta container clusters describe <cluster> --region <region> --project <project> --format json \
  | jq '.nodePools[].config.workloadMetadataConfig'

it returns

{
  "mode": "GKE_METADATA",
  "nodeMetadata": "GKE_METADATA_SERVER"
}
{
  "mode": "GKE_METADATA",
  "nodeMetadata": "GKE_METADATA_SERVER"
}
{
  "mode": "GKE_METADATA",
  "nodeMetadata": "GKE_METADATA_SERVER"
}

for the 3 node pools that we have on it.

However, when running the latest Git version of GKE CIS for this project, it reports

Cluster <region>/<cluster>, Node Pool: batch config.workload_meta_config.mode is expected to be in "GCE_METADATA" and "GKE_METADATA"

for each of these pools.

Thanks

Metadata

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