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

Road to v0.2.0 #108

Merged
merged 29 commits into from
Apr 30, 2024
Merged

Road to v0.2.0 #108

merged 29 commits into from
Apr 30, 2024

Conversation

vruello
Copy link
Contributor

@vruello vruello commented Mar 13, 2024

Added:

  • Add configuration files for subscriptions coming with two openwec cli subcommands (subscriptions load and subscriptions skell)
  • Add cli.read_only_subscriptions setting to disable the cli features which edit subscriptions (except subscriptions load)
  • Add RawJson format which enables to retrieve events in raw format while also getting the metadata added by OpenWEC
  • Add the subscription revision in OpenWEC events metadata
  • Add locale and data_locale subscriptions parameters
  • Add support for Proxy Protocol to allow openwec to be used behind a layer 4 load balancer whilst preserving the client IP address and port.

Changed:

  • Rework output drivers and output formats architecture
  • Change the outputs storage format in database
  • Rework the import/export format to enable compatibility between OpenWEC versions
  • Each subscription has now two "versions": a public one sent to clients (derived from subscription parameters) and a private one used for synchronization between openwec nodes

vruello added 5 commits March 14, 2024 09:08
- Add configuration files for subscriptions coming with two openwec cli subcommands (`subscriptions load` and `subscriptions skell`)
- Add `cli.read_only_subscriptions` setting to disable the cli features which edit subscriptions (except `subscriptions load`)
- Add `RawJson` format which enables to retrieve events in raw format while also getting the metadata added by OpenWEC
- Add subscription revision in OpenWEC events metadata
- Rework output drivers and output formats architecture
- Change outputs storage format in database
- Rework import/export format to enable compatibility between OpenWEC versions
- Each subscription has now two "Versions": a public one sent to clients (derived from subscription parameters) and a private one used for synchronization between openwec nodes
@vruello
Copy link
Contributor Author

vruello commented Apr 18, 2024

There seems to be an issue with github actions because tests are working fine on my box:

$ cargo test
    Finished test [unoptimized + debuginfo] target(s) in 0.08s
     Running unittests src/lib.rs (target/debug/deps/cli-dd36de5d58a3573a)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/main.rs (target/debug/deps/openwec-fc11fffc4a0f3485)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (target/debug/deps/common-2379d5c1c1f07d10)

running 27 tests
test database::schema::test_within_range ... ok
test database::sqlite::tests::test_bookmarks ... ok
test database::sqlite::tests::test_heartbeats ... ok
test database::sqlite::tests::test_open_and_close ... ok
test database::sqlite::tests::test_register ... ok
test database::sqlite::tests::test_stats ... ok
test database::sqlite::tests::test_subscriptions ... ok
test encoding::tests::test_encode_decode ... ok
test models::config::tests::test_deserialize_full ... ok
test models::config::tests::test_random_field - should panic ... ok
test models::config::tests::test_serialize_minimal ... ok
test models::config::tests::test_serialize_missing_name - should panic ... ok
test models::config::tests::test_serialize_missing_outputs - should panic ... ok
test models::config::tests::test_serialize_missing_query - should panic ... ok
test models::config::tests::test_serialize_missing_uuid - should panic ... ok
test models::export::tests::test_export_import ... ok
test settings::tests::test_getting_started ... ok
test settings::tests::test_settings_kerberos_sqlite ... ok
test settings::tests::test_settings_tls_postgres ... ok
test settings::tests::test_settings_tls_postgres_with_cli ... ok
test database::postgres::tests::test_heartbeats_cache ... ok
test database::postgres::tests::test_register ... ok
test database::postgres::tests::test_stats ... ok
test database::postgres::tests::test_heartbeats ... ok
test database::postgres::tests::test_bookmarks ... ok
test database::postgres::tests::test_open_and_close ... ok
test database::postgres::tests::test_subscriptions ... ok

test result: ok. 27 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 50.33s

     Running unittests src/lib.rs (target/debug/deps/server-a1447f96ae0ee7aa)

running 33 tests
test drivers::files::tests::test_sanitize ... ok
test event::tests::test_142_rendering_info_parsing ... ok
test event::tests::test_142_system_parsing ... ok
test event::tests::test_142_event_data_parsing ... ok
test event::tests::test_4689_parsing ... ok
test drivers::files::tests::test_build_path ... ok
test event::tests::test_serialize_failed_to_recover ... ok
test event::tests::test_serialize_malformed_failed_to_feed_event ... ok
test event::tests::test_serialize_malformed_raw_content_recovered ... ok
test event::tests::test_serialize_malformed_unrecoverable_2 ... ok
test event::tests::test_4624_system_parsing ... ok
test event::tests::test_4624_event_data_parsing ... ok
test event::tests::test_4624_rendering_info_parsing ... ok
test event::tests::test_serialize_malformed_unrecoverable_1 ... ok
test formats::raw_json::tests::test_json_format_4688 ... ok
test multipart::tests::test_multipart ... ok
test formats::json::tests::test_serialize_111 ... ok
test sldc::tests::decompress_test_string ... ok
test formats::json::tests::test_serialize_1100_user_data ... ok
test formats::json::tests::test_serialize_6013_event_data_unamed_empty ... ok
test formats::raw::tests::test_raw_format_4688 ... ok
test formats::json::tests::test_serialize_5719_event_data_binary ... ok
test formats::json::tests::test_serialize_1003_event_data_unamed ... ok
test sldc::tests::decompress_heartbeat ... ok
test formats::json::tests::test_serialize_4688_event_data ... ok
test tls::tests::test_thumbprint ... ok
test tls::tests::test_get_subject_empty - should panic ... ok
test tls::tests::test_get_no_subject - should panic ... ok
test soap::tests::non_xml_char ... ok
test tls::tests::test_get_subject_from_cert ... ok
test tls::tests::test_load_private_key_wrong_format - should panic ... ok
test tls::tests::test_load_private_key_no_keys - should panic ... ok
test tls::tests::test_load_private_key ... ok

test result: ok. 33 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running unittests src/main.rs (target/debug/deps/openwecd-90a3b4d96a6193f4)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests cli

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests common

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests server

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

@vruello vruello force-pushed the v0.2.0 branch 5 times, most recently from 48f5a46 to 80f9465 Compare April 30, 2024 07:22
@vruello vruello merged commit c9ed522 into cea-sec:main Apr 30, 2024
1 check passed
@vruello vruello deleted the v0.2.0 branch April 30, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant