Skip to content

Allow to disable via configuration the packages and propertySources keys of the environment endpoint response #11799

Open
@sdelamo

Description

@sdelamo

Feature description

By default the env endpoint returns a JSON Object such as:

{
"activeEnvironments": ...
"packages": 
"propertySources": 
}

I would like to be able to return just:

{
"activeEnvironments": ...
}

For example to be able to know which environments my application is using without having to check the logs.

It would be good to be able to have configuration property endpoints.env.keys with a List of Strings wit the default value ['activeEnvironments','packages','propertySources']

Users will be able to expose only `activeEnvironments by setting:

endpoints.env.keys[0]=activeEnvironments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions