Commit Graph

18105 Commits

Author SHA1 Message Date
Łukasz Magiera
4c8b028887 Return error form Repo.Exists 2019-07-24 01:47:36 +02:00
Łukasz Magiera
4f1946d5a2 Address review 2019-07-24 01:47:36 +02:00
Łukasz Magiera
677f5c3e30 Check full node version in storageminer init 2019-07-24 01:47:36 +02:00
Łukasz Magiera
0e570c0b19 StorageMiner init code 2019-07-24 01:47:36 +02:00
Łukasz Magiera
fe147ce90d StorageMiner node type 2019-07-24 01:47:36 +02:00
Łukasz Magiera
486598ef53 storageminer: separate env var for storage repo 2019-07-24 01:47:36 +02:00
Łukasz Magiera
a5441f8d17 Add missing daemon files 2019-07-24 01:47:36 +02:00
Łukasz Magiera
145814d5c4 Fix gitignore 2019-07-24 01:47:36 +02:00
Łukasz Magiera
b73f29286b Begin implementing storage miner 2019-07-24 01:47:36 +02:00
Łukasz Magiera
c394e3c2aa
Merge pull request #58 from filecoin-project/feat/apiauth
API Security
2019-07-24 00:52:28 +02:00
Łukasz Magiera
16d5f144c4 mod tidy 2019-07-24 00:46:40 +02:00
Łukasz Magiera
0a17041221 Fix rpc tests after rebase 2019-07-24 00:39:48 +02:00
Łukasz Magiera
b41763d8cf Fix secret loading in tests 2019-07-24 00:38:52 +02:00
Łukasz Magiera
5be0ecadd1 gofmt 2019-07-24 00:38:52 +02:00
Łukasz Magiera
0aadddb6c8 auth: Load JWT secret once 2019-07-24 00:38:52 +02:00
Łukasz Magiera
57219c6126 auth: Update docs 2019-07-24 00:38:52 +02:00
Łukasz Magiera
3c9f88d043 auth: Actually generate API secrets 2019-07-24 00:38:52 +02:00
Łukasz Magiera
16353dfebe auth: more validation 2019-07-24 00:38:52 +02:00
Łukasz Magiera
6554db3e5f auth: Addres review 2019-07-24 00:38:52 +02:00
Łukasz Magiera
b5c11f31b7 auth: Few more perms 2019-07-24 00:38:52 +02:00
Łukasz Magiera
a88be8d1df auth: Store token in repo 2019-07-24 00:38:52 +02:00
Łukasz Magiera
309ecc4052 auth: Put auth methods in API 2019-07-24 00:37:05 +02:00
Łukasz Magiera
fa4bf5178a auth: Restructure for getting tokens form keystore 2019-07-24 00:37:05 +02:00
Łukasz Magiera
4ff83c5744 Return errors in Permissioned API 2019-07-24 00:37:05 +02:00
Łukasz Magiera
c0f3bdbb61 jsonrpc: verify jwt tokens 2019-07-24 00:37:05 +02:00
Łukasz Magiera
265302f4aa Implement API-level auth 2019-07-24 00:36:19 +02:00
Łukasz Magiera
3ecc83efd4
Merge pull request #70 from filecoin-project/feat/jsonrpc-chans
jsonrpc: Channel support
2019-07-23 23:27:11 +02:00
Jakub Sztandera
38102b28c6
Merge pull request #66 from filecoin-project/errors/oh-errors
Create actor error type
2019-07-23 20:25:44 +02:00
Jakub Sztandera
2e6dd1b862 Wrap and return correct error
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 20:25:17 +02:00
Jakub Sztandera
68cfff17e5 Make invoker error non fatal
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 20:25:17 +02:00
Whyrusleeping
c54bd28e64
Merge pull request #71 from filecoin-project/fix/make-clean
Don't error `make clean` on missing submodule
2019-07-23 10:46:37 -07:00
Jakub Sztandera
681f40ad75 go mod tidy
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 15:20:10 +02:00
Jakub Sztandera
1ec274671e Make lint even happier
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 15:16:42 +02:00
Jakub Sztandera
fd374fa180 Fix new
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 15:07:36 +02:00
Jakub Sztandera
52f9060e0a go mod tidy
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 15:04:56 +02:00
Jakub Sztandera
e513884a5a Cleanup lint
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 15:04:45 +02:00
Jakub Sztandera
537ff23a63 Complete the refactor
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 15:01:52 +02:00
Jakub Sztandera
877ccb3803 make invoker work again
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 14:45:45 +02:00
Jakub Sztandera
020fb6f8a3 Mid rework
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 14:45:44 +02:00
Jakub Sztandera
02dab3eb51 Create actor error type
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-23 14:45:15 +02:00
Łukasz Magiera
9b3ae45f61 jsonrpc: Break handleWsConn into smaller functions 2019-07-23 03:45:10 +02:00
Łukasz Magiera
2f0a088b18 jsonrpc: Move ws handler state to a struct 2019-07-23 03:20:48 +02:00
Whyrusleeping
f93160822e
Merge pull request #72 from filecoin-project/feat/blockget
add a getblock command
2019-07-22 18:05:27 -07:00
whyrusleeping
5fb59c06bd add a getblock command 2019-07-22 17:54:27 -07:00
Łukasz Magiera
0d5d6cd1c2 jsonrpc: lint fixes 2019-07-23 02:40:45 +02:00
Łukasz Magiera
1b1ec2b812 jsonrpc: cleanup websocket handling logic a bit 2019-07-23 02:40:45 +02:00
Łukasz Magiera
40fa1becb5 jsonrpc: Handle closing channels 2019-07-23 02:40:45 +02:00
Łukasz Magiera
64e3272fbf jsonrpc: remove test stuff from main code 2019-07-23 02:40:45 +02:00
Łukasz Magiera
98cbfdebb4 jsonrpc: test unmarshalable responses 2019-07-23 02:40:01 +02:00
Łukasz Magiera
17c76abdb2 jsonrpc: Panic less in client 2019-07-23 02:40:01 +02:00