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

Use os.Root to forbid file access out of $(aqua root-dir) #3482

Open
suzuki-shunsuke opened this issue Jan 27, 2025 · 1 comment
Open

Use os.Root to forbid file access out of $(aqua root-dir) #3482

suzuki-shunsuke opened this issue Jan 27, 2025 · 1 comment
Labels
enhancement New feature or request security

Comments

@suzuki-shunsuke
Copy link
Member

Feature Overview

https://tip.golang.org/doc/go1.24#directory-limited-filesystem-access
https://pkg.go.dev/os@master#Root
https://pkg.go.dev/os@master#OpenRoot

Go v1.24 introduces a new API to forbid file access out of a given directory.

Why is the feature needed?

Generally, aqua creates files only in $(aqua root-dir).
Go's new API enables us to forbid to create files out of $(aqua root-dir).

Example Code

No response

Note

No response

@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Feb 11, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request security
Projects
None yet
Development

No branches or pull requests

1 participant