Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After recent changes on Akamai create/refresh/download tokens fails when decoding JWT #155

Open
ciandt-crodrigues opened this issue Sep 4, 2024 · 9 comments

Comments

@ciandt-crodrigues
Copy link

Commands like
akamai edgekv create token token1 --overwrite --staging=allow --production=allow --ewids=all --namespace=default+rwd --expiry=9999-12-31
or
akamai edgekv download token token1

fails with error "Error while trying to decode the JWT token"

the reason is because this was not updated to reflect the recent changes on the token described here

It is a real problem for me because my pipeline uses download to retrieve the token to build new edgeworker versions (because we should not version tokens on our version control)

the issue is probably here:

Please Release a fix for this ASAP!

@paul-bartlett
Copy link
Collaborator

Working on a release that should address this right now, should be out later today or early tomorrow

@paul-bartlett
Copy link
Collaborator

Release just went out, can you update and try again?

@ciandt-crodrigues
Copy link
Author

I can confirm it is working now.
But no new version? I found strange having it with the same version as before but the code is different

@paul-bartlett
Copy link
Collaborator

Did you run akamai edgekv --version? I bumped to 1.9.0 for this release

@ciandt-crodrigues
Copy link
Author

1.9.0 was released already.
on this commit, I think: acda6b5

https://github.com/akamai/cli-edgeworkers/releases/tag/v1.9.0
to bump it I think you need to update the version on the package.json

@paul-bartlett
Copy link
Collaborator

Yeah I probably should have been bumped the package.json version to trigger a new tag. That commit was part of the release and changed the version here: https://github.com/akamai/cli-edgeworkers/blob/master/cli.json

@jos76
Copy link

jos76 commented Nov 7, 2024

Has the fix for this been released? I'm on version 1.9.0 and I'm still seeing the following error:

Error while trying to decode the JWT token

while trying to run:
akamai edgekv download token token1

@paul-bartlett
Copy link
Collaborator

Yup the fix was released, I can look into this if you send me an account ID (or maybe show output for list tokens)

@jos76
Copy link

jos76 commented Nov 7, 2024

I was able to get the token using the API instead of the CLI

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

No branches or pull requests

3 participants