Skip to content

Openshift UID not working #71

@plagerweij

Description

@plagerweij

What happened?

In Openshift, the standard SCC restricted-v2 forces you to run containers with a high UID (e.g. 1000930000). This causes a failure in the package-runtime container, because it has a /tofu directory hardcoded to UID 2000 with no permissions for other:

As a result, the provider cannot create workspaces and fails with:

"error": "cannot make tofu configuration directory: mkdir /tofu/... permission denied",
"errorVerbose": "mkdir /tofu/... permission denied cannot make tofu configuration directory"

In my organization we cannot use a different SCC.

How can we reproduce it?

Create a workspace on any modern Openshift or OKD cluster with restricted-v2 SCC and enable debugging in the package-runtime container.

What environment did it happen in?

Crossplane v1.20.0
Provider Opentofu v0.2.6
Openshift v4.16.42

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions