Skip to content

Add configurable active keys for environment endpoint (#11799) #11801

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

Open
wants to merge 1 commit into
base: 4.9.x
Choose a base branch
from

Conversation

ayagmar
Copy link

@ayagmar ayagmar commented May 14, 2025

This PR enhances the EnvironmentEndpoint to allow users to configure which sections are included in the response.

  • Adds a new configuration property: endpoints.env.activeKeys (e.g., "activeEnvironments,packages").
  • Valid sections: activeEnvironments, packages, propertySources.
  • Defaults to showing all sections if not configured.

This provides users more control over the data exposed by the /env endpoint.

@CLAassistant
Copy link

CLAassistant commented May 14, 2025

CLA assistant check
All committers have signed the CLA.

@graemerocher graemerocher requested a review from sdelamo May 14, 2025 07:35
@ayagmar ayagmar requested a review from altro3 May 14, 2025 21:46
@altro3
Copy link
Contributor

altro3 commented May 15, 2025

@sdelamo ping

@ayagmar
Copy link
Author

ayagmar commented May 19, 2025

ping @sdelamo

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.

Allow to disable via configuration the packages and propertySources keys of the environment endpoint response
3 participants