Skip to content

EW CLI auth does not support wildcard domains nor propertyId #71

Open
@guillaume-fr

Description

@guillaume-fr

Edgeworkers CLI does not allow generating a token for a wildcard domain.

akamai ew auth '*.example.com'
We get the following error
ERROR: Creating auth token with secret is deprecated with version CLI 1.1.0. Please use your host name to create an authentication token.

We should update or remove isValidDomain(hostName) check
https://github.com/akamai/cli-edgeworkers/blob/master/src/edgeworkers/ew-cli-main.ts#L414

This should allow wildcard domain or propertyId as it is supported by API: https://techdocs.akamai.com/edgeworkers/reference/post-secure-token

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