Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

kube_config_raw revealed in Build Logs #802

@faheem556

Description

@faheem556

Describe the bug:
Cluster credentials are printed out to the console in the build logs.

To Reproduce:
Run terraform apply and see the output logs.

Expected behavior:
Cluster credentials are saved to the output config without being displayed to the console.

Screenshots:

module.aks.null_resource.cluster_credentials[0]: Creating...
module.aks.null_resource.cluster_credentials[0]: Provisioning with 'local-exec'...
module.aks.null_resource.cluster_credentials[0] (local-exec): Executing: ["/bin/sh" "-c" "if [ ! -e ./output ]; then mkdir -p ./output; fi && echo \"apiVersion: v1\nclusters:\n- cluster:\n    certificate-authority-data: ...\n    server: https://....hcp.eastus.azmk8s.io:443\n  name: ... \ncontexts:\n- context:\n    cluster: A...\n    user: ...\n  name: ...\nkind: Config\npreferences: {}\nusers:\n- name: ...\n  user:\n    client-certificate-data: ...\n    client-key-data: ...\n    token: ...\n\" > ./output/kube_config"]
module.aks.null_resource.cluster_credentials[0]: Creation complete after 0s [id=6020571218102932175]

Additional context:

Does this require updates to documentation?:
I don't think it would be desired behavior. There should a big red warning in the code if it's the desired behavior.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions