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

Implement the secrets install command #347

Open
aryanjassal opened this issue Dec 16, 2024 · 1 comment
Open

Implement the secrets install command #347

aryanjassal opened this issue Dec 16, 2024 · 1 comment
Assignees
Labels
development Standard development

Comments

@aryanjassal
Copy link
Member

aryanjassal commented Dec 16, 2024

Specification

The cp command can copy secrets across local file system and a vault seamlessly. However, cp will not create target directories if they don't exist. More importantly, the file permissions would probably be the default permissions, something like this '-rw-r--r--'. This might not be what is desired.

This is solved by using the install command, which is able to create target directories if they don't exist (with a flag, -D --directories), and is able to set file permissions immediately on egress from the vault using the -m --mode flag. This can all be probably extended to take either an octal permission (like 755) or a string (like rw-rw-r--).

Additional context

Tasks

  1. Create secrets install
  2. Implement option install --directories
  3. Implement egress permissions (--mode)
@aryanjassal aryanjassal added the development Standard development label Dec 16, 2024
@aryanjassal aryanjassal self-assigned this Dec 16, 2024
Copy link

linear bot commented Dec 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Standard development
Development

No branches or pull requests

1 participant