Skip to content

Hoist the shared EDGEZERO__STORES__* key derivation into edgezero-core #360

Description

@aram356

Found in review of #351.

edgezero-adapter-cloudflare (lib.rs:67-80) carries a derivation loop byte-identical to the Fastly adapter's runtime_env_keys: same (CONFIG, KV, SECRETS) iteration, same to_ascii_uppercase, same __NAME-always / __KEY-for-config-only rule. The rule is now written down in three places and unit-tested in one (the Fastly adapter, since #351).

Natural home is core, e.g. EnvConfig::store_keys(stores: StoresMetadata) -> Vec<String>, with each adapter concatenating its own fixed keys. One test then covers both adapters and cross-adapter drift becomes impossible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions