Derek McGowan
efd7ea4624
Add offline token option
...
Login needs to add an offline token flag to ensure a refresh token is returned by the token endpoint.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-03-04 14:32:51 -08:00
Derek McGowan
1126e32234
Add post token implementation
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-03-04 13:53:06 -08:00
Richard Scothern
5b8592b72c
Merge pull request #1475 from dmcgowan/oauth-registry-client
...
Add oauth support to registry client auth
2016-03-04 11:51:53 -08:00
Derek McGowan
2ef7a872de
Add options struct to initialize handler
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-03-04 11:32:48 -08:00
Derek McGowan
c9880e6b05
Fetch token by credentials and refresh token
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-03-04 00:34:17 -08:00
Derek McGowan
66d6eaa83f
Update scope list to use space separator
...
The oauth spec defines using a space to separate parts of a scope.
To better comply with future implementations built on oauth use a space to separate the resource scopes.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-03-03 17:44:09 -08:00
Derek McGowan
d51f76f903
Update oauth documentation to include returned scope
...
Add post response values
Update password grant type to match oauth spec
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-03-03 17:44:09 -08:00
Richard Scothern
62d46ef07d
Merge pull request #1388 from aibaars/gcs-simplify-move
...
StorageDriver: GCS: remove support for directory Moves
2016-03-03 10:20:51 -08:00
Arthur Baars
1593c2413f
StorageDriver: GCS: remove support for directory Moves
...
The Move operation is only used to move uploaded blobs
to their final destination. There is no point in implementing
Move on "folders". Apart from simplifying the code, this also
saves an HTTP request.
Signed-off-by: Arthur Baars <arthur@semmle.com>
2016-03-03 13:28:13 +00:00
Richard Scothern
c8dff1bb57
Merge pull request #1364 from aaronlehmann/content-type-in-api-docs
...
Add information about manifest content types to API spec
2016-03-01 13:53:49 -08:00
Richard Scothern
5cbac00dd4
Merge pull request #1386 from andrewnguyen/garbage_collect_pick_from_1050
...
garbage collection
2016-02-29 15:01:48 -08:00
Andrew T Nguyen
feab4aafbc
Implements garbage collection subcommand
...
- Includes a change in the command to run the registry. The registry
server itself is now started up as a subcommand.
- Includes changes to the high level interfaces to support enumeration
of various registry objects.
Signed-off-by: Andrew T Nguyen <andrew.nguyen@docker.com>
2016-02-29 14:15:21 -08:00
Brian Bland
3ae504384c
Merge pull request #1473 from miminar/pass-blob-size
...
Commit uploaded blob with size
2016-02-29 10:26:45 -08:00
Aaron Lehmann
a5bd3e6144
Merge pull request #1474 from miminar/respect-errors
...
Respect errors returned from middleware code
2016-02-26 23:28:37 -08:00
Aaron Lehmann
770b6728db
Merge pull request #1481 from stevvooe/remove-AUTHORS-from-default-make-target
...
Makefile: remove AUTHORS from default target
2016-02-26 23:26:40 -08:00
Brian Bland
e430d77342
Merge pull request #1482 from stweil/master
...
Fix some typos in comments and strings
2016-02-23 14:08:21 -08:00
Stefan Weil
615c6dfced
Fix some typos in comments and strings
...
All of them were found and fixed by codespell.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-02-23 22:33:38 +01:00
Aaron Lehmann
7571572305
Merge pull request #1471 from RichardScothern/tag-headers
...
Enable proxying registries to downgrade fetched manifests to Schema 1.
2016-02-23 11:08:46 -08:00
Michal Minar
21a0878665
Commit blob with known size
...
Signed-off-by: Michal Minar <miminar@redhat.com>
2016-02-23 08:44:06 +01:00
Richard Scothern
7144936612
Enable proxying registries to downgrade fetched manifests to Schema 1.
...
Ensure Accept headers are sent with TagService.Get (which hits manifest
endpoints). Add support for remote Get and Put for the proxied blobstore.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-02-22 17:56:48 -08:00
Stephen J Day
7230e9def7
Makefile: remove AUTHORS from default target
...
While it is generally good practice to look before jumping, many
developers enjoy running `make` without reading the Makefile and
indiscriminately use `git add -A`. This behavior, coupled with
generating AUTHORS in the default target result in garbage in various
PRs and extra round trips to remove said garbage.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-02-22 12:56:23 -08:00
Michal Minar
4d15bf071c
Defined ErrAccessDenied error
...
Middleware code may perform additional checks on blobs written. Allow it
to return access denied errors that will result in 403 Forbidden.
Signed-off-by: Michal Minar <miminar@redhat.com>
2016-02-22 21:12:59 +01:00
Richard Scothern
ce05116517
Merge pull request #1477 from xiekeyang/unit-test
...
compare error output in tagstore unit test
2016-02-22 10:13:16 -08:00
xiekeyang
d58188c4d7
compare error output in tagstore unit test
...
Signed-off-by: xiekeyang <xiekeyang@huawei.com>
2016-02-22 17:34:22 +08:00
Richard Scothern
ad1b181291
Merge pull request #1466 from RichardScothern/proxy-lazy-auth
...
Lazily evaluate auth challenges
2016-02-19 15:06:35 -08:00
Richard Scothern
6344c99848
Merge pull request #1472 from tanksuzuki/deadlink-to-license-file
...
Fix deadlink to license file
2016-02-18 10:06:43 -08:00
Asuka Suzuki
b035d372e6
Fix deadlink to license file
...
Signed-off-by: Asuka Suzuki <hello@tanksuzuki.com>
2016-02-18 17:12:51 +09:00
Richard Scothern
4ce15476bd
Extend authChallenger interface to remove type cast.
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-02-17 13:07:14 -08:00
Brian Bland
5806f275bf
Merge pull request #1469 from noxiouz/fix_storage_interface_desc
...
Fix description of StorageDriver.WriteStream
2016-02-17 10:46:11 -08:00
Aaron Lehmann
59a27406cd
Merge pull request #1468 from HuKeping/master
...
Cleanup: remove unused log
2016-02-17 10:00:02 -08:00
Anton Tiurin
a048a4c8d5
Fix description of StorageDriver.WriteStream
...
Offset can be more than CurrentSize as long as this case is checked
by DriverSuite.testContinueStreamAppend.
Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2016-02-17 13:57:20 +03:00
HuKeping
5408d4e0a5
Cleanup: remove unused log
...
Signed-off-by: Hu Keping <hukeping@huawei.com>
2016-02-17 14:11:20 +08:00
Brian Bland
5a1863b76e
Merge pull request #1467 from BrianBland/s3awsFixTest
...
[driver/s3aws] Fix TestStorageClass
2016-02-16 18:14:34 -08:00
Brian Bland
c770f28f04
[driver/s3aws] Fix TestStorageClass
...
Fixes bug in TestStorageClass for s3aws driver where the "standard" file
was checked for reduced-redundnancy storage.
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-02-16 17:50:55 -08:00
Richard Scothern
56af60ad24
To avoid any network use unless necessary, delay establishing authorization
...
challenges with the upstream until any proxied data is found not to be local.
Implement auth challenges behind an interface and add to unit tests. Also,
remove a non-sensical unit test.
Signed-off-by: Richard Scothern <richard.scothern@docker.com>
2016-02-16 11:53:42 -08:00
Brian Bland
b9907c4853
Merge pull request #1385 from BrianBland/s3UseAWSLibrary
...
[driver/s3] Use aws/aws-sdk-go instead of goamz for s3 driver and cloudfront
2016-02-16 11:19:15 -08:00
Richard Scothern
d126752d97
Merge pull request #1462 from liuchang23/master
...
enhance log message of oss driver
2016-02-16 10:49:18 -08:00
Derek McGowan
98620458e3
Add credential authenticator interface
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-02-16 10:23:35 -08:00
liuchang0812
0758653b42
fix gofmt
...
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2016-02-16 11:42:09 +08:00
liuchang0812
dbba9cf299
closes #1461 , enhance log message of oss driver
...
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2016-02-16 11:17:09 +08:00
Derek McGowan
3fc4e4cdc8
Add resource scope list definition
...
Allow providing multiple scopes in a single scope string
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-02-12 16:07:21 -08:00
Brian Bland
1319be2cae
Adds new s3 driver using aws-sdk-go instead of goamz
...
Keeps old s3 driver, renames to s3goamz, registers new s3 driver as both
"s3" and "s3aws"
Changes cloudfront middleware to use aws-sdk-go
Signed-off-by: Brian Bland <brian.bland@docker.com>
2016-02-12 15:59:26 -08:00
Derek McGowan
6d6c37c06a
Update client section
...
Use client_id as defined in oauth rfc instead of custom client field
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-02-11 13:57:23 -08:00
Derek McGowan
32931689d5
Add scope documentation
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-02-11 13:57:23 -08:00
Derek McGowan
d8b59ab637
Add specification for using oauth with the token server
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-02-11 13:57:23 -08:00
Olivier Gambier
bf991fec01
Merge pull request #1455 from RichardScothern/grammar-correct
...
Reference name rather than repository in reference grammar
2016-02-11 10:40:22 -08:00
Richard Scothern
846328977e
Reference name rather than repository in reference grammar
...
Signed-off-by: Richard Scothern <richard.scothern@docker.com>
2016-02-11 10:26:32 -08:00
Olivier Gambier
7b66c50bb7
Merge pull request #1452 from aaronlehmann/export-no-credentials-error
...
Export "no basic auth credentials" as an error value
2016-02-11 10:09:22 -08:00
Olivier Gambier
d438e75dcf
Merge pull request #1453 from moxiegirl/remove-tutorials
...
Updating Dockerfile
2016-02-10 22:32:49 -08:00
Mary Anthony
78aa1d2bb1
Updating Dockerfile
...
Signed-off-by: Mary Anthony <mary@docker.com>
2016-02-10 21:12:45 -08:00