#4400 [Core feature] Default Environment Variables in Task Containers
Issue created by
zeryx
### Motivation: Why do you think this is important?
There are a number of variables that would be useful to have within a flyte task during execution about the flyte environment itself. Plenty of times there have been needs to swap behavior based on the domain or project that a task execution is running within.
It's also not possible to use flytekit remote inside of a running container without providing external credentials from a Flyte App - this can be cumbersome and prone to security issues when passing secrets such as this into a container.
### Goal: What should the final outcome look like, ideally?
Containers should contain easily accessible meta information about the current runtime such as :
• Task Name
• Task Version
• Execution id
• DAG (other tasks, versions that are in this workflow)
• LaunchPlan
• Project, Domain
It would also be ideal (but this might make sense for a separate ticket) for auth to be accessible within a task for flytekit remote interactions with the wider flyte cluster.
### Describe alternatives you've considered
Manually shipping environment variables into a container - super cumbersome, and easy to mess up.
Hardcoding environment config data into the source code - same as above.
### Propose: Link/Inline OR Additional context
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte