Merge pull request #167 from dagger/secrets

Add dagger.#Secret to dagger spec
This commit is contained in:
Sam Alba 2021-03-10 15:21:20 -08:00 committed by GitHub
commit a546582388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -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
}

View File

@ -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

View File

@ -12,7 +12,7 @@ import (
name: string | *""
// Netlify authentication token
token: string
token: dagger.#Secret
}
// A Netlify site