Repository navigation
Closed
Description
We need to implement the new Secret type in order to finish implementing Directory and File:
dagger/core/schema/secret.graphqls
Lines 2 to 14 in 03ea15e
| extend type Query { | |
| "Load a secret from its ID" | |
| secret(id: SecretID!): Secret | |
| } | |
| "A unique identifier for a secret" | |
| scalar SecretID | |
| "A reference to a secret value, which can be handled more safely than the value itself" | |
| type Secret { | |
| "The identifier for this secret" | |
| id: SecretID! | |
| } |
See core/file.go for reference.
Once Secret exists, use it to implement file { secret }:
Lines 151 to 155 in 03ea15e
| "File": router.ObjectResolver{ | |
| "contents": router.ToResolver(s.contents), | |
| "secret": router.ErrResolver(ErrNotImplementedYet), | |
| "size": router.ToResolver(s.size), | |
| }, |
Disclaimer: I'm writing this issue without having used Secrets in Dagger before. I think SecretID is just a simple string rather than a JSON->base64'd value.
Metadata
Metadata
Assignees
Labels
No labels
Activity
dolanor commentedon Oct 3, 2022
Pulling out as it is harder with still unanswered design.
Working on the HTTP impl instead.