What you will have at the end
The Route payments-api and the Upstream it sends traffic to, copied from the Staging Environment to Production without retyping anything, with the secrets left behind on purpose. You will have read what each copy changes before it was written, and found the copies in Production’s audit log with the Environment they came from.
Prerequisites
- Two Environments, and a role that may manage Routes and Upstreams in the target. The dialog lists only the targets your role allows.
- The Route in the source Environment. If it refers to an Upstream, Service or Consumer, those are copied first.
Step 1: open the dialog
Open the Route or Upstream in the source Environment and choose Copy to environment… from its menu. Choose the target, and the dialog reads the target before anything is written. What will change lists what it found:
- Missing dependencies. Objects the copy refers to that do not exist in the target yet. A Route whose Upstream is not there is named like this, and the engine refuses the Route until the Upstream is copied first.
- Secrets. Copied only while Copy secrets too is selected. Left unselected, every secret of the object is listed as dropped, by its path, with the note that it has to be set again in the target.
- What will change. If the object already exists in the target, the copy replaces it, and the lines it adds and removes are listed with a count.

Step 2: copy the Upstream, then the Route
Open in Production takes you to a new-object page in the target, filled with the copy. A banner says where it came from and what was dropped, the id is kept so that the copy replaces an existing object rather than creating a second one, and nothing is written until you select Create. The page below is the Upstream payments-backend on its way to Production; the Route follows the same way once the Upstream exists there.

Step 3: copy a change to an object that already exists
Edit the Route in Staging and open the dialog again. Now the Route exists in Production, so the dialog says the copy replaces it and shows the lines that differ; with Copy secrets too unselected, the three secrets of this Route are listed as dropped above the diff.

What the audit log keeps
The create in the target is an audit record of the target Environment, and its details carry copied_from with the source Environment and object. The record below is from the first copy of this Route, made with Copy secrets too selected; that is why the three masked paths appear as changed, with their values masked in the record.

Protected Environments
In a protected Environment, destructive actions ask for the resource name before they run; the Environments page marks such an Environment as Protected. The copy itself is a change like any other: it passes the role check in the target and is recorded in the target’s audit log.
What to do next
- Read what an audit record keeps and how a refused change looks: Who changed what.
- The promotion flow and the roles around it are described on Change control and audit.