Add new stack.epr.base_url profile setting#3235
Merged
mrodm merged 22 commits intoelastic:mainfrom Jan 30, 2026
Merged
Conversation
5 tasks
mrodm
commented
Jan 29, 2026
Comment on lines
+126
to
127
| // Currently, this command does not use profile, so we take the URL from the application configuration | ||
| registryClient := registry.NewClient(appConfig.PackageRegistryBaseURL()) |
Contributor
Author
There was a problem hiding this comment.
status command will just take into account the setting in the configuration file ~/.elastic-package/config.yml. Currently, it does not use any profile setting.
Collaborator
💛 Build succeeded, but was flaky
Failed CI StepsHistory
cc @mrodm |
jsoriano
approved these changes
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #3232
Part of #2993
Fixes #2993
This PR is based on the changes in #3232 and includes a new profile setting
stack.epr.base_url.This new profile setting should be considered in those commands that require to run package-registry queries (e.g. elastic-package stack up or elastic-package status).
It is based on the elastic-package configuration (
~/.elastic-package/config.yml):Example:
This PR keeps the same default values:
In the case of the package registry, the value from the configuration file will be taken into consideration for the following commands such as:
stackUpfunction)This PR also takes into account:
stack.epr.proxy_to. This configuration, if set, will take precedence to get the value to fill the value for the EPR_PROXY_TO environment variable in the packge-registry Dockerfile.stack.epr.base_url. This configuration, if set, will take precedence to get the URL used to query the Package Registry.If those profile settings are not set, the one from the elastic-package configuration file will
Author's checklist
) is kept when changing the profiles (elastic-package profiles use`).How to test this PR locally
~/.elastic-package/config.ymlincluding:elastic-package statuswith different parameters:environmentprovider: