-
Notifications
You must be signed in to change notification settings - Fork 3
Delete user functionality (PM-3158) #18
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
Conversation
| API_VERSION: process.env.API_VERSION || 'v6', | ||
| AUTH_SECRET: process.env.AUTH_SECRET || 'mysecret', | ||
| VALID_ISSUERS: process.env.VALID_ISSUERS || '["https://api.topcoder-dev.com", "https://api.topcoder.com", "https://topcoder-dev.auth0.com/", "https://auth.topcoder-dev.com/"]', | ||
| IDENTITY_DB_URL: process.env.IDENTITY_DB_URL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗ correctness]
The IDENTITY_DB_URL is added without a default value. Ensure that this environment variable is always set in all environments to prevent potential runtime errors.
| ALL: process.env.SCOPE_MEMBERS_ALL || 'all:user_profiles' | ||
| } | ||
| }, | ||
| DELETE_USER_SCOPE: process.env.SCOPE_DELETE_USER || 'delete:user', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗ security]
The DELETE_USER_SCOPE is introduced without a clear indication of its usage in the system. Ensure that this scope is properly validated and enforced in the application logic to prevent unauthorized access.
| MAILCHIMP: { | ||
| API_KEY: process.env.MAILCHIMP_API_KEY, | ||
| SERVER_PREFIX: process.env.MAILCHIMP_SERVER_PREFIX, | ||
| LIST_FETCH_COUNT: process.env.MAILCHIMP_LIST_FETCH_COUNT ? Number(process.env.MAILCHIMP_LIST_FETCH_COUNT) : 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[performance]
Consider validating the MAILCHIMP_LIST_FETCH_COUNT to ensure it is within acceptable limits, as setting it too high could lead to performance issues or API rate limits.
https://topcoder.atlassian.net/browse/PM-3158