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

How to get decrypted project env? #25

Open
bbb0ttle opened this issue Jan 16, 2025 · 2 comments
Open

How to get decrypted project env? #25

bbb0ttle opened this issue Jan 16, 2025 · 2 comments

Comments

@bbb0ttle
Copy link

docs/models/decrypt.md

@ismaelrumzan
Copy link
Collaborator

Hello!
You can use the following method:
https://github.com/vercel/sdk/blob/main/docs/sdks/projects/README.md#getprojectenv

Please make sure that your Vercel token has access to the scope where the project is found

@bbb0ttle
Copy link
Author

Hello! You can use the following method: https://github.com/vercel/sdk/blob/main/docs/sdks/projects/README.md#getprojectenv

Please make sure that your Vercel token has access to the scope where the project is found

Hello, I tried getProjectEnv method and got:

test: {
  "decrypted": true,
  "target": [
    "development"
  ],
  "type": "encrypted",
  "id": "BYpdZt3JauCcMbnf",
  "key": "foo",
  "configurationId": null,
  "createdAt": 47366932485,
  "updatedAt": 1647366932485,
  "createdBy": "YC4NgIrxU1y4T1YLl94VmoSi",
  "updatedBy": null
}

Is it possible to get decrypted env value?

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

No branches or pull requests

2 participants