Read the credentials and the builds into mesh-sdk's composition input, and make nothing (issue 1383)

How each pair credential a node takes stands (held with its sealed consumer copy, the next send makes it, only a person's to give and nobody gave, or refused in the controller's words), the credentials made for each provider's consumers, the own secrets with their origin and key and value, the vault's kept boxes, the bus's users, minted users and memberships, the mesh's authority and each machine's serving key and kept certificate, the repositories built, the current builds and the build of each commit a machine that reads them is sent. A credential no row holds is not made (planFor made it in every mode): the adapter returns it as would-make for perform (issue 1385). New reads in the inventory (OwnSecretRows, PairCredentialState, BusMinted) and the identity (KnownAuthority, KeptCertificate) write nothing.
This commit is contained in:
2026-10-20 08:58:32 +00:00
parent 468ecd482e
commit 7515320b72
5 changed files with 897 additions and 8 deletions
+6 -8
View File
@@ -53,21 +53,19 @@ func readComposeInput(ctx context.Context, open *stores) (*meshInput, error) {
if err := readSettings(ctx, open, &in, plans); err != nil {
return nil, err
}
if err := readCredentialsAndBuilds(ctx, open, &in, plans, shape); err != nil {
wouldMake, err := readCredentialsAndBuilds(ctx, open, &in, plans, shape)
if err != nil {
return nil, err
}
composeInputBuilt()
return &meshInput{Input: in}, nil
return &meshInput{Input: in, wouldMake: wouldMake}, nil
}
// readCredentialsAndBuilds is the credential and build half of the Input, which issue 1383 fills.
func readCredentialsAndBuilds(context.Context, *stores, *compose.Input, map[string]compose.Resolved, inputShape) error {
return nil
}
// meshInput is the Input an operation composes over.
// meshInput is the Input an operation composes over, and the pair credentials its reading found none held for: the ones the
// next send makes, which perform makes.
type meshInput struct {
compose.Input
wouldMake []inventory.PairCredential
}
// nodeOf is the node of that name in an Input.