Skip to content

Review ambient authority for directory access in glob.rs for improved security #173

@coderabbitai

Description

@coderabbitai

Security Improvement Suggestion

Review the use of ambient authority for directory access in glob.rs; if tighter sandboxing is possible (e.g. restricting to the manifest's directory), it would improve security and least-privilege adherence.

Context

Currently, the glob functionality in src/manifest/glob.rs may have broader directory access than necessary. Implementing tighter restrictions to limit access to only the manifest's directory would:

  • Improve security posture by reducing attack surface
  • Follow the principle of least privilege
  • Provide better sandboxing for glob operations

Acceptance Criteria

  • Review current directory access patterns in glob.rs
  • Identify opportunities to restrict access to manifest directory only
  • Implement sandboxing mechanisms if feasible
  • Ensure no regression in legitimate glob functionality
  • Update tests to verify security boundaries

References

Requested by: @leynos

Metadata

Metadata

Assignees

Labels

mediumCould be disruptive, but might not happen

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions