INTEGRITY Cloudflare Docs

About

Version Management works through a combination of environments and versions.

stateDiagram-v2
    V2: Version 2
    V22: Version 2 <br/>(applied manually)
    V23: Version 2 <br/>(promoted from Development)
    V24: Version 2 <br/>(promoted from Staging)
    Revert: Production (rollback)
    V1: Version 1 <br/>(rolled back due to issues)
    V2 --> Development
    Development --> Staging
    Staging --> Production
    Production --> Revert
    state Development {
        V22
    }
    note right of Development
            At each level, test then promote the version.
        end note
    state Staging {
        V23
    }
    state Production {
        V24
    }
    state Revert {
        V1
    }
    note right of Revert
            Once promoted into an environment, a version can be rolled back.
        end note

Environments

An environment is a place to test different versions of your zone configurations.


After you enable version management, you will have the ability to create default environments:

When you create a new version, that version will be available to apply to your Development environment (or whatever environment has the lowest rank). Once you test a version in your Development environment, you would promote that version to the Staging environment and - with no issues - then promote it to Production.

To send traffic to specific environments, send requests to that environment that match the pattern specified in its traffic filters.

Versions

A version is a collection of configurations related to your zone, such as WAF custom rules and other optimization configurations.


Once you enable Version Management, Cloudflare will automatically create:

On the Environments page, you can create default environments for Production, Staging, and Development.

When your version is ready, you would then test and promote it through various environments until it reaches Production (or whatever your final environment is).

You can create a new version at any time by choosing to Clone an existing version, which automatically copies over configurations from an existing version.

Version configurations are applied to zone traffic when you promote a version to a new environment and then send traffic to that environment that matches the pattern specified in its traffic filters.