Martin Holst Swende
ec3db0f56c
cmd/clef, signer: initial poc of the standalone signer ( #16154 )
...
* signer: introduce external signer command
* cmd/signer, rpc: Implement new signer. Add info about remote user to Context
* signer: refactored request/response, made use of urfave.cli
* cmd/signer: Use common flags
* cmd/signer: methods to validate calldata against abi
* cmd/signer: work on abi parser
* signer: add mutex around UI
* cmd/signer: add json 4byte directory, remove passwords from api
* cmd/signer: minor changes
* cmd/signer: Use ErrRequestDenied, enable lightkdf
* cmd/signer: implement tests
* cmd/signer: made possible for UI to modify tx parameters
* cmd/signer: refactors, removed channels in ui comms, added UI-api via stdin/out
* cmd/signer: Made lowercase json-definitions, added UI-signer test functionality
* cmd/signer: update documentation
* cmd/signer: fix bugs, improve abi detection, abi argument display
* cmd/signer: minor change in json format
* cmd/signer: rework json communication
* cmd/signer: implement mixcase addresses in API, fix json id bug
* cmd/signer: rename fromaccount, update pythonpoc with new json encoding format
* cmd/signer: make use of new abi interface
* signer: documentation
* signer/main: remove redundant option
* signer: implement audit logging
* signer: create package 'signer', minor changes
* common: add 0x-prefix to mixcaseaddress in json marshalling + validation
* signer, rules, storage: implement rules + ephemeral storage for signer rules
* signer: implement OnApprovedTx, change signing response (API BREAKAGE)
* signer: refactoring + documentation
* signer/rules: implement dispatching to next handler
* signer: docs
* signer/rules: hide json-conversion from users, ensure context is cleaned
* signer: docs
* signer: implement validation rules, change signature of call_info
* signer: fix log flaw with string pointer
* signer: implement custom 4byte databsae that saves submitted signatures
* signer/storage: implement aes-gcm-backed credential storage
* accounts: implement json unmarshalling of url
* signer: fix listresponse, fix gas->uint64
* node: make http/ipc start methods public
* signer: add ipc capability+review concerns
* accounts: correct docstring
* signer: address review concerns
* rpc: go fmt -s
* signer: review concerns+ baptize Clef
* signer,node: move Start-functions to separate file
* signer: formatting
7 years ago
Felix Lange
e9b5e22ad1
rpc: limit chunked requests ( #16343 )
7 years ago
Péter Szilágyi
555f42cfd8
rpc: enforce the 128KB request limits on websockets too
7 years ago
Martin Holst Swende
6c6247a690
node, rpc: fix linter issues
7 years ago
Martin Holst Swende
589b603a9b
rpc: dns rebind protection ( #15962 )
...
* cmd,node,rpc: add allowedHosts to prevent dns rebinding attacks
* p2p,node: Fix bug with dumpconfig introduced in r54aeb8e4c0bb9f0e7a6c67258af67df3b266af3d
* rpc: add wildcard support for rpcallowedhosts + go fmt
* cmd/geth, cmd/utils, node, rpc: ignore direct ip(v4/6) addresses in rpc virtual hostnames check
* http, rpc, utils: make vhosts into map, address review concerns
* node: change log messages to use geth standard (not sprintf)
* rpc: fix spelling
7 years ago
Steven Roose
952482d5e4
rpc: Support specifying HTTP client in RPC dialing ( #15836 )
...
* rpc: Support specifying HTTP client in RPC dialing
Adds a minimal interface that captures http.Client and adds a new method
rpc.DialHTTPClient that takes a client using that interface. The existing
rpc.DialHTTP method is then alternatively implemented by using the new
rpc.DialHTTPClient method provided with a standard *http.Client.
* rpc: fix minor doc typos
7 years ago
Sorin Neacsu
5369a5c54d
rpc: allow OPTIONS requests without Content-Type ( #15759 )
...
Fixes #15740
7 years ago
Vitaly V
f258a21a63
rpc: use method constants instead of literal strings ( #15652 )
7 years ago
Péter Szilágyi
3c6b9c5d72
rpc: minor cleanups to RPC PR
7 years ago
Armani Ferrante
c5b8569707
rpc: disallow PUT and DELETE on HTTP ( #15501 )
...
Fixes #15493
7 years ago
Péter Szilágyi
4013e23312
rpc: allow dumb empty requests for AWS health checks
7 years ago
bas-vk
4fe30bf5ad
rpc: check content-type for HTTP requests ( #15220 )
7 years ago
bloonfield
413dc1d265
rpc: fix closure problem in batch processing ( #14688 )
...
Demo of the issue: https://play.golang.org/p/EeTLFfppqC
7 years ago
Bas van Kervel
a6af56fa4d
rpc: disable CORS if user has not specified custom config
8 years ago
bas-vk
5e29f4be93
cmd/utils, node: remove unused solc references and improve RPC config ( #14324 )
...
Currently http cors and websocket origins are a comma separated string in the
config object. These are replaced with string arrays that are more expressive in
case of a config file.
8 years ago
Felix Lange
c213fd1fd8
all: import "context" instead of "golang.org/x/net/context"
...
There is no need to depend on the old context package now that the
minimum Go version is 1.7. The move to "context" eliminates our weird
vendoring setup. Some vendored code still uses golang.org/x/net/context
and it is now vendored in the normal way.
This change triggered new vet checks around context.WithTimeout which
didn't fire with golang.org/x/net/context.
8 years ago
Micah Zoltu
4e4e5fca54
rpc: add support for extended headers in CORS requests ( #3783 )
...
Fixes #3762 . Details about parameter:
a62a804a8a/cors.go (L50-L54)
8 years ago
Kenji Siu
d85d3c74db
internal/debug, internal/ethapi, rpc, swarm/storage: Ran "go fmt"
8 years ago
Jonathan Brown
ae341b31c8
rpc: set CORS Max-Age to reduce preflight OPTIONS requests
8 years ago
Felix Lange
91b7690428
rpc: add new client, use it everywhere
...
The new client implementation supports concurrent requests,
subscriptions and replaces the various ad hoc RPC clients
throughout go-ethereum.
8 years ago
Bas van Kervel
aa9fff3e68
rpc: various fixes/enhancements
...
rpc: be less restrictive on the request id
rpc: improved documentation
console: upgrade web3.js to version 0.16.0
rpc: cache http connections
rpc: rename wsDomains parameter to wsOrigins
9 years ago
Bas van Kervel
f7328c5ecb
rpc: add pub/sub support
9 years ago
Bas van Kervel
a7bae3b2a6
rpc/http: improve request handling
9 years ago
Péter Szilágyi
df75dbfd68
cmd, node, rpc: readd inproc RPC client, expose via node
9 years ago
Péter Szilágyi
a13bc9d7a1
cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspect
9 years ago
Péter Szilágyi
72c255caef
rpc: allow RPC requests on GET too
9 years ago
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
9 years ago
Bas van Kervel
a4a4e9fcf8
removed old rpc structure and added new inproc api client
10 years ago
Taylor Gerring
a2598e649d
Permit multiple CORS domains
...
Separated by spaces
10 years ago
Taylor Gerring
44a7f997c3
Unreverse ordering
10 years ago
Taylor Gerring
5c6540452a
Omit replies for notification requests
...
When Id is missing, the client does not want a response
10 years ago
Péter Szilágyi
0ad5898c0f
rpc, xeth: fix #881 , gracefully handle offline whisper
10 years ago
Taylor Gerring
b071e7f4db
Remove old logger from RPC pkg
10 years ago
Bas van Kervel
61885aa965
Don't export types/functions
10 years ago
Bas van Kervel
2c229bac00
Replaced channel pointer field with non pointer channel
10 years ago
Bas van Kervel
ead3dd9759
Stop accepted and alive connections (http keep-alive) when the rpc service is stopped
10 years ago
Bas van Kervel
57f93d25bd
admin.stopRPC support added which stops the RPC HTTP listener
10 years ago
obscuren
d82aaf617c
rpc: changed logging to use glog
10 years ago
Taylor Gerring
b6fde73ef1
Add settable domain to CORS handler #331
10 years ago
Taylor Gerring
04a7c4ae1e
Abstract http into rpc package
...
New RpcConfig object to pass growing config
10 years ago
Taylor Gerring
d9f8b1e0c1
Report InvalidTypeError as -32602 to JSON RPC
10 years ago
Taylor Gerring
e29396b691
Use ExtraDB for storage. Fixes #577
10 years ago
Taylor Gerring
abc3d8d50a
Make send internal
10 years ago
Taylor Gerring
1f2de6ecd5
Remove extra logger
10 years ago
Taylor Gerring
67c9d9c2fa
Remove JsonWrapper
10 years ago
Taylor Gerring
8fd243ee23
Add JSON RPC batch support
...
http://www.jsonrpc.org/specification#batch
10 years ago
zelig
16ecb1e2ea
rpc
...
- camelcase fields dont play nice with otto value magic: JsonRpc -> Jsonrpc, ID -> Id
- jeth: ethereum.js rpc transport provider direct bridge between js and ethereumApi via otto jsre
10 years ago
Taylor Gerring
d3f96dc720
Consolidate error type switch
10 years ago
Taylor Gerring
094f921e50
Convert to proper errors
...
Allow returning different JSON RPC error codes depending on error type
10 years ago
Felix Lange
a11f1d6a7e
rpc: add dataDir parameter and JSON-RPC handler
10 years ago