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 request service permissions in generated policies #141

Merged
merged 6 commits into from
Jul 9, 2019

Conversation

skucheria
Copy link
Member

Addresses #94

Requires ros2/rclpy#383

Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
@kyrofa
Copy link
Member

kyrofa commented Jul 3, 2019

This looks good, and the test is lovely, thank you! However, have you verified that create_permission can actually handle the policy produced by this? It may require some template changes. If so, that step may need to come before this one so we don't generate broken policies.

@jacobperron
Copy link
Member

I tried passing a generated policy with a service server and service client running. Passing it to create_permission seems to work for me. I believe the add_two_ints.xml policy file used as part of the unit tests covers this.

I think outside the scope of this PR, but it's probably worth adding integration tests to test_security for services (and actions).

Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one suggestion.

Copy link
Member

@jacobperron jacobperron left a 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

sros2/package.xml Outdated Show resolved Hide resolved
@skucheria
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@skucheria skucheria merged commit 1c274b4 into master Jul 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the kucheria/request_permissions branch July 9, 2019 16:32
ruffsl pushed a commit to ruffsl/sros2 that referenced this pull request Aug 6, 2019
* added request service permissions

Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
Signed-off-by: ruffsl <roxfoxpox@gmail.com>
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.

None yet

3 participants