Skip to content

Add request service permissions in generated policies - #141

Merged
skucheria merged 6 commits into
masterfrom
kucheria/request_permissions
Jul 9, 2019
Merged

skucheria merged 6 commits into
masterfrom
kucheria/request_permissions

Conversation

@skucheria

Copy link
Copy Markdown
Member

Addresses #94

Requires ros2/rclpy#383

Siddharth Kucheria added 4 commits July 3, 2019 11:05
Signed-off-by: Siddharth Kucheria <[email protected]>
Signed-off-by: Siddharth Kucheria <[email protected]>
Signed-off-by: Siddharth Kucheria <[email protected]>
Signed-off-by: Siddharth Kucheria <[email protected]>
@kyrofa

kyrofa commented Jul 3, 2019 •

Copy link
Copy Markdown
Member

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.

@skucheria
skucheria requested a review from jacobperron July 3, 2019 18:50
@jacobperron

Copy link
Copy Markdown
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).

@jacobperron jacobperron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, one suggestion.

@skucheria
skucheria requested a review from jacobperron July 8, 2019 21:43

@jacobperron jacobperron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with green CI

Comment thread sros2/package.xml Resolved
@skucheria

Copy link
Copy Markdown
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 <[email protected]>
Signed-off-by: ruffsl <[email protected]>
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.

3 participants