Setting secret variables for one environment overrides variables of default env

For Workes & Pages, what is the name of the domain?

sonuby-api

What is the issue or error you’re encountering

Setting secret variables for one worker environment overrides variables of the default environment.

What steps have you taken to resolve the issue?

Revert deployment

What are the steps to reproduce the issue?

Define two secret variables with the same key in different worker environments.

First set it for the default environment. Then deploy the changes.

Then set it for the additional environment. Then deploy the changes.

This should result in the default environment variables being overriden.

How are you setting the secrets? Environments today just means a whole different Worker so they cannot override without some misconfiguration and setting it on the wrong Worker.

Thank you for getting back to me so quickly. I have figured it out. It seems that setting the secrets through the dashboard was the problem as it overrode other environments. Using the CLI tools it worked.