Commit Graph

1536 Commits

Author SHA1 Message Date
Andrea Luzzardi
28fd9c341f stdlib: update gcp to use secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:18:17 -07:00
Andrea Luzzardi
f2819dc1a5 ci: import dagger key
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:18:17 -07:00
Tom Chauveau
5fb7ded2d5 update stdlib tests that use secrets
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 19:18:17 -07:00
Andrea Luzzardi
40d4c95bff aws: use secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:14:08 -07:00
Andrea Luzzardi
9c0e2d1d95 buildkit secrets support
- Secrets are never exposed in plaintext in the Cue tree. `dagger query`
  won't dump secrets anymore, Cue errors won't contain them either.
- BuildKit-native secrets support through a new `mount` type. This
  ensures secrets will never be part of containerd layers, buildkit
  cache and generally speaking will never be saved to disk in plaintext.
- Updated netlify as an example
- Added tests
- Changed the Cue definition of a secret to:

```
	@dagger(secret)

	id: string
}
```

This is to ensure both that setting the wrong input type on a secret
(e.g. `dagger input text`) will fail, and attempting to misuse the
secret (e.g. interpolating, passing as an env variable, etc) will also
fail properly.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:14:08 -07:00
Andrea Luzzardi
5b9fcc9e3b
Merge pull request #517 from SvenDowideit/idk
I'm betting this is a minor spelling thing :)
2021-05-27 17:50:59 -07:00
Sven Dowideit
bca143c1da I'm betting this is a minor spelling thing :)
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2021-05-28 08:52:30 +10:00
Andrea Luzzardi
15f4c4877d
Merge pull request #516 from aluzzardi/fix-doc-redirect
docs: fix version redirect
2021-05-27 15:14:37 -07:00
Andrea Luzzardi
cb23fa872a docs: fix version redirect
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 15:06:26 -07:00
Andrea Luzzardi
65da2f1c59
Merge pull request #515 from aluzzardi/secret-term-fix-windows
secret: fix terminal prompt for windows
2021-05-27 14:28:22 -07:00
Andrea Luzzardi
b55452a403
Merge pull request #513 from slumbering/500-docs-selector
display the right option from select + update logo
2021-05-27 14:28:11 -07:00
Andrea Luzzardi
99cf7d0ae0 secret: fix terminal prompt for windows
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 14:08:49 -07:00
Andrea Luzzardi
70c1e4fa36
Merge pull request #510 from dagger/dependabot/go_modules/filippo.io/age-1.0.0-rc.2
build(deps): bump filippo.io/age from 1.0.0-rc.1 to 1.0.0-rc.2
2021-05-27 13:59:22 -07:00
dependabot[bot]
e19e0fb2c8 build(deps): bump filippo.io/age from 1.0.0-rc.1 to 1.0.0-rc.2
Bumps [filippo.io/age](https://github.com/FiloSottile/age) from 1.0.0-rc.1 to 1.0.0-rc.2.
- [Release notes](https://github.com/FiloSottile/age/releases)
- [Commits](https://github.com/FiloSottile/age/compare/v1.0.0-rc.1...v1.0.0-rc.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 13:48:46 -07:00
Andrea Luzzardi
9ba1912799
Merge pull request #509 from dagger/dependabot/go_modules/cuelang.org/go-0.4.0
build(deps): bump cuelang.org/go from 0.4.0-beta.1 to 0.4.0
2021-05-27 13:47:52 -07:00
dependabot[bot]
f70065ddc1 build(deps): bump cuelang.org/go from 0.4.0-beta.1 to 0.4.0
Bumps cuelang.org/go from 0.4.0-beta.1 to 0.4.0.

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 13:38:19 -07:00
Andrea Luzzardi
792dcacdff
Merge pull request #514 from samalba/up-check-input
Up check input
2021-05-27 13:31:35 -07:00
Sam Alba
80e1208474 cmd/up: added support for checking for user inputs concreteness before the running the config
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-27 18:46:54 +02:00
Sam Alba
eba35e285b environment inputs scanning can now scan including the user inputs with the plan
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-27 18:45:24 +02:00
Tom Chauveau
7c4df827c3 Add docker.#Client definition
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 18:15:36 +02:00
Tom Chauveau
27a60d3cdf Add tests for docker.#Run
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 18:15:36 +02:00
Tom Chauveau
f8760213bd Add #Run definition in docker stdlib package.
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 18:15:36 +02:00
slumbering
a959b420a2 fix: 🐛 display the right option from select + update logo
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
2021-05-27 17:08:01 +02:00
Sam Alba
894976e824
Merge pull request #511 from samalba/fix-ci
increased curl dependency, 7.76 was removed from alpine pkg repo
2021-05-27 05:42:21 -07:00
Sam Alba
f6aea7e529 curl: do not hardcode version requirement
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-27 14:31:57 +02:00
Sam Alba
dd17c48922 increased curl dependency, 7.76 was removed from alpine pkg repo
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-27 13:59:47 +02:00
Sam Alba
b47512ba6e
Merge pull request #508 from aluzzardi/cue-fmt
fix cue fmt
2021-05-27 00:38:37 -07:00
Sam Alba
1f29c2f598
Merge pull request #505 from samalba/gitflow-help
Gitflow help
2021-05-27 00:36:53 -07:00
Andrea Luzzardi
af32e60b37 fix cue fmt
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-26 18:46:13 -07:00
Andrea Luzzardi
5d63b22ad1
Merge pull request #504 from samalba/inputs-test
Inputs tests + description from cue doc string
2021-05-26 11:12:42 -07:00
Sam Alba
49dcef0614 examples: updated README to match gitflow UX
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 17:50:03 +02:00
Sam Alba
97be7b917a cmd/new+init: added instructions for new + fix for init arg
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 17:41:37 +02:00
Sam Alba
1f4bbc53ad cmd/init: print workspace path
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 16:26:13 +02:00
Sam Alba
9d1609187e cmd/init,new: added short description
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 16:25:42 +02:00
Sam Alba
06ed139080 tests: moved cli input test to new syntax
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 13:45:10 +02:00
Sam Alba
3ae6b6f01b test: cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:34:22 +02:00
Sam Alba
a4167dc3f4 cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:28:24 +02:00
Sam Alba
7009d01835 stdlib: added @dagger(input) and @dagger(output) attributes
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:23:44 +02:00
Sam Alba
42e91c0a30 test: implemented tests for input list
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:03:24 +02:00
Sam Alba
6568c4e6d1 test: removed unused test
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:03:24 +02:00
Sam Alba
b181300930 examples/simple-s3: added comment for input description
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:03:24 +02:00
Sam Alba
16553b2e2a cmd/input: added support for Description from cue doc string
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:03:22 +02:00
Paul Jolly
cd19a4228a
stdlib: put full definition of #Op behind a build attribute
This allows dagger.io/dagger/op.#Op to be maintained in regular
uncommented CUE, but not participate by default in normal dagger
evaluation (given the performance problems it currently introduces).

The "full" #Op can be enabled by passing the "-t fullop" flag:

    cue eval -t fullop ./examples/react

(which currently triggers the performance issue).

Signed-off-by: Paul Jolly <paul@myitcv.io>
2021-05-26 10:31:45 +01:00
Andrea Luzzardi
78fcb503c9
Merge pull request #502 from aluzzardi/pkg-cleanup
cleanup: go packages
2021-05-25 17:05:33 -07:00
Andrea Luzzardi
af776b8abe cleanup: move packages to top level, change vanity URL
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 16:54:00 -07:00
Andrea Luzzardi
e13153a284 cleanup: split dagger into sub-packages
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 16:53:41 -07:00
Solomon Hykes
aa34e95eee Dev env: adopt gitflow layout
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-25 16:50:13 -07:00
Solomon Hykes
3349955144 stdlib: fix dagger.io/go
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-25 16:50:13 -07:00
Solomon Hykes
d8b4181926 Docs: remove examples not listed in README
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-25 16:38:04 -07:00
Solomon Hykes
815ea4c704 Docs: simplify intro page
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-25 16:38:04 -07:00