Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper commented Dec 7, 2025

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,
Copy link

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',
Copy link

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
Copy link

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.

@jmgasper jmgasper merged commit ae5a25f into master Dec 8, 2025
6 of 7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants