Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission error with config file in kubernetes #1264

Closed
hashfunc opened this issue Feb 20, 2025 · 0 comments · Fixed by #1265
Closed

Permission error with config file in kubernetes #1264

hashfunc opened this issue Feb 20, 2025 · 0 comments · Fixed by #1265

Comments

@hashfunc
Copy link
Contributor

hashfunc commented Feb 20, 2025

Description

In Linux systems, file permissions are typically represented using 3 digits, but in some cases they can be represented with 6 digits. For example, when injecting secrets as file in a Kubernetes, permissions are represented using 6 digits.

When secret are mounted as file in kubernetes, 6-digit mode are used (e.g., 100600 instead of 0600).
As a result, attempts to change permissions but fails.


Check file permission in kubernetes

Tested in Python; returns the same result in Rust

Image

>>> import os
>>> print(oct(os.stat('/etc/warpgate.yaml').st_mode))
0o100600

warpgate error message
Image

Test Environment
AWS EKS v1.30.9 / AmazonLinux2023

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 a pull request may close this issue.

1 participant