Skip to content

New token format of edgekv_tokens.js incorrect #156

Open
@johanneseckerdal

Description

@johanneseckerdal

Hi,

it seems the token format is incorrect, when using the CLI to create the edgekv_tokens.js file.

akamai edgekv create token my-new-token --save_path=mypath --overwrite --staging=allow --production=allow --ewids=1234 --namespace=myspace+r

var edgekv_access_tokens = {
    "myspace" : { 
        "name": "my-new-token",
        "reference" : "xxxxxxxxxxxxxxxxxxxxxxxx"
    }
}
export { edgekv_access_tokens };

The field value myspace will cause the EdgeWorker to fail, with MISSING ACCESS TOKEN. No EdgeKV Access Token defined for namespace "myspace"

Expected field value is namespace-myspace, as per the documentation in https://techdocs.akamai.com/edgekv/docs/generate-and-retrieve-edgekv-access-tokens#edgeworker-id where the parent key names must start with namespace-

# akamai edgekv --version
1.9.0

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