Brian Bland
a35f1d04fe
Adds test for extraneous configuration environment variables
...
Signed-off-by: Brian Bland <brian.bland@docker.com>
2015-01-21 12:02:51 -08:00
Brian Bland
24155c0431
Remove dependency on BrianBland/yaml fork
...
Switched back to only using the go-yaml/yaml mainline repo.
Fixes #69
2015-01-16 11:36:25 -08:00
Brian Bland
cc3c648f44
Fixes tests, moves layerhandler in config file
2015-01-08 17:29:22 -08:00
Brian Bland
17915e1b01
Adds support for content redirects for layer downloads
...
Includes a delegate implementation which redirects to the URL generated
by the storagedriver, and a cloudfront implementation.
Satisfies proposal #49
2015-01-08 17:01:28 -08:00
Brian Bland
dbc3ecdff5
Updates configuration README with explanations of more fields
...
Documents auth, reporting, and http
2015-01-06 10:59:52 -08:00
Brian Bland
ea6c082e85
Minor cleanup/testing for HMAC upload tokens
...
Changes configuration variable, lowercases private interface methods,
adds token sanity tests.
2015-01-05 14:37:56 -08:00
Brian Bland
07ba5db168
Serializes upload state to an HMAC token for subsequent requests
...
To support clustered registry, upload UUIDs must be recognizable by
registries that did not issue the UUID. By creating an HMAC verifiable
upload state token, registries can validate upload requests that other
instances authorized. The tokenProvider interface could also use a redis
store or other system for token handling in the future.
2015-01-05 14:27:05 -08:00
Stephen J Day
d0a9e9b475
Integrate auth.AccessController into registry app
...
This changeset integrates the AccessController into the main registry app. This
includes support for configuration and a test implementation, called "silly"
auth. Auth is only enabled if the configuration is present but takes measure to
ensure that configuration errors don't allow the appserver to start with open
access.
2014-12-18 12:34:56 -08:00
Brian Bland
030b0ff310
Allows storagedriver parameter values to be of type interface{}
...
This enables use of nil, booleans, numeric types, and even complex structures for parameter values, assuming they can be parsed from yaml.
2014-12-17 19:06:55 -08:00
Brian Bland
f9b119974d
Genericizes the yaml+environment versioned configuration parser
...
Registry configuration parsing uses the new parser with a single version
declaration and an environment prefix of "REGISTRY"
2014-12-17 14:22:02 -08:00
Brian Bland
c51ea97234
Allows HTTP bind address to be overridden by an environment variable
...
Uses REGISTRY_HTTP_ADDR
2014-12-15 14:17:51 -08:00
Brian Bland
cd057fd120
Updates configuration tests for bugsnag and newrelic params
2014-12-12 18:05:37 -08:00
Brian Bland
43a50b5e82
Adds bugsnag and newrelic metrics and error reporting
...
Configuration variables are added under the REGISTRY_REPORTING
namespace, for example REGISTRY_REPORTING_BUGSNAG_APIKEY
2014-12-12 17:49:06 -08:00
Stephen J Day
dd8eb6a8df
configuration.Parse should take io.Reader
2014-12-01 17:32:31 -08:00
Brian Bland
88795e0a14
Lots of various golint fixes
...
Changes some names to match go conventions
Comments all exported methods
Removes dot imports
2014-11-17 15:46:06 -08:00
Brian Bland
c8ea224f9c
Miscellaneous go vet fixes
...
Fixes some format strings and uses keyed fields for struct construction
2014-11-12 17:19:19 -08:00
Brian Bland
96d26842f8
Refactors configuration parser, removes Registry level from config file
...
Most conditional parsing code has been moved into UnmarshalYAML
functions for simplicity
Uses the BrianBland fork of goyaml in configuration.go temporarily until
fix https://github.com/go-yaml/yaml/pull/52 is merged in
2014-11-04 22:31:59 -08:00
Brian Bland
2b51a8ab43
Adds README.md to the configuration package
2014-11-04 22:31:59 -08:00
Brian Bland
2013ef5a5b
Adds documentation for the configuration parser and tests
2014-11-04 22:31:59 -08:00
Brian Bland
0ad4bba103
Initial configuration parser
2014-11-04 22:31:59 -08:00