Skip to content

Proposal: Fail revision creation if system-specified env vars are set #3328

@steren

Description

@steren

/area API
/kind proposal

I have observed developers setting the PORT environment variable.

As documented in the runtime container contract, PORT is an env var that is automatically injected into the containers and that the code should listen on.

A developers setting it probably expects that its final value will be the set value, but instead, we are overriding it. We should avoid that confusion.

Proposal: fail the creation of the revision if the developer sets the PORT env var. Return an error message saying: "The PORT environment variable is automatically set by the system"

Metadata

Metadata

Assignees

Labels

area/APIAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions