-
Notifications
You must be signed in to change notification settings - Fork 783
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
[21266] Example refactor: Security #5006
Conversation
83da20c
to
fa91cb1
Compare
95a6922
to
d0a1327
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good starting point !
First thing would be rebasing the branch on top of master
, solving the conflicts.
Leaving some suggestions to address.
321b87a
to
4d79da4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are getting closer !
As we internally commented, I attach some modified files. We should:
- Remove
hello_world_profile.xml
and place the two provided profiles there instead. - Replace the
security.compose.yml
with the one provided - Update the
README.md
with the instructions for launching the example i.e defining theCERTS_PATH
andFASTDDS_DEFAULT_PROFILES_FILE
for each of the shells
Note: test the example in local and double check with wireshark that we see the SEC_PREFIX
, SEC_BODY
submsgs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the old DiscoveryServerExample
folder in examples/cpp/dds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, review all modified .cpp
files since there are somre headers that are not needed. There should only be headers macros and header sorted by name changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review the rest of the examples in which any .cpp
and .hpp
were modified. I left the modifications just for some of them, we should do something similar on the remaining ones.
74fa09c
to
26a88d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving another round of suggestions, most of them are nitpicky
examples/cpp/dds/DynamicHelloWorldExample/HelloWorldPublisher.h
Outdated
Show resolved
Hide resolved
examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPublisher.h
Outdated
Show resolved
Hide resolved
examples/cpp/dds/WriterLoansExample/LoanableHelloWorldSubscriber.h
Outdated
Show resolved
Hide resolved
examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldSubscriber.h
Outdated
Show resolved
Hide resolved
e9ef466
to
0076d34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Three suggestions only
examples/cpp/dds/SecureHelloWorldExample/HelloWorldPublisher.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls, rebase on top of master to avoid conflicts.
We also need to figure out a way in the CMakeLists.txt here to add the security test only if SECURITY
is ON
As an idea for addressing my former comment would be adding |
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
…MakeLists Signed-off-by: Carlosespicur <carlosespicur@proton.me>
3ccaaba
to
1f74591
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job here !
Lets ask for ci run
LGTM with Green CI
Linter pending
After github ci we should check in local that building without security and launching the example tests, correctly performs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 small changes that should make the test and uncrustify pass.
The write()
method returns a retcode that is 0 on success.
I am going to check in local that test.security
is not run neither built if we compile with SECURITY=OFF
and EXAMPLE_TESTS=ON
…sts.txt Signed-off-by: Carlosespicur <carlosespicur@proton.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with green CI !
Tested also that test.security is not run neither built if we compile with SECURITY=OFF
, EXAMPLE_TESTS=ON
and COMPILE_EXAMPLES=ON
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
security folder created in examples with a modified version of hello_world, supporting security plugins.
Description
Added plugin configuration in xml file to support security plugins. Changed CLI parser to allow selection of publisher interval. README updated.
Namespaces and headers updated in all examples
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist