From db2184262c52bf76d3a13cb554f997dae75f3269 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 10 Mar 2021 11:13:12 -0800 Subject: [PATCH] Add dagger.#Secret to dagger spec. This currently does nothing and is only useful for flagging secrets. Signed-off-by: Andrea Luzzardi --- stdlib/aws/aws.cue | 6 ++++-- stdlib/dagger/dagger.cue | 5 +++++ stdlib/netlify/netlify.cue | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/stdlib/aws/aws.cue b/stdlib/aws/aws.cue index 479acfb5..a9d8bc20 100644 --- a/stdlib/aws/aws.cue +++ b/stdlib/aws/aws.cue @@ -1,10 +1,12 @@ package aws +import "dagger.io/dagger" + #Config: { // AWS region region: string // AWS access key - accessKey: string // FIXME: should be a secret + accessKey: dagger.#Secret // AWS secret key - secretKey: string // FIXME: should be a secret + secretKey: dagger.#Secret } diff --git a/stdlib/dagger/dagger.cue b/stdlib/dagger/dagger.cue index f5a93cb2..6900d094 100644 --- a/stdlib/dagger/dagger.cue +++ b/stdlib/dagger/dagger.cue @@ -4,6 +4,11 @@ package dagger // every dagger script outputs a filesystem state (aka a directory) #Dir: #compute: [...#Op] +// Secret value +// FIXME: currently aliased as a string to mark secrets +// this requires proper support. +#Secret: string + // One operation in a script #Op: #FetchContainer | #FetchGit | #Export | #Exec | #Local | #Copy | #Load | #Subdir diff --git a/stdlib/netlify/netlify.cue b/stdlib/netlify/netlify.cue index 83cc4730..5a0bd558 100644 --- a/stdlib/netlify/netlify.cue +++ b/stdlib/netlify/netlify.cue @@ -12,7 +12,7 @@ import ( name: string | *"" // Netlify authentication token - token: string + token: dagger.#Secret } // A Netlify site