Tibor Vass
07029de618
Merge pull request #1879 from tonistiigi/foreign-mediatype
...
handle foreign mediatypes on push
2020-12-11 11:48:55 -08:00
Tonis Tiigi
e56e7ba46b
flightcontrol: fix possible invalid cancellation
...
There was a race with context getting cancelled and new request
arriving that could resulted new request to receive cancelled result
as well. This happened because lock was held when getting the Done()
channel but it could have been already released by the time returned
channel was closed.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-12-11 00:57:12 -08:00
Tibor Vass
fbf8ed15a8
sshutil: allow uppercase usernames (thinking of you thaJeztah)
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2020-12-11 05:19:39 +00:00
Alex Couture-Beil
201482bba9
Allow for usersnames with hyphens or underscores
...
- usernames could have - or _
- expand testing cases
Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2020-12-10 17:10:38 -08:00
Alex Couture-Beil
3fa063dcf3
move ssh regexp test to common location
...
- include testing
- improve hostname checking
Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2020-12-10 17:10:38 -08:00
Tonis Tiigi
aabdec1778
handle foreign mediatypes on push
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-12-05 23:16:44 -08:00
Alex Couture-Beil
88580ad989
Fix sshkeyscan to work with ipv6
...
- make use of standard net.SplitHostPort and net.JoinHostPort functions
Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2020-11-18 09:19:49 -08:00
Alex Couture-Beil
ccac4d664e
fix assumption that ssh port must be 2 digits
...
Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2020-11-16 17:02:40 -08:00
Alex Couture-Beil
3c73a22430
Add default ssh mount and keyscans when missing
...
Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2020-11-16 13:23:37 -08:00
Tonis Tiigi
cf8babde54
progress: refactor logger handler to better reuse
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-11-15 13:33:58 -08:00
Tonis Tiigi
aa29e77294
fix import cycle in integration test pulls
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-11-11 21:21:08 -08:00
Tonis Tiigi
ffe71a1ea9
add retry handlers to push/pull
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-11-11 20:39:01 -08:00
Akihiro Suda
4011b6ef1c
Merge pull request #1754 from tonistiigi/log-clipping
...
progress: add log limits and clipping
2020-11-06 13:53:38 +09:00
Tonis Tiigi
378fce2290
logs: show log limit in the clipping message
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-11-05 10:47:25 -08:00
Tõnis Tiigi
e48da241dc
Merge pull request #1761 from tonistiigi/session-remote
...
add session injection to remote ref loading
2020-11-03 08:33:28 -08:00
Tonis Tiigi
e3b05289d8
add session injection to remote loading
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-11-02 22:20:44 -08:00
Tõnis Tiigi
35f41e9db4
Merge pull request #1775 from earthly/vlad/cni-bug
...
Fix race in CNI namespaces
2020-11-02 17:48:09 -08:00
Vlad A. Ionescu
03987d2a75
Rename nativeID to nsPath. Simplify.
...
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
2020-11-02 11:39:17 -08:00
Vlad A. Ionescu
39fd96d2dd
Fix race in CNI namespaces.
...
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
2020-11-02 11:23:28 -08:00
Sebastiaan van Stijn
fbe1346912
replace github.com/docker/docker/pkg/locker with moby/locker v1.0.1
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-30 09:25:05 +01:00
Tonis Tiigi
6a3d6e983b
source: fix puller error caching on cancellation
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-27 13:21:49 -07:00
Tonis Tiigi
38ec47c981
progress: add log limits and clipping
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-26 14:51:47 -07:00
Tonis Tiigi
ecf070a027
exec: use platform specific default path
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-23 15:30:23 -07:00
Akihiro Suda
a340d4171d
Merge pull request #1730 from tonistiigi/gcr-400
...
exporter: avoid descriptor annotations on docker manifests
2020-10-20 13:49:19 +09:00
Tonis Tiigi
c7f5979dd4
exporter: avoid descriptor annotations on docker manifests
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-19 12:54:47 -07:00
Tonis Tiigi
ca46949277
stack: remove helper functions from error stack traces
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-18 23:36:38 -07:00
Kees Cook
fd11490560
Update binfmt_misc tests to have non-executable stack
...
Fix : #1737
On Linux v5.6+ docker start-up would trigger the exec-stack warning:
process 'docker/tmp/qemu-check490284163/check' started with executable stack
Mark all the binfmt_mist tests as having a non-executable stack, and
regenerate the *_binary.go files.
Additionally fix trailing whitespace and add missing end-of-file newlines.
Signed-off-by: Kees Cook <keescook@chromium.org>
2020-10-17 22:53:27 -07:00
Tõnis Tiigi
be424a99ea
Merge pull request #1728 from earthly/vlad/authorizer-errors
...
Prevent context canceled errors from being permanent in authorizer
2020-10-15 17:46:14 -07:00
Vlad A. Ionescu
d127edf990
Prevent context canceled errors from being permanent in authorizer
...
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
Check if context is canceled before returning cached token or err.
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
Fix possible race conditions
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
Fix block
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
2020-10-15 15:11:59 -07:00
Tõnis Tiigi
4177e7ca28
Merge pull request #1660 from tonistiigi/token-fetch
...
auth: fetch tokens from client side
2020-10-12 16:13:19 -07:00
Tonis Tiigi
b4fad847ac
frontend: support for subrequests
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-07 13:36:51 -07:00
Tonis Tiigi
44f27708b3
frontend: make sure inputs support for frontends is detectable from client
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-04 10:44:16 -07:00
Akihiro Suda
6361c6bad2
Merge pull request #1666 from ktock/sgz-oci
...
Enable to use stargz snapshotter without spawning plugin process
2020-09-17 16:00:19 +09:00
Tonis Tiigi
1f94445456
auth: fetch tokens from client side
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-09-15 13:40:30 -07:00
Ilya Dmitrichenko
6e8fde8431
vendor: update containerd to d4e7820
...
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
2020-09-07 10:40:09 +01:00
ktock
cf3d695cc2
Enable to run integration tests with stargz snapshotter
...
Signed-off-by: ktock <ktokunaga.mail@gmail.com>
2020-09-03 16:52:21 +09:00
Erik Sipsma
a57f8a2dcc
Merge pull request #1402 from ktock/remote-snapshotter
...
Support stargz snapshotter for dev stages
2020-08-31 10:41:11 -07:00
Tonis Tiigi
d33756e17b
vendor: update containerd to efa0e809
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-30 23:04:25 -07:00
ktock
76189201a8
Add integration test for containerd and stargz snapshotter
...
Signed-off-by: ktock <ktokunaga.mail@gmail.com>
2020-08-27 15:50:11 +09:00
Miguel Ángel Jimeno
6e1d460d4c
cni: remove duplicate error check
...
Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>
2020-08-23 21:51:01 +02:00
Jon Zeolla
4f966cc3da
Fix platform typo
...
Signed-off-by: Jon Zeolla <zeolla@gmail.com>
2020-08-17 19:31:02 -04:00
Tonis Tiigi
e6500927d2
resolver: handle nil group properly
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-13 17:27:25 -07:00
Tonis Tiigi
e322304c07
resolver: avoid retrying fatal error
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-13 17:27:25 -07:00
Tonis Tiigi
8f8dccf837
resolver: add docs to new functions
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-13 17:27:25 -07:00
Tonis Tiigi
5f69909037
resolver: switch post/get order on requesting token
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-13 17:27:25 -07:00
Tonis Tiigi
b474dbf55f
resolver: clean up unused resolver pool
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-13 17:27:18 -07:00
Tonis Tiigi
21c4ab8621
resolver: fix token expiring issues
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-13 17:27:18 -07:00
Tonis Tiigi
f1cd79bf65
resolver: add better pooling and custom authenticator
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-13 17:27:11 -07:00
Tõnis Tiigi
545532ab0e
Merge pull request #1475 from sipsma/lazy-ref
...
Add support for lazily-pulled blobs in cache manager.
2020-08-06 12:54:45 -07:00
Tonis Tiigi
862387445e
grpcerrors: use full typeurl registration
...
Also switches current types to json.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-06 12:28:48 -07:00