Aaron Lehmann
2177a6a1bf
Merge pull request #1420 from dmcgowan/configurable-trust-key
...
Add option to disable signatures
2016-02-10 16:15:59 -08:00
Aaron Lehmann
a3213ff331
Merge pull request #1420 from dmcgowan/configurable-trust-key
...
Add option to disable signatures
2016-02-10 16:15:59 -08:00
Derek McGowan
e8eca4db17
Add documentation for compatibility configuration
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-02-10 15:20:55 -08:00
Derek McGowan
956ece5c70
Add option to disable signatures
...
Add option for specifying trust key for signing schema1 manifests.
Since schema1 signature key identifiers are not verified anywhere and deprecated, storing signatures is no longer a requirement.
Furthermore in schema2 there is no signature, requiring the registry to already add signatures to generated schema1 manifests.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-02-10 15:20:39 -08:00
Derek McGowan
ae59517936
Fix schema1 manifest etag and docker content digest header
...
When schema2 manifests are rewritten as schema1 currently the etag and docker content digest header keep the value for the schema2 manifest.
Fixes #1444
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-02-09 18:28:43 -08:00
Brian Bland
4bb5f80885
Improves flexibility of configuration handling for S3 driver
...
Treats nil parameters the same as unprovided parameters (fixes issues
where certain parameters are printed to "<nil>").
Accepts "true" and "false" string values for boolean parameters.
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-02-09 17:27:16 -08:00
igayoso
a940a07fa9
Change certificate hypothetic path
...
Signed-off-by: igayoso <igayoso@gmail.com>
2016-02-10 01:03:28 +01:00
Richard Scothern
fd7ccc0bdf
Add documentation about what is sent for delete events
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-02-08 13:37:35 -08:00
Richard Scothern
8745d31f60
Merge pull request #1419 from aaronlehmann/safer-header-copying
...
On redirect, only copy headers when they don't already exist in the redirected request
2016-02-05 12:14:01 -08:00
Aaron Lehmann
7761a70389
Add information about manifest content types to API spec
...
Bring the spec up to date for schema2 changes.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-02-05 11:27:20 -08:00
Aaron Lehmann
c89f5b3775
Add information about manifest content types to API spec
...
Bring the spec up to date for schema2 changes.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-02-05 11:27:20 -08:00
Richard Scothern
9894643c88
Correct type for repo reference
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-02-04 17:32:55 -08:00
Derek McGowan
0751bb3179
Merge pull request #1417 from RichardScothern/token-print
...
Print the correct token expiration time
2016-02-04 16:57:08 -08:00
Richard Scothern
fe0e76f322
Merge pull request #1350 from aibaars/storage-filewriter-pointer
...
Storage: remove bufferedFileWriter (dead code)
2016-02-04 16:47:52 -08:00
Richard Scothern
def3e430bb
Merge pull request #1401 from BrianBland/s3StorageClass
...
Adds "storageclass" configuration parameter for S3 driver.
2016-02-04 16:44:13 -08:00
Richard Scothern
2cc6ccbded
Merge pull request #1401 from BrianBland/s3StorageClass
...
Adds "storageclass" configuration parameter for S3 driver.
2016-02-04 16:44:13 -08:00
Richard Scothern
ab6c08691e
Merge pull request #1408 from aaronlehmann/repository-interface
...
Rename Name method of Repository to Named
2016-02-04 16:43:35 -08:00
Olivier Gambier
5596e787b6
Merge pull request #1409 from RichardScothern/recipe-menu
...
Move 'Recipes' into the Registry menu
2016-02-04 10:32:39 -08:00
Aaron Lehmann
6158eb544d
Rename Name method of Repository to Named
...
This makes code that gets the name as a string read like
repo.Named().Name() instead of repo.Name().Name().
Requested in
https://github.com/docker/docker/pull/19887#discussion_r51479753
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-02-04 09:55:36 -08:00
Mary Anthony
8fdd7f5dfe
Update title of Registry to Docker Registry
...
Signed-off-by: Mary Anthony <mary@docker.com>
2016-02-04 08:37:45 -08:00
yuzou
95b9c7281b
read the actual number of bytes according to the initial size.
...
Signed-off-by: yuzou <zouyu7@huawei.com>
2016-02-04 16:14:35 +08:00
Aaron Lehmann
bbf983c061
On redirect, only copy headers when they don't already exist in the redirected request
...
A changeset under consideration for Go 1.7 would automatically copy
headers on redirect. This change future-proofs our code so we won't make
duplicate copies of the headers if net/http does it automatically in the
future.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-02-03 13:19:44 -08:00
Richard Scothern
091c12f86b
Print the correct token expiration time
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-02-03 10:42:32 -08:00
Omer Cohen
d842645de9
Update configuration.md
...
fixed broken links
Signed-off-by: Omer Cohen <git@omer.io>
2016-02-03 15:57:55 +02:00
Richard Scothern
bd8b81a686
Make 'Recipes' the last item in the list
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-02-02 10:18:35 -08:00
Richard Scothern
586111b11e
Merge pull request #1407 from RichardScothern/docs
...
Add compatibility notes about pull by digest across Docker and Registry versions.
2016-02-02 09:44:27 -08:00
Olivier Gambier
c4b79bda8a
Merge pull request #1410 from aaronlehmann/failured
...
Correct ErrAuthenticationFailure message
2016-02-01 19:20:35 -08:00
Richard Scothern
4f7b32bc23
Add compatibility notes about pull by digest across Docker and Registry versions.
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-02-01 17:05:27 -08:00
Aaron Lehmann
95a50c7236
Correct ErrAuthenticationFailure message
...
This was "authentication failured". Change it to "authentication
failure".
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-02-01 17:03:41 -08:00
Aaron Lehmann
9b395d0789
Merge pull request #1403 from dmcgowan/auth-const-keys
...
Update auth context keys to use constant
2016-02-01 16:29:07 -08:00
Aaron Lehmann
db48ad4d0f
Merge pull request #1390 from dmcgowan/token-server
...
Simple integration test token server
2016-02-01 16:27:49 -08:00
Brian Bland
a2ade36ecf
Adds test for S3 storage class configuration option
...
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-02-01 16:01:55 -08:00
Brian Bland
8e7910826e
Adds "storageclass" configuration parameter for S3 driver.
...
Defaults to STANDARD, also supports REDUCED_REDUNDANCY.
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-02-01 16:01:19 -08:00
Brian Bland
4688d1adc2
Adds "storageclass" configuration parameter for S3 driver.
...
Defaults to STANDARD, also supports REDUCED_REDUNDANCY.
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-02-01 16:01:19 -08:00
Aaron Lehmann
6417c05a27
Merge pull request #1381 from BrianBland/s3CustomUAString
...
Adds custom registry User-Agent header to s3 HTTP requests
2016-02-01 15:40:36 -08:00
Richard Scothern
9710599f99
Make 'Recipes' into the Registry menu
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-02-01 15:22:25 -08:00
Brian Bland
f41a408e34
Adds custom registry User-Agent header to s3 HTTP requests
...
Uses docker/goamz instead of AdRoll/goamz
Adds a registry UA string param to the storage parameters when
constructing the storage driver for the registry App.
This could be used by other storage drivers as well
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-02-01 13:43:46 -08:00
Mary Anthony
01bb31fc42
New navigation for 1.10
...
Capturing Olivier's comments
Signed-off-by: Mary Anthony <mary@docker.com>
2016-01-28 17:35:54 -08:00
Derek McGowan
badd8c49b6
Update auth context keys to use constant
...
Prevent using strings throughout the code to reference a string key defined in the auth package.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-01-28 17:02:09 -08:00
Aaron Lehmann
6c135e03ce
Merge pull request #1393 from RichardScothern/putbydgst
...
Add manifest put by digest to the registry client
2016-01-28 14:41:07 -08:00
Derek McGowan
0e96574ea2
Merge pull request #1392 from aaronlehmann/client-range-requests
...
Support range requests in the client's httpReadSeeker
2016-01-28 13:44:43 -08:00
Aaron Lehmann
8e571dff41
Add a CheckRedirect function to the HTTP client
...
Use it to preserve Accept and Range headers that were added to the
original request.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-27 16:11:36 -08:00
Aaron Lehmann
a58b7625ba
Support range requests in the client's httpReadSeeker
...
Remove buffering on the reader, because it's not useful. Also remove
artificial io.EOF return.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-27 16:11:36 -08:00
David Calavera
377f556464
Respond with 401 when there is an unauthorized error from the registry.
...
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-01-27 13:55:33 -05:00
Richard Scothern
3e570e59f1
Invalidate the blob store descriptor caches when content is removed from from
...
the proxy. Also, switch to reference in the scheduler API.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-26 17:02:59 -08:00
Richard Scothern
a7740f5d0f
Correct test digest lengths and enable all unit tests
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-26 17:02:46 -08:00
Richard Scothern
f757372dd8
Add manifest put by digest to the registry client
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-26 14:20:23 -08:00
Tibor Vass
bd4e6b2de9
Merge pull request #19057 from dnephin/remove_version_from_registry_pkg
...
Remove dockerversion from registry package
2016-01-25 22:45:06 -08:00
Derek McGowan
1eed0ddd07
Update token header struct to use json.RawMessage pointer
...
Since RawMessage json receivers take a pointer type, the Header structure should use points in order to call the json.RawMessage marshal and unmarshal functions
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-01-25 20:11:41 -08:00
Arthur Baars
7dee3d19d9
Storage: remove bufferedFileWriter (dead code)
...
Signed-off-by: Arthur Baars <arthur@semmle.com>
2016-01-23 10:30:08 +00:00