Skip to content

Conversation

wallrj-cyberark
Copy link
Member

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

Enhance service discovery to return multiple APIs. This allows us to also discover the URL of the discoverycontext / inventory API, so that we will no longer have to compute the URL ourselves...which is brittle if the API maintainers change the API domains or paths.

  • Updated DiscoverIdentityAPIURL to DiscoverServices for broader API support
  • Added Services struct to encapsulate multiple service endpoints
  • Refactored dependent modules to use the new DiscoverServices method
  • Adjusted tests and mock data to align with the updated service discovery logic
  • Removed unused platformDomain variable in dataupload_test.go

Follow up PRs

@wallrj-cyberark wallrj-cyberark changed the title [VC-43403] feat(servicediscovery): enhance service discovery to return multiple APIs [VC-43403] CyberArk: enhance service discovery to return multiple APIs Aug 27, 2025
@wallrj-cyberark wallrj-cyberark force-pushed the VC-43403-dataupload-client branch from a49662f to 5bd316d Compare August 27, 2025 15:49
@wallrj-cyberark wallrj-cyberark force-pushed the VC-43403-dataupload-client branch from 5bd316d to 3fa015d Compare August 27, 2025 16:48
@wallrj-cyberark wallrj-cyberark force-pushed the VC-43403-servicediscovery-inventory-api branch from ff781e3 to b82d7ce Compare August 27, 2025 16:58
Base automatically changed from VC-43403-dataupload-client to master August 28, 2025 09:06
@wallrj-cyberark wallrj-cyberark marked this pull request as ready for review August 28, 2025 09:07
@wallrj-cyberark wallrj-cyberark force-pushed the VC-43403-servicediscovery-inventory-api branch 2 times, most recently from 31f3e37 to 78859a8 Compare August 28, 2025 10:01
…d API

- Replaced `DiscoverIdentityAPIURL` with `DiscoverServices` to fetch all
  service endpoints in a single call.
- Updated `Services` struct to include `Identity` and `DiscoveryContext`
  endpoints.
- Refactored dependent modules (`dataupload`, `identity`) to use the new
  `DiscoverServices` method.
- Adjusted tests and mock server to align with the new service discovery
  implementation.
- Removed redundant `platformDomain` logic from `dataupload_test.go`.
@wallrj-cyberark wallrj-cyberark force-pushed the VC-43403-servicediscovery-inventory-api branch from 78859a8 to 1a40e3f Compare August 28, 2025 10:02
Copy link
Member

@maelvls maelvls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me, this one was easy to review. Thanks! 🙏

@wallrj-cyberark wallrj-cyberark merged commit 7490f89 into master Aug 28, 2025
2 checks passed
@wallrj-cyberark wallrj-cyberark deleted the VC-43403-servicediscovery-inventory-api branch August 28, 2025 12:11
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