8000 `network.uses` overwrites a malformed `[secrets]` entry when it derives a grant · Issue #4060 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

8000

network.uses overwrites a malformed [secrets] entry when it derives a grant #4060

Backlog

Description

@evanspearman

Found in review of #4009 (comment), at crates/mfile/src/expand.rs:1122. Unresolved when this issue was filed.

Derived grants overwrite a malformed [secrets] [REDACTED].
When network.uses names a service with a secret form, derive_service_grants replaces an existing [secrets.<VAR>] table that has no string source. Creation refuses such a table, since source is required. After the replacement, the generated github:user-token grant passes the parse. The declared narrower scopes are dropped. Approval still applies to the derived grant, but the user never receives the error for the [REDACTED] they wrote.
Keep a declared [REDACTED] that has no string source in place. Then the existing grant parser refuses it, and an absent [REDACTED] still derives its grant.


This is a residual of epic #1501 (BEP).

Activity

  1. added
    bug
    on Dec 4, 2026
  2. added
    priority:should-have
    release:0.8.0
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:should-haverelease:0.8.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0