Skip to content

multi: autopilot firewall and privacy map interceptors #487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
78c996a
multi: add Session ID to struct
ellemouton Sep 23, 2022
8f0bc2f
log+firewall: add firewall package
guggero May 20, 2022
6d76e22
firewall: add macaroon caveat logic
guggero Apr 28, 2022
3f8789f
firewall: implement firewall
guggero Apr 28, 2022
bc61be5
firewall: allow request with no macaroon
ellemouton Nov 23, 2022
f1d65e5
terminal: add firewall interepters to rpc middleware manager
ellemouton May 20, 2022
edf195e
firewall: changes to initial structure
ellemouton Jun 8, 2022
69516ec
litrpc: add lit-autopilot protos
ellemouton Sep 30, 2022
eaffa4a
firewalldb+log: add main DB structure
ellemouton Jul 8, 2022
704acdf
firewalldb: add Action CRUD logic
ellemouton Jul 8, 2022
0a9f545
firewalldb: add KVStore CRUD logic
ellemouton Jul 8, 2022
95fc0c2
firewalldb: db logic for the privacy mapper
ellemouton Jul 8, 2022
b5d5682
rules: add Rule interface
ellemouton Jul 8, 2022
c4e7284
rules: add manager set
ellemouton Jul 8, 2022
4c8cbe5
terminal: instantiate rule manager set
ellemouton Jul 8, 2022
042a5ee
rules: add RateLimit rule
ellemouton Jul 8, 2022
ad9dd3e
rules: add ChanPolicyBounds rule
ellemouton Jul 8, 2022
0629601
rules: add History Limit rule
ellemouton Jul 8, 2022
8425f45
rules: add ChannelRestrict rule
ellemouton Sep 8, 2022
0092435
rules: add PeerRestrict rule
ellemouton Sep 8, 2022
fbb42e8
terminal: instantiate firewall DB
ellemouton Jul 8, 2022
b59888c
multi: let request logger persist Actions
ellemouton Jul 8, 2022
164ade0
multi: expose Actions
ellemouton Aug 24, 2022
9594aab
autopilotserverrpc: add autopilot server protos
ellemouton Jul 8, 2022
160977d
autopilotserver: add an autopilot server client
ellemouton Jul 8, 2022
4639e7e
session+rpcserver: add feature config to session type
ellemouton Aug 24, 2022
683cdbd
terminal: init the autopilot client
ellemouton Jul 8, 2022
5255e95
session: add WithPrivacy to Session type
ellemouton Sep 8, 2022
e806542
firewall: add WithPrivacy to RequestInfo
ellemouton Sep 8, 2022
a7c5e97
multi: implement rule-enforcer
ellemouton Jul 8, 2022
3d669d6
firewall: Add Privacy Mapper interceptor
ellemouton Jul 8, 2022
f9ffc0c
session: add GetSession method
ellemouton Aug 4, 2022
3b67325
multi: implement lit-autopilot rpc server
ellemouton Jul 8, 2022
6de34a8
litcli: add lit-autopilot commands
ellemouton Jul 8, 2022
f3d2aeb
interface: create a new Litd Client interface
ellemouton Aug 10, 2022
ab347dd
multi: add privacy mapper conversion helper
ellemouton Sep 8, 2022
e793268
itest: add mock autopilot server to network harness
ellemouton Sep 15, 2022
b348c9d
itest: add firewall rule itests
ellemouton Sep 15, 2022
5a453cd
firewall: add amount fuzzing
bitromortac Oct 31, 2022
a74ae88
firewall: randomize responses with PrivacyMapper
bitromortac Nov 4, 2022
c3d9338
multi: use URIs in session macaroon instead of perms
ellemouton Dec 1, 2022
1506f57
privacy_mapper: construct new response msgs
ellemouton Jan 11, 2023
6a5a8c6
go.mod+go.sum: bump tlv version
ellemouton Jan 3, 2023
d3cab70
cmd/litcli: create account sessions
ellemouton Jan 13, 2023
2d57c25
firewall: redefine obfuscation interval
bitromortac Jan 20, 2023
8e61eb9
multi: make request logger level configurable
ellemouton Jan 26, 2023
378a91f
app+proto: run make protos
ellemouton Feb 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ jobs:
working-directory: ./app
run: yarn

- name: run check
run: make rpc-js-compile && make protos-check

- name: compile rpc for golang
run: make rpc

Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ protos-check: protos
@$(call print, "Verifying compiled protos.")
if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with correct version"; git status; git diff; exit 1; fi

rpc-js-compile:
@$(call print, "Compiling JSON/WASM stubs.")
GOOS=js GOARCH=wasm $(GOBUILD) $(PKG)/litrpc

clean:
@$(call print, "Cleaning source.$(NC)")
$(RM) ./litcli-debug
Expand Down
Loading