saltstack / saltstack/salt

[FEATURE REQUEST] Add ability to S3FS to limit to specific directory

Open
#59,890 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature ZD
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Is your feature request related to a problem? Please describe.
When using a shared S3 bucket for S3FS within an org it is beneficial to limit the path that is searched/cache by the Salt master. The idea here being that we could use this similar to gitfs where you can specify the file path in the repo as the starting point for the environment.

Describe the solution you'd like
The current configuration looks like this:

s3.buckets:
  production:
    - bucket1
    - bucket2
  staging:
    - bucket3
    - bucket4

It would be nice to be able to specify something like this:

s3.buckets:
  production:
    - bucket1:/path/to/start
    - bucket2:/
  staging:
    - bucket3:/path/to/start
    - bucket4:/

Or to have an option like gitfs_root.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the s3.buckets configuration shown in the issue and compare its requested path scoping with the linked gitfs_root documentation. Trace how bucket entries are interpreted and define completion as supporting per-bucket starting paths without changing the existing bucket-only configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.