Skip to main content

Sort Config, Constants, and Secrets

Classify values by whether they are code constants, deploy config, or secrets.

coding-fundamentals5 min read

Place each value where it belongs for a typical web service. Protected secret Deploy config Code-owned constant Database password used by production app instances PAYMENTS_BASE_URL differs between staging and production Maximum password length required by the product spec Webhook signing secret from a payment provider Feature flag enabling a beta workflow for one environment The list of supported invoice statuses in the domain model classification

Read the full lesson

Sign up free: one personalized lesson every day, matched to your role and goals.

← Back to library

Contact us