fix(myra,web): the definition declares the hub credential binding and use requirement (CL-8603) - #951
Merged
Conversation
… use requirement, so the client grant step goes away (CL-8603)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Runtime capability "credentials" was requested but not provided by the host: the frozen definition carried no credential bindings, because the binding lived only in the web's hand-built JSON while the deployed definition is what the bundle'sbuildMyraWorkflowreturns.POST /grantscould never succeed either: the run principal is created by the run's first trigger, not by the deploy request.buildMyraWorkflownow takes the hub credential id in its input and declares both thecredentialBindingsentry (artifact toolshubhandle) and a creator-sourcedcredential:{id}/userequirement conditioned on the artifact tools package. Stock run-grant materialization resolves that against the deployer's authority at first trigger and stamps the grant the sidecar's credential gate checks.@corbits/myra/workflow-idsso the bundle and the web share one source.grantArtifactToolsCredentialUse,authorizeMyraHubCredential, deployment and principal lookups) is deleted. One deploy step now provisions the token, the credential, the binding and the grant.Testing
bun run checkgreen.