The Simplest Way to Make 1Password and Akamai Edgeworkers Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair 1password and akamai edgeworkers to keep API keys safe during edge code builds. You store secrets in vaults and pull them into build runners at deploy time. This workflow keeps secret values out of source code and developer laptops. It also helps teams update keys on a set schedule without breaking live edge traffic. How 1password and akamai edgeworkers handle keys and permissions 1Password stores API credentials, signing keys, and tokens inside shared team vaults. Admins set up r

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams pair 1password and akamai edgeworkers to keep API keys safe during edge code builds. You store secrets in vaults and pull them into build runners at deploy time.

This workflow keeps secret values out of source code and developer laptops. It also helps teams update keys on a set schedule without breaking live edge traffic.

How 1password and akamai edgeworkers handle keys and permissions

1Password stores API credentials, signing keys, and tokens inside shared team vaults. Admins set up read and write rules for each vault based on team roles.

Akamai EdgeWorkers runs custom JavaScript at the network edge close to end users. Those edge scripts often need API keys to check tokens or call backend services.

You should never hardcode secret keys inside your JavaScript files or code repos. Instead, your build pipeline reads keys from the vault when it packages the code.

The build runner logs in to the vault using a scoped service token. It pulls the needed keys and passes them to the Akamai deploy step.

Akamai also uses property variables and edge key-value stores to hold runtime values. Your deploy job can push secret values from the vault into those edge stores.

This setup keeps the vault as the single source of truth for every key. When a key changes in the vault, the next build updates the edge script.

Common failure modes and how to scope roles

Many teams make the mistake of sharing one admin token across all build pipelines. If that token leaks, an attacker can read every secret in every vault.

Another common issue is using broad Akamai API clients that can edit all properties. A compromised build job could then change routing rules across your whole domain.

Teams also run into trouble when developers copy keys onto local machines for testing. Local copies stay on disks for months and never show up in audit logs.

Application-to-Application Password Management + 1Password Secrets Automation: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, create a separate vault for each app and stage, like prod. Give each build pipeline a token that only reads from its own single vault.

On the Akamai side, scope each API client to the exact EdgeWorkers group needed. Do not grant full account write access to a script deploy worker.

You should also log every secret read and every edge code deploy event. Send these logs to your central log tool so security teams can check them.

Setting up key rotation for edge scripts

Static keys sitting in edge variables for years create a big security risk. You need a clear process to rotate keys without dropping live user requests.

Start by supporting two active keys at the same time in your edge code. Store both the current key and the next key inside your team vault.

When it is time to rotate, generate a new key in your backend service. Save that new key into the vault and run your deploy job right away.

Once all edge nodes use the new key, remove the old key from service. This two-step method prevents failed requests while edge caches update around the world.

You should also rotate the credentials that your build runner uses to reach Akamai. Keep those deploy keys inside a restricted admin vault with strict access rules.

Review vault access lists and Akamai role assignments at least once every quarter. Remove unused service tokens and old developer accounts as soon as projects end.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Can Akamai EdgeWorkers call the 1Password vault on every user request?

Calling a vault on every edge request adds delay and hits API rate limits. Instead, pull secrets during the build step or store them in edge key-value stores.

How should developers test edge scripts without copying production keys?

Create a separate staging vault that holds test keys with fake data only. Developers can load those test keys into local tools without touching production secrets.

What happens if an Akamai deploy key leaks from a build server?

Revoke the leaked API client in the Akamai control panel right away. Then generate a new client, save it in your vault, and check recent deploy logs.

The query runs. The emails stay hidden.