Clarify which native imports inspect symlink targets
This commit is contained in:
@@ -2023,11 +2023,13 @@ distinct sources. Unbounded host access uses ordinary OS operations; explicit
|
||||
containment uses a library-owned root handle. Host links may reach external
|
||||
locations under unbounded access; explicit Root still bounds their canonical
|
||||
targets. Discovered-link follow controls remain independent of containment.
|
||||
Native filesystems use slash-path operations and fs.ReadLinkFS when supplied;
|
||||
otherwise they follow their ordinary fs.FS capabilities. YAML leading-slash
|
||||
selector rewriting does not apply to native symlink targets: native absolute
|
||||
link targets retain their existing rejection. These facilities provide no
|
||||
additional sandbox or concurrent-filesystem mutation guarantee.
|
||||
Native named-file imports delegate access to the supplied fs.FS. Directory and
|
||||
glob traversal use fs.ReadLinkFS to inspect links when that capability is supplied;
|
||||
otherwise they follow the filesystem's ordinary capabilities. ConfigKit's native
|
||||
link-target inspection rejects absolute symlink targets. YAML leading-slash
|
||||
selector rewriting applies only to selectors, not to filesystem symlink targets.
|
||||
These facilities provide no additional sandbox or concurrent-filesystem mutation
|
||||
guarantee.
|
||||
|
||||
Import widening does not widen selected-overlay lookup or configured secrets
|
||||
bootstrap. Those continue using the legacy anchor and their own contracts.
|
||||
|
||||
@@ -69,7 +69,12 @@ between the two forms, with the host behavior retained.
|
||||
|
||||
## 2. Limit the native absolute-link rejection statement to inspected links
|
||||
|
||||
Priority: P2. Status: open.
|
||||
Priority: P2. Status: complete.
|
||||
|
||||
Completed: the import contract distinguishes delegated named-file access from
|
||||
explicit link inspection in directory/glob traversal. Absolute-target rejection
|
||||
is scoped to that inspection; no runtime restrictions were added. The edited
|
||||
paragraph and its existing section links were reviewed, and whitespace passes.
|
||||
|
||||
Relevant documentation: the native-link paragraph at lines 2026–2029 of
|
||||
[the import contract](../config.md#explicit-imports).
|
||||
|
||||
Reference in New Issue
Block a user