Skip to content
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

Add utests and stests for control interface authorization #324

Merged
merged 70 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
9576b7e
optimize mem usage in wl state db + prepare for new wl state structure
krucod3 Jun 14, 2024
a51d57f
Merge remote-tracking branch 'origin/main' into 22_authorize_requests
krucod3 Jun 19, 2024
2abfbf7
Add ControlInterfaceAccess to protobuf internal representation
christoph-hamm Jun 21, 2024
7ef70a8
Introduce PATH_SEPARATOR constant
christoph-hamm Jun 21, 2024
b2478bd
Restructuring the workload states object as a searchable map
krucod3 Jun 21, 2024
15159c6
Merge branch '22_authorize_requests' of github.com:eclipse-ankaios/an…
krucod3 Jun 21, 2024
4b0db63
Merge remote-tracking branch 'origin/main' into 22_authorize_requests
krucod3 Jun 21, 2024
3b0a37e
Fix indentation
krucod3 Jun 21, 2024
f4fc608
Fix clippy warning
christoph-hamm Jun 24, 2024
50fdcfc
Remove accidentally installed package from devcontainer
christoph-hamm Jun 24, 2024
908fe42
Add first version of authorizer
christoph-hamm Jun 25, 2024
0f863b0
Exchange control interface if access rules are changed
christoph-hamm Jun 27, 2024
2505041
Add file missed in last commits
christoph-hamm Jun 27, 2024
9d31065
Remove unused imports
christoph-hamm Jun 28, 2024
1472cb7
Mark code not used in tests with allow(dead_code)
christoph-hamm Jun 28, 2024
0915055
Merge remote-tracking branch 'origin/main' into 22_authorize_requests
krucod3 Jul 2, 2024
5d7782c
Change authorizer to support read and write
christoph-hamm Jul 3, 2024
a0210e8
Fix example startup state with control interface access rights
inf17101 Jul 4, 2024
400bc43
Fix rust example with control interface access rights
inf17101 Jul 4, 2024
3144b8b
Fix python control interface example with control interface access ri…
inf17101 Jul 4, 2024
9170b87
Fix nodejs example with control interface access rights
inf17101 Jul 4, 2024
a572b1d
Fix cpp example with control interface access rights
inf17101 Jul 4, 2024
29504e9
Make allow and deny rules empty by default
inf17101 Jul 4, 2024
a576c2a
Remove comments
christoph-hamm Jul 9, 2024
146abe8
Fix proto files according to review findings
christoph-hamm Jul 9, 2024
0ebbdcd
Remove unwrap in configuration comparison
christoph-hamm Jul 9, 2024
2a9fd55
Simplify control interface path comparison
christoph-hamm Jul 10, 2024
cf72fe6
Update common/src/objects/workload_states_map.rs
krucod3 Jul 11, 2024
d34e743
Add upgrading info
krucod3 Jul 11, 2024
38720f0
Merge branch '22_authorize_requests' of github.com:eclipse-ankaios/an…
krucod3 Jul 11, 2024
a8de431
Small fixes
krucod3 Jul 11, 2024
eeafde8
Fix requirements tracing
krucod3 Jul 11, 2024
4e53703
Add logs explaining why a request was allowed/denied
christoph-hamm Jul 12, 2024
020d668
Correct handling of empty string as mask/rule
christoph-hamm Jul 12, 2024
675ab91
Fix typo
christoph-hamm Jul 15, 2024
89616cc
Remove denyRules from example
inf17101 Jul 15, 2024
1b5ad16
Create container image for control interface stests
christoph-hamm Jul 23, 2024
0498944
Add robot keywords for control interface stests
christoph-hamm Jul 23, 2024
5c1253b
Fix configuration field name in control_interface_tester
christoph-hamm Jul 24, 2024
b8aadca
Add first stest for controler interface authorization
christoph-hamm Jul 24, 2024
a522140
Merge branch 'main' into 22_add_utests_and_stests
christoph-hamm Jul 24, 2024
1554c3f
Add stests for control interface authorization
christoph-hamm Jul 25, 2024
648d127
Trace SWDD to stest
christoph-hamm Jul 25, 2024
c3f5298
Split authorizer.rs
christoph-hamm Jul 25, 2024
c4a6c68
Add utest for PathPattern implementation on Vec<PathPattern>
christoph-hamm Jul 26, 2024
b790e1c
Replace ToString by Display implementation
christoph-hamm Jul 26, 2024
9f5612c
Add utests for authorizer::path
christoph-hamm Jul 26, 2024
2c4cc92
Add utests for authorizer::rule
christoph-hamm Jul 26, 2024
b340462
Add utests for authorize method
christoph-hamm Jul 26, 2024
06a9485
Test authorizer object creation from configuration
christoph-hamm Jul 29, 2024
bdbf138
Merge branch 'main' into 22_add_utests_and_stests
christoph-hamm Jul 29, 2024
3f27f0e
Removed unnecessary PhantomData field
christoph-hamm Jul 30, 2024
8d2bb54
Rewrite control interface stests in BDT style
christoph-hamm Jul 30, 2024
d1a07f9
Update tests/resources/image/src/main.rs
lingnoi Jul 31, 2024
e2bd072
Update tests/stests/control_interface/authorization.robot
lingnoi Jul 31, 2024
c5503a8
Update tests/stests/control_interface/authorization.robot
lingnoi Jul 31, 2024
d375c69
Update tests/stests/control_interface/authorization.robot
lingnoi Jul 31, 2024
909d34c
Merge branch 'main' into 22_add_utests_and_stests
christoph-hamm Jul 31, 2024
fb286a6
Fix stest errors introduced by merge
christoph-hamm Jul 31, 2024
0d541f3
Fix authorization of requests with empty mask
christoph-hamm Jul 31, 2024
120b24f
Fix pipes channel run_task utest
inf17101 Aug 1, 2024
588a902
Add and use MockAuthorizer
christoph-hamm Aug 1, 2024
8b7371b
Merge remote-tracking branch 'origin/main' into 22_add_utests_and_stests
krucod3 Aug 1, 2024
ad1217e
Remove unused code
christoph-hamm Aug 1, 2024
59f3f92
increment clap version and fix env feature
krucod3 Aug 2, 2024
ac1fd65
Fix Control Interface tests and add new
krucod3 Aug 2, 2024
c9e9c03
Add documentation for authorization
christoph-hamm Aug 2, 2024
c0f8ee4
Merge branch 'main' into 22_add_utests_and_stests
christoph-hamm Aug 2, 2024
e48a6d2
Apply suggestions from code review
christoph-hamm Aug 2, 2024
46baf03
Use prebuild image for control interface stests
christoph-hamm Aug 5, 2024
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
154 changes: 152 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ members = [
"agent",
"server",
"grpc",
"ank"
]
"ank",
"tests/resources/image",
]
2 changes: 1 addition & 1 deletion agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async-stream = "0.3"
async-trait = "0.1"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
clap = { version = "4.0", features = ["derive"] }
clap = { version = "4.5", features = ["derive", "env"] }
futures-util = "0.3"
rand = "0.8"
hyper = { version = "0.14", features = ["full"] }
Expand Down
Loading