-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Introduce APP_SECRET to replace SECRETS #4588
Comments
I have updated the tickets desc, ready to be picked! |
/oss.gg 500 |
Thanks for opening an issue! It's live on oss.gg! |
@Devessier Let's go with sha as discussed together! |
/assign |
Assigned to @vishnud05! Please open a draft PR linking this issue within 48h |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
@vishnud05, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/unassign |
Issue unassigned. |
Issue unassigned. |
/assign |
Assigned to @HarshithAlfred! Please open a draft PR linking this issue within 48h |
@vishnud05, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically. |
@HarshithAlfred, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically. |
@amit-y11, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically. |
/unassign |
Issue unassigned. |
/assign |
You already have an open issue assigned to you here. Once that's closed or unassigned, only then we recommend you to take up more. |
If I'm not wrong, we'll have a function.
Which is gonna return where appSecret = process.env.APP_SECRET Please correct me if I'm wrong. |
@Khaan25 that's correct! Thank you |
/assign |
This issue is already assigned to another person. Please find more issues here. |
One quick question, @FelixMalfait, They don't have workspaceId as prop, I believe we're gonna modify the function params to include it? Right? |
Maybe we can make the workspaceId optional? |
@Khaan25 no we don't want to make workspaceId optional, you should usually be able to retrieve it in the context (it's available at the resolver level usually since most API calls require to be logged in). Thanks |
@Khaan25 in some sign-in / sign-up cases, we indeed don't have the workspaceId available. @FelixMalfait, we could either append the userId in this case or try to get the defaultWorkspaceId |
Well, let's do defaultWorkspaceId, how do we get that? there's workspaceRespository.getId() function but not sure if that's correct to use. I'll dig into further. |
This PR fixes #4588 --------- Co-authored-by: Félix Malfait <felix@twenty.com> Co-authored-by: Charles Bochet <charles@twenty.com>
Context
We currently have 4 environment variables to specify our SECRETS in
packages/twenty-server/.env
:We would like to replace those by a unique APP_SECRET env variable and to generate those 4 when needed as:
What & How
The text was updated successfully, but these errors were encountered: