DenoDDeno
Powered by
WGW ☂ calldata.spaceW
Deno•13mo ago•
1 reply
WGW ☂ calldata.space

where the env vars of deployments deployed through Deploy REST API are stored?

Hey there folks, have a question.

Using Deploy REST API, we can create brand new project (& deployments) and pass it environment variables, then on every request the isolate has access to them.

Now, the question is, since they are persisted, where these variables are visible and where they are stored? Cuz i don't see them anywhere in my account/project/deployment info, which is good for my use case. How are they protected? Who can see them?

Can we prove that no one has access to them, except the isolated sandbox?

const dr = await fetch(`${API}/projects/${project.id}/deployments`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    entryPointUrl: 'main.ts',
    assets: {
      'main.ts': {
        kind: 'file',
        content: `console.log('env var SOME_SHARE:', Deno.env.get('SOME_SHARE'));`
      }
    },
    envVars: {
      SOME_SHARE: 'some value',
    },
    permissions: {
      net: [], // all network requests are denied (except npm/jsr), almost complete isolation
    },
  }),
});
const dr = await fetch(`${API}/projects/${project.id}/deployments`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    entryPointUrl: 'main.ts',
    assets: {
      'main.ts': {
        kind: 'file',
        content: `console.log('env var SOME_SHARE:', Deno.env.get('SOME_SHARE'));`
      }
    },
    envVars: {
      SOME_SHARE: 'some value',
    },
    permissions: {
      net: [], // all network requests are denied (except npm/jsr), almost complete isolation
    },
  }),
});


Who can see and access the
'some value'
'some value'
, except the deployment sandbox? Where and how it is stored? I assume it would be in some logs on Deploy infra, right? Probably not only, but on Deploy infra database somewhere too? Is there policy about that which i can read?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deno env vars
isoIiso / help
13mo ago
env vars interpolation across multiple --env-file
KasperKKasper / help
16mo ago
Where is the default/blank deploy.yml file?
TehShrikeTTehShrike / help
3y ago
Sandboxes on CF Workers / REST API?
calvinfoCcalvinfo / help
3w ago