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

Compiling rollup bundles without secrets #159

Open
roastlechon opened this issue Aug 12, 2022 · 5 comments
Open

Compiling rollup bundles without secrets #159

roastlechon opened this issue Aug 12, 2022 · 5 comments

Comments

@roastlechon
Copy link

Currently need a way to produce a rollup bundle without secrets.

Example would be to compile a rollup bundle with different edgekv_tokens so that the same bundle can be deployed to different environments, but use different keys (without having to compile a new bundle each time).

This use case should also apply to anything that may rely on environment variables. The Edgeworker may use a different set of Environment Variables to point to different systems or APIs.

Due to the fact that EdgeKv has to be copied into the source project of the Edgeworker, compilation of the project will fail because it needs credentials for Akamai CLI to download the edgekv_tokens. If it were injected in a different manner, it would not need to be recompiled each time edgekv_tokens change.

@cosjef
Copy link
Contributor

cosjef commented Aug 15, 2022

@roastlechon We are building a way to no longer require the access token’s JWT value to be included in the EW bundle. Its in the design phase now. Adding @mryakan to this thread for visibility into your requirements.

@roastlechon
Copy link
Author

Awesome! Thank you guys so much. Is this expandable for any arbitrary variables that can be injected?

@ananner
Copy link
Collaborator

ananner commented Aug 17, 2022

@roastlechon, EdgeWorkers can both set and access Property Manager variables as described here: https://techdocs.akamai.com/edgeworkers/docs/request-object#getvariable

Can you elaborate if you were thinking of a different use case that would require a different solution?

@roastlechon
Copy link
Author

I think that should be okay. Can variables be secrets and stored or retrieved securely in Property Manager?

@ananner
Copy link
Collaborator

ananner commented Aug 24, 2022

Secrets are not recommended to be stored in Property Manager, since that workflow of storing secrets is not supported by a myriad of compliance regimes.

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