Skip to content

Conversation

muhsinking
Copy link
Collaborator

@muhsinking muhsinking commented Aug 25, 2025

Explains environment variables in the context of Pods, including how and why to use them.

@muhsinking muhsinking marked this pull request as ready for review August 27, 2025 13:35
@justinwlin
Copy link
Contributor

Is it potentially helpful to have a small blurb of env variable vs secrets? cause tbh im not sure what the key differentiator is? is is that secrets are audit trails? Im not sure.

Is it that it prevents leakage since it is hidden inside the account? is it that all pods automatically get secrets vs env need to be injected individually?

@justinwlin
Copy link
Contributor

Something to note tho is that when you update an env variable it will update your pods / serverless endpoint! But it is a great way to modify running code without a full redeployment, and just a basic restart / reinitialization.

@justinwlin justinwlin self-requested a review September 5, 2025 19:58
@justinwlin
Copy link
Contributor

If your application is dependent on an ENV variable existing it can be important to add a check that it exists, and throw an error or return an error on what is missing.

Can happen a lot for handlers that are dependent on ex. a database env but forget to add it

justinwlin
justinwlin previously approved these changes Sep 5, 2025
Copy link
Contributor

@justinwlin justinwlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, minor feedback in the comments

@muhsinking muhsinking merged commit b7c6aeb into main Sep 9, 2025
1 check passed
@muhsinking muhsinking deleted the pod-env-variables branch September 9, 2025 15:11
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