Ying Li
|
ba4e596457
|
Move the testing.T module to be the first argument to helper functions.
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-13 16:19:17 -07:00 |
|
Ying Li
|
09a041be14
|
Use more idiomatic go in if conditions.
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-13 16:18:59 -07:00 |
|
Ying Li
|
9290507a1f
|
In server/storage/database, do not panic, and also return the right error.
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-13 15:56:45 -07:00 |
|
Ying Li
|
517dd4bbd0
|
Rename MySQL to SQL in server DB tests
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-13 11:28:57 -07:00 |
|
Ying Li
|
df95dc4564
|
Add a DB health check to the server storage DB
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-13 11:28:14 -07:00 |
|
Ying Li
|
85a447f701
|
Clean up SQLStorage docstring to refer to the model
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-12 17:10:33 -07:00 |
|
Ying Li
|
4eaf6dc15c
|
Add migrate to the sample mysql container
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-12 16:50:25 -07:00 |
|
Ying Li
|
7fa991c3ff
|
Gormizes the server database and make it SQL-DB agnostic.
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-12 16:45:41 -07:00 |
|
Ying Li
|
75893ffed3
|
Merge pull request #211 from cyli/gormize-server-db-tests
Convert the server DB tests to use GORM with SQLite3 instead of sqlmock
|
2015-10-12 16:27:37 -07:00 |
|
Ying Li
|
87ec8a25bf
|
Use NULL DEFAULT NULL instead of NULL for timestamps
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-12 16:03:56 -07:00 |
|
Ying Li
|
e8528ec391
|
Attempt to match the model exactly up with the initial sql + the
migrate sql.
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-12 15:44:00 -07:00 |
|
Ying Li
|
1bb1f1acd2
|
Refactor server/storage models to use gorm.Model and to be in their
file.
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-12 14:28:20 -07:00 |
|
Diogo Mónica
|
8b17a84aa0
|
Small fixes to the README
|
2015-10-12 12:14:50 -07:00 |
|
Diogo Mónica
|
ee8cb1e2cb
|
Changed CircleCI location
|
2015-10-12 12:14:19 -07:00 |
|
Diogo Mónica
|
aac911c91c
|
Merge pull request #214 from vikstrous/fix_makefile
Revert "add `make install`, fix #202"
|
2015-10-12 10:08:11 -07:00 |
|
Viktor Stanchev
|
48e6ecedca
|
Revert "add make install, fix #202"
This reverts commit 77a16d3116.
Signed-off-by: Viktor Stanchev <me@viktorstanchev.com>
|
2015-10-12 10:04:31 -07:00 |
|
Diogo Mónica
|
f70a03fb64
|
Merge pull request #209 from endophage/key_rotation
Strawman for targets and snapshot key rotation
|
2015-10-11 12:01:15 -07:00 |
|
Diogo Mónica
|
c61b9c6f30
|
Merge pull request #212 from vikstrous/badge
add circle ci badge
|
2015-10-11 11:59:52 -07:00 |
|
Viktor Stanchev
|
987db9e9bf
|
add circle ci badge
Signed-off-by: Viktor Stanchev <me@viktorstanchev.com>
|
2015-10-10 22:51:18 -07:00 |
|
Ying Li
|
01f7adc80c
|
Document the intended behavior of each function in the storage
interface.
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-10 18:44:44 -07:00 |
|
David Lawrence
|
e587b0427a
|
test for key rotation
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
|
2015-10-09 22:53:57 -07:00 |
|
Ying Li
|
99cac889b1
|
Add some more tests for storing TUF files in the db
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-09 22:48:21 -07:00 |
|
David Lawrence
|
98cde51f18
|
working basic key rotation for targets and snapshot key. Command is 'notary key rotate [GUN]'
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
|
2015-10-09 20:35:06 -07:00 |
|
David Lawrence
|
ac54370fb0
|
cleanup after discussing with Diogo
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
|
2015-10-09 19:40:36 -07:00 |
|
David Lawrence
|
009400650e
|
minor tweaks to key rotation
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
|
2015-10-09 19:24:08 -07:00 |
|
David Lawrence
|
959d0267ac
|
command skeletons in place, changelist actions implemented
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
|
2015-10-09 19:24:08 -07:00 |
|
David Lawrence
|
83f96997d3
|
changelist management of key rotation
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
|
2015-10-09 19:23:47 -07:00 |
|
David Lawrence
|
c3f39e1e06
|
Merge pull request #208 from docker/no-warnings-makefile
Fixing makefile warnings
|
2015-10-09 19:20:45 -07:00 |
|
Diogo Mónica
|
a4048f543d
|
Merge pull request #206 from ryancox/master
Add support for 'notary status' command
|
2015-10-09 19:08:35 -07:00 |
|
Diogo Monica
|
b220d57783
|
Fixing makefile warnings
Signed-off-by: Diogo Monica <diogo@docker.com>
|
2015-10-09 15:47:47 -07:00 |
|
Ying Li
|
5f70699937
|
Add more tests for UpdateCurrent
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-09 12:19:17 -07:00 |
|
Diogo Mónica
|
e62151e348
|
Merge pull request #207 from vikstrous/make_install
add `make install`, fix #202
|
2015-10-09 11:33:41 -07:00 |
|
Viktor Stanchev
|
77a16d3116
|
add make install, fix #202
Signed-off-by: Viktor Stanchev <me@viktorstanchev.com>
|
2015-10-09 11:05:08 -07:00 |
|
Ying Li
|
31bb0b0525
|
Do more verifications on the server store DB tests using gorm
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-08 23:20:48 -07:00 |
|
Ryan Cox
|
7bee606f43
|
Add support for 'notary status' command to show details about unpublished changes
Signed-off-by: Ryan Cox <ryan.a.cox@gmail.com>
|
2015-10-08 22:07:36 -07:00 |
|
Diogo Mónica
|
53467fd417
|
Merge pull request #85 from docker/simple_test_script
add a simple test script, eventually this can grow to be our CI script
|
2015-10-08 16:58:44 -07:00 |
|
Diogo Mónica
|
258e5c645e
|
Merge pull request #201 from vikstrous/vikstrous-patch-1
Mention how to connect to local notary in README
|
2015-10-08 16:58:03 -07:00 |
|
Ying Li
|
d092f78f05
|
Merge pull request #205 from cyli/signer-healthcheck
Adding a DB check to the signer health check
|
2015-10-08 16:53:57 -07:00 |
|
Ying Li
|
06e21a234c
|
Convert server/storage/database tests to use SQLite3
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-08 16:42:05 -07:00 |
|
Ying Li
|
a70605a9e6
|
Shorten health check name and remove redundant logging
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-08 15:42:14 -07:00 |
|
Diogo Mónica
|
b4e1c80fc4
|
Merge pull request #203 from cyli/osx-getting-started
More details in the README on how to compile notary and run the README example
|
2015-10-08 14:23:34 -07:00 |
|
Ying Li
|
77fa33f737
|
Update godeps
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-07 21:00:20 -07:00 |
|
Ying Li
|
2740fd011a
|
Fix docstring comment
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-07 21:00:01 -07:00 |
|
Ying Li
|
815675eea9
|
After upgrading grpc, update how the server is set up with TLS for the signer
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-07 20:52:48 -07:00 |
|
Ying Li
|
75516a1e84
|
Add the CheckHealth implementations to the RPC servers, go fmt some other files
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-07 20:51:53 -07:00 |
|
Ying Li
|
701e5df79e
|
Change the rpc Server objects to take a function that can check health
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-07 18:12:51 -07:00 |
|
Ying Li
|
74a5b1b541
|
Change the signer protocol to include a health check
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-07 18:12:23 -07:00 |
|
Ying Li
|
a67ed67bdc
|
Add a health check function for the key DB store that verifies we can access the required table
Signed-off-by: Ying Li <ying.li@docker.com>
|
2015-10-07 16:31:24 -07:00 |
|
cyli
|
3e60d0acd5
|
Move the skipTLSVerify information to Configure Notary Server.
Signed-off-by: cyli <cyli@twistedmatrix.com>
|
2015-10-05 16:07:33 -07:00 |
|
cyli
|
c188fc18bc
|
Add prerequisites section to Using Notary and Compiling Notary Server.
Signed-off-by: Ying Li ying.li@docker.com
|
2015-10-05 14:30:57 -07:00 |
|