Skip to content

[VC-43753] CyberArk Discovery and Context: Use a namespaces datagatherer to get the cluster ID #687

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

Draft
wants to merge 1 commit into
base: VC-43403-inventory-api-2
Choose a base branch
from

Conversation

wallrj-cyberark
Copy link
Contributor

@wallrj-cyberark wallrj-cyberark commented Aug 13, 2025

The problem with the first approach to getting the cluster ID (#670), -- the UID of the kube-system namespace -- is that it requires the agent to have a connection to a target Kubernetes cluster at startup.
But this breaks one of operating modes of the agent; it is designed so data can be collected and stored to a file by one instance, (--one-shot --output-file) and then the data read from a file and uploaded to Venafi TLSPK (or CyberArk Discovery) by another separate instance (--one-shot --input-file).

In this alternative approach, we use a dynamic data-gatherer to get all the namespaces, and extract the UID from the kube-system namespace before uploading to CyberArk.

Part of: https://venafi.atlassian.net/browse/VC-43753

Related PRs

  1. [VC-43753] CyberArk Discovery and Context: Use sha3 checksum in snapshot-links API request #686
  2. [VC-43753] CyberArk Discovery and Context: Upload data in the JSON format required by the API #684
  3. 🟢[VC-43753] CyberArk Discovery and Context: Use a namespaces datagatherer to get the cluster ID #687

@wallrj-cyberark wallrj-cyberark changed the title Use a namespaces datagatherer to get the cluster ID [VC-43753] Use a namespaces datagatherer to get the cluster ID Aug 13, 2025
@wallrj-cyberark wallrj-cyberark force-pushed the VC-43403-inventory-api-2 branch 2 times, most recently from 88c1cc7 to 8b9a233 Compare August 13, 2025 21:34
Remove obsolete clusteruid package

Signed-off-by: Richard Wall <[email protected]>
@wallrj-cyberark wallrj-cyberark force-pushed the VC-43403-inventory-api-3 branch from 6e029d7 to 4c3cbe5 Compare August 13, 2025 21:57
@wallrj-cyberark wallrj-cyberark changed the title [VC-43753] Use a namespaces datagatherer to get the cluster ID [VC-43753] CyberArk Discovery and Context: Use a namespaces datagatherer to get the cluster ID Aug 14, 2025
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

Successfully merging this pull request may close these issues.

2 participants