Commit Graph

1852 Commits

Author SHA1 Message Date
Tom Chauveau
4b6315e2fc Handle fingerprint option for auth
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-29 18:29:39 +02:00
Andrea Luzzardi
ebbc9707ec automatically redact secrets from logs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-29 02:18:01 -07:00
Andrea Luzzardi
7ec90a6155
Merge pull request #497 from myitcv/put_fullop_behind_build_attribute
stdlib: put full definition of #Op behind a build attribute
2021-05-28 23:48:39 -07:00
Andrea Luzzardi
4dd14fb42a
Merge pull request #524 from aluzzardi/input-edit
dagger input edit
2021-05-28 18:57:03 -07:00
Andrea Luzzardi
9deb80c487 dagger input edit
See and edit all the inputs in bulk using $EDITOR

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 18:02:12 -07:00
Andrea Luzzardi
d9c1e6d57e
Merge pull request #523 from aluzzardi/input-dir-exclude
add support for excludes in input dir
2021-05-28 16:47:51 -07:00
Andrea Luzzardi
b627b4bc88 add support for excludes in input dir
This adds support for `--include` and `--exclude` for directory inputs.

For instance, this is what you would want to use when passing dagger
repository as an input:

```
inputs:
    repository:
        dir:
            path: .
            exclude:
                - '**/node_modules'
                - cmd/dagger/dagger
                - cmd/dagger/dagger-debug
```

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 16:22:32 -07:00
Andrea Luzzardi
22042316be
Merge pull request #521 from dagger/fix-netlify-regression
stdlib: netlify: fix regression of trailing new lines
2021-05-28 14:44:44 -07:00
Andrea Luzzardi
59695f632a stdlib: netlify: fix regression of trailing new lines
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 14:16:25 -07:00
Andrea Luzzardi
2f9a5df397
Merge pull request #512 from TomChv/buildkit-secrets
Buildkit secrets supports
2021-05-28 14:13:35 -07:00
Andrea Luzzardi
868fd018f4 tests: fix remaining tests due to secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 14:00:27 -07:00
Andrea Luzzardi
1e1b28e1de tests: examples/react tests to use native secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 13:33:59 -07:00
Andrea Luzzardi
e045366e82
Merge pull request #520 from aluzzardi/fix-cgo
fix build for non-cgo
2021-05-28 12:08:52 -07:00
Andrea Luzzardi
b1c50671b3 fix build for non-cgo
- use mitchellh/go-homedir rather than os/user to work on non cgo
  enabled builds (e.g. release binaries)
- updated Makefile to disable cgo on dev binaries

Fixes #519

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 11:48:50 -07:00
Sam Alba
8d5c3f4f0f
Merge pull request #518 from samalba/fix-version
goreleaser: fixed version
2021-05-28 04:57:17 -07:00
Sam Alba
55355dfd32 goreleaser: fixed version
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-28 13:52:56 +02:00
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