Derek McGowan
45983af554
Merge pull request #2773 from dmcgowan/2.6-add-goarm-flag
...
[release/2.6] Add GOARM flag to dockerfile
2018-11-29 15:14:41 -08:00
Derek McGowan
ab74ab7442
Add GOARM flag to dockerfile
...
When building with arm on alpine, GOARM should
be set to 6 by default.
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-11-28 13:51:51 -08:00
Derek McGowan
a66a4c3e63
Merge pull request #2770 from dmcgowan/goarch-dockerfile
...
[release/2.6] Add go arguments to dockerfile
2018-11-27 16:48:46 -08:00
Derek McGowan
0db89b2b46
Add go arguments to dockerfile
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-11-27 16:42:15 -08:00
Derek McGowan
7d2744309e
Merge pull request #2597 from dmcgowan/2.6-update-integration-test-certs
...
[release/2.6] integration tests: update certificates
2018-06-21 13:58:36 -07:00
Derek McGowan
8dcaecc99c
Update certificates
...
Set expiration to 10 years
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-05-22 14:41:01 -07:00
Stephen Day
49a2291398
Merge pull request #2558 from mrueg/release/2.6
...
[release/2.6] Cherry-Pick commits for release 2.6.3
2018-04-06 13:42:15 -07:00
Noah Treuhaft
376cbc0cc1
notifications: fix expvar for Go 1.7
...
Remove EndpointConfig.Transport from the return value of the
registry.notifications.endpoints expvar.Func. It results in an empty
value for that expvar variable under Go 1.7 because it is a non-nil
*http.Transport, which Go 1.7 can no longer encode as JSON.
Signed-off-by: Noah Treuhaft <noah.treuhaft@docker.com>
(cherry picked from commit 9a58c91051
)
2018-04-05 13:49:04 +02:00
Wenkai Yin
9b36527ddd
ignore path not found error when look up tags
...
Signed-off-by: Wenkai Yin <yinw@vmware.com>
(cherry picked from commit 005c6e0236
)
2018-04-05 13:49:04 +02:00
Stephen J Day
e22abf0fab
registry/storage: ignore missing tag on delete
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 1ba5b3b553
)
2018-04-05 13:49:04 +02:00
Stephen Day
803ff0da68
Merge pull request #2451 from stevvooe/backport-feed-the-linter
...
[2.6] registry: feed the linter by removing redundant err check
2017-11-22 18:09:11 -08:00
Stephen J Day
22889ae085
registry: feed the linter by removing redundant err check
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 4abf680c76
)
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-22 17:17:24 -08:00
Stephen Day
b7a08ef5bb
Merge pull request #2449 from mistyhacks/fix-keywords-2.6
...
Fix keyword format for downstream docs
2017-11-22 16:34:19 -08:00
Misty Stanley-Jones
8efe825c70
Fix keyword format for downstream docs
...
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
2017-11-21 09:26:50 -08:00
Stephen Day
4c93564791
Merge pull request #2347 from stevvooe/backport-auth-spec-2.6
...
[release/2.6] Put back v2-registry-auth.png
2017-07-24 15:24:37 -07:00
Misty Stanley-Jones
326f660393
Put back v2-registry-auth.png
...
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
(cherry picked from commit 1d95716792
)
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-07-24 15:08:25 -07:00
Stephen Day
48294d928c
Merge pull request #2343 from stevvooe/prepare-2.6.2
...
[release/2.6] release: prepare for 2.6.2 release
2017-07-20 14:12:45 -07:00
Stephen J Day
04ce68659d
release: prepare for 2.6.2 release
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-07-20 14:12:13 -07:00
Stephen Day
c829241c21
Merge pull request #2341 from stevvooe/limit-payload-size-26
...
[release/2.6] registry/{storage,handlers}: limit content sizes
2017-07-20 13:53:59 -07:00
Stephen J Day
29fa466deb
registry/{storage,handlers}: limit content sizes
...
Under certain circumstances, the use of `StorageDriver.GetContent` can
result in unbounded memory allocations. In particualr, this happens when
accessing a layer through the manifests endpoint.
This problem is mitigated by setting a 4MB limit when using to access
content that may have been accepted from a user. In practice, this means
setting the limit with the use of `BlobProvider.Get` by wrapping
`StorageDriver.GetContent` in a helper that uses `StorageDriver.Reader`
with a `limitReader` that returns an error.
When mitigating this security issue, we also noticed that the size of
manifests uploaded to the registry is also unlimited. We apply similar
logic to the request body of payloads that are full buffered.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 55ea440428
)
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-07-20 13:37:43 -07:00
Derek McGowan
42ea75ca2d
Merge pull request #2284 from mstanleyjones/release/2.6
...
Put architecture.md back into distribution repo
2017-05-23 13:10:44 -07:00
Misty Stanley-Jones
ed2b6867b2
Put architecture.md back into distribution repo
...
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
2017-05-23 11:26:12 -07:00
Derek McGowan
a25b9ef0c9
Update changelog for 2.6.1
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-04-05 16:18:07 -07:00
Derek McGowan
0d39820aa7
Update changelog for 2.6.1-rc2
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-03-21 13:13:43 -07:00
yixi zhang
abf796d17c
Use app.driver.Stat for registry health check
...
`app.driver.List` on `"/"` is very expensive if registry contains significant amount of images. And the result isn't used anyways.
In most (if not all) storage drivers, `Stat` has a cheaper implementation, so use it instead to achieve the same goal.
Signed-off-by: yixi zhang <yixi@memsql.com>
2017-03-21 13:11:58 -07:00
Derek McGowan
74278cdaa6
Update release notes for 2.6.1-rc1
...
Release notes for forwarded header fix patch release
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-03-21 10:49:45 -07:00
Derek McGowan
5c43c3b0ee
Remove support for X-Forwarded-Port
...
Partially reverts change adding support for X-Forwarded-Port.
Changes the logic to prefer the standard Forwarded header over
X-Forwarded headers. Prefer forwarded "host" over "for" since
"for" represents the client and not the client's request.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-03-20 17:02:58 -07:00
Troels Thomsen
d0b7c92004
Add test for precendence with standard port
...
Signed-off-by: Troels Thomsen <troels@thomsen.io>
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-03-20 17:01:36 -07:00
Derek McGowan
325b0804fe
Update release notes for 2.6
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-01-17 17:15:28 -08:00
Derek McGowan
1642cd85d5
Merge pull request #2123 from mstanleyjones/configuration_changes_backport_2.6
...
Backport #2116 to releases/2.6
2017-01-03 19:42:42 -08:00
Misty Stanley-Jones
7f3c4b5c65
Improve formatting of configuration.md
...
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
(cherry picked from commit 6ee03f5da7
)
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
2017-01-03 15:57:35 -08:00
Joao Fernandes
df1ddd8e46
Format configuration.md with code fences to avoid render issues
...
Signed-off-by: Joao Fernandes <joao.fernandes@docker.com>
2017-01-03 15:13:22 -08:00
Derek McGowan
0241c48be5
Release notes for v2.6.0-rc2
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-12-20 15:42:12 -08:00
Derek McGowan
438b8a1d4e
Update registry server to support repository class
...
Use whitelist of allowed repository classes to enforce.
By default all repository classes are allowed.
Add authorized resources to context after authorization.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-12-20 15:42:12 -08:00
Derek McGowan
4d0424b470
Update contrib token server to support repository class
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-12-20 15:42:11 -08:00
Derek McGowan
07d2f1aac7
Add class to repository scope
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-12-20 15:42:11 -08:00
Derek McGowan
f982e05861
Update scope specification for resource class
...
Update grammar to support a resource class. Add
example for plugin repository class.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-12-20 15:42:11 -08:00
Derek McGowan
74c5c2fee4
Remove newlines from end of error strings
...
Golint now checks for new lines at the end of go error strings,
remove these unneeded new lines.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-12-20 15:42:11 -08:00
Richard Scothern
e249b61e90
Merge pull request #2059 from RichardScothern/2.6-release-notes
...
Release notes for v2.6.0-rc1
2016-11-11 12:03:20 -08:00
Richard Scothern
ff9533dd6f
Release notes for v2.6.0-rc1
...
Signed-off-by: Richard Scothern <richard.scothern@docker.com>
2016-11-11 11:54:35 -08:00
Richard Scothern
cb98aa744b
Merge pull request #2060 from RichardScothern/release-prep
...
Release preperation: update AUTHORS and version file
2016-11-11 10:28:15 -08:00
Richard Scothern
cb2c78ce9b
Release preperation: update AUTHORS and version file
...
Signed-off-by: Richard Scothern <richard.scothern@docker.com>
2016-11-11 09:23:05 -08:00
Derek McGowan
9cc7c94e4e
Merge pull request #2052 from RichardScothern/fix-links
...
Fix storage driver links
2016-11-11 09:05:44 -08:00
Richard Scothern
6e62b39842
Merge pull request #2036 from pyr/fix/sort-v2-headers
...
v2 signer: correctly sort headers
2016-11-10 15:31:24 -08:00
Derek McGowan
8016d2d890
Merge pull request #2053 from dmcgowan/add-trim-name
...
Add trim name method helper to create name only references
2016-11-10 15:03:34 -08:00
Derek McGowan
31a91e419c
Add trim name method helper to create name only references
...
Add a simple helper to create name only references without having
to first get the name as a string and reparse. This method does
not fail so ignoring or checking error to simply trim reference
is not required.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-11-10 14:46:04 -08:00
Richard Scothern
4d65dd513e
Merge pull request #2038 from spacexnice/master
...
fix: oss driver would get connection reset by peer when upload large image layer.
2016-11-10 14:44:32 -08:00
Richard Scothern
09b2d06d5d
Fix storage driver links
...
Signed-off-by: Richard Scothern <richard.scothern@docker.com>
2016-11-10 14:28:28 -08:00
Stephen Day
4ad885a672
Merge pull request #2051 from vieux/update_plugin_media_typev1
...
switch to v1 and remove .image
2016-11-10 11:49:48 -08:00
Victor Vieux
b82a2efc33
switch to v1 and remove .image
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-11-10 11:39:15 -08:00