Commit Graph

790 Commits

Author SHA1 Message Date
Diogo Mónica 0a3025c959 Merge pull request #235 from HuKeping/update-readme
Docs: update readme
2015-10-28 15:36:59 -07:00
David Lawrence daa36b43b7 Merge pull request #242 from docker/unify-root-nonroot-keystore
Unify root nonroot keystore
2015-10-28 13:14:19 -07:00
David Lawrence ccb2e1a8f4 Merge pull request #241 from endophage/include_gotuf
Include gotuf in notary
2015-10-28 13:13:48 -07:00
Ying Li 6150c931dd Make a keysMap rather than just declaring
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-28 12:47:42 -07:00
David Lawrence 34cbbb270b updating maintainers and adding top level contributors, removing those files from tuf dir
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-10-27 22:59:23 -07:00
David Lawrence fa70a79ed7 go fmt was complaining about import order after my sed replacement
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-10-27 17:22:08 -07:00
David Lawrence 21ee24bc30 fixing vet error in existing notary code
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-10-27 16:37:41 -07:00
Ying Li 57aaee1c1c Remove unneeded contants from keystoremanager
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-27 16:36:53 -07:00
David Lawrence 2833a88292 adding gotuf to notary
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-10-27 16:36:06 -07:00
Ying Li 75b63b84cd Add import/export to KeyStore interface so that the import_export code
makes use of this rather than mangle files manually to import/export
root keys.  (Regular keys it just zips up the whole directory.)

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-27 16:19:14 -07:00
Ying Li 566bd3ce67 Combine the nonRootKeyStore with the rootKeyStore, and move the abstracting
over the root keys directory from non-root keys directory from keystoremanager
to keystore, since we're eliminating keystoremanager.

Maintain the two separate directories, though, because one can't tell whether
there is an old-style separate-directories structure, or if someone has a GUN
that starts with tuf_keys.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-27 12:33:46 -07:00
Ying Li 4036910a6a Merge pull request #240 from cyli/server-healthcheck-endpoint
Add the health handler to the main server
2015-10-27 11:47:53 -07:00
Ying Li b238d85159 Add the health handler to the main server
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-26 14:23:48 -07:00
Ying Li bcdd375ce5 Merge pull request #229 from cyli/tls-config-refactor
Factor out TLS configuration code for server and TLS
2015-10-26 09:33:41 -07:00
Ying Li 399df0a982 Merge pull request #234 from cyli/remove-symlinks
Remove symlinking root keys
2015-10-26 08:23:35 -07:00
Hu Keping f8b9127181 Docs: update readme
Two main things:
- Update the content
- Update broken links

Signed-off-by: Hu Keping <hukeping@huawei.com>
2015-10-26 16:42:20 +08:00
Ying Li 408f1efee7 Use -coverpkg to build multiple coverage outputs and use a tool
to merge them, to get more complete coverage information (so a package
can be tested by code outside the package).

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-24 02:31:09 -07:00
Ying Li 0eb76f4057 Remove option prefixing
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-23 21:55:53 -07:00
Ying Li ed61974d10 Remove linking from the filestore
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-23 21:19:47 -07:00
Ying Li d5bbaae9c9 Remove symlinking and symlink checking from key import-export.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-23 21:07:37 -07:00
Ying Li 15c3bbeb9c Remove explicit test for parsing garbage in certs.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-23 20:55:59 -07:00
Ying Li f961afe5c3 Do not run shortened tests in CI, since some codepaths are just
unexercised.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-23 18:47:39 -07:00
Ying Li 09dc607bef Read multiple CA certs from a single PEM file - thanks @mtrmac!
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-23 15:56:47 -07:00
Ying Li c7bef046d5 Clean up the make targets for CircleCI some more.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-21 18:47:44 -07:00
Ying Li 61f9f84254 Use configuration option structures to set up client TLS and server TLS.
Test for if client cert is passed without a client key and vice versa.
Fail in ConfigureClientTLS if only one of client cert/key is passed.
Lint fixes.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-21 18:43:33 -07:00
Ying Li e409eb0dc3 Remove Link from the filestore
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-21 14:30:35 -07:00
Ying Li 402c704798 Remove symlinks from notary-client repo creation
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-21 14:21:10 -07:00
Diogo Monica efb71c9ef1 Update gotuf
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-10-21 12:15:23 -07:00
Ying Li 412e0facc8 Explicitly check the skip tls verify boolean in notary client
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-21 10:38:48 -07:00
Ying Li 9a8fbb5774 Exit the foreach loop if failure, so CI will fail on failed test
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-21 00:21:15 -07:00
David Lawrence 8a996f417a updating godeps and notary for some syntax changes in gotuf brought on by golint
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-10-20 23:56:35 -07:00
David Lawrence e6460330bd fixing camel casing of func
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-10-20 21:45:30 -07:00
Ying Li 4e24d49ab2 Use the makefile targets for running the test in CircleCI. Push
coverage output to codecov.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-20 21:07:24 -07:00
Ying Li 208977b1ad Add an extra test for ECDSAx509 keys
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-20 20:57:18 -07:00
Ying Li ea7d621705 Add a utility function to return a public key ID from a certificate.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-20 19:38:39 -07:00
Ying Li a858a4f362 Update Makefile with targets that can be used with CircleCI. Also
allow an option to run the short tests (without coverage) while
searching for race conditions.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-20 14:20:01 -07:00
Ying Li 5cdb46a9da Accept the same ciphersuites in the client and server as docker.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:31:18 -07:00
Ying Li fb81aaed10 Add test for if the client CA dir is empty
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:31:18 -07:00
Ying Li fc389b7bc3 Use tls client config utility in notary as well.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:31:18 -07:00
Ying Li fb1013b997 Add servername to the client TLS config, and use it to build notary-server's
TLS connection to notary-signer.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:29:54 -07:00
Ying Li b399783eee Slight refactoring of ConfigureServerTLS and added a ConfigureClientTLS
as well.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:29:54 -07:00
Ying Li 8d96cf0c1f Use ConfigureServerTLS for notary-server and notary-signer
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:29:54 -07:00
Ying Li 7356dfd273 Change ConfigServerTLS to take a client CA directory instead of certs
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:29:54 -07:00
Ying Li e50cc2c9cd Add test to ensure that x509filestore loads existing certs from the
directory without modifying/overwriting them.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:29:54 -07:00
Ying Li 77dc081ead Add a utility which generates a tls configuration for you given the
requisite certs.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 17:29:54 -07:00
Ying Li f417279d0d Merge pull request #228 from cyli/new-vipers
Do not use the viper singleton instance everywhere
2015-10-19 17:29:02 -07:00
Ying Li d77d8f1ce8 Lint fix
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 11:52:43 -07:00
Ying Li a5e64ecf03 Do not use the viper singleton instance everywhere
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-19 11:50:04 -07:00
moxiegirl 1efacea48a Merge pull request #225 from moxiegirl/hugo-tooling-15
Retooling for Hugo 15 patch
2015-10-18 14:19:48 -07:00
Ying Li b42f9241a4 Merge pull request #219 from cyli/server-healthcheck
Healthchecks for notary-server
2015-10-16 18:06:39 -07:00