Skip to content

Conversation

@jsoriano
Copy link
Member

Part of #2993.

Add a new profile setting, stack.epr_proxy_to, that can be used to configure the Package Registry that the local instance uses to proxy its requests to for retrieving packages that are not available locally.

How to test

Using the flag

Start a local stack using the profile parameter, for example:

elastic-package stack up -d --provider compose -U stack.epr_proxy_to=https://epr-staging.elastic.co

Check the following:

  • Command output includes this:
    - Proxy to https://epr-staging.elastic.co
    
  • ~/.elastic-package/profiles/default/stack/Dockerfile.package-registry includes this line (assuming current profile is default):
    ENV EPR_PROXY_TO=https://epr-staging.elastic.co
    
  • Go to https://localhost:4601, browse the integrations UI and check the logs of the Package Registry container, look for entries with "request.uri":"https://epr-staging.elastic.co....

Using the profile configuration file

Edit ~/.elastic-package/profiles/default/config.yml, or create it if it doesn't exist. Add this line:

stack.epr_proxy_to: "https://epr-staging.elastic.co"

Start a local stack using the profile parameter, for example:

elastic-package stack up -d --provider compose

Check the same things as in the previous case.

@jsoriano jsoriano self-assigned this Nov 26, 2025
@jsoriano jsoriano requested a review from a team November 26, 2025 15:27
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

@jsoriano jsoriano merged commit 3409db3 into elastic:main Nov 27, 2025
3 checks passed
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.

3 participants