Add dynamic permissions example#739
Merged
colmenero merged 13 commits intorticommunity:masterfrom Jul 1, 2025
Merged
Conversation
luisrg-rti
reviewed
Jun 16, 2025
examples/connext_secure/dynamic_permissions/c++11/application.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull Request Overview
This PR adds a dynamic permissions example that demonstrates how to update a Permissions Document after it expires, modifying both security configuration files and build scripts. Key changes include:
- Updating the Governance XML schema and adding key revision support.
- Modifying CMake modules to work with OpenSSL 3, including certificate configuration changes.
- Adding a new C++11 dynamic permissions example (publisher and subscriber) along with supporting IDL and application files.
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| resources/security/xml/Governance.xml | Updates schema version and enables key revision. |
| resources/cmake/Modules/ConnextDdsGenerateSecurityArtifacts.cmake | Adjusts file path usage and adds CA_EXTENSION configuration. |
| examples/connext_secure/dynamic_permissions/c++11/modify_permissions.cmake | Introduces a script to update the permissions file timestamp. |
| examples/connext_secure/dynamic_permissions/c++11/dynamic_permissions_subscriber.cxx | Implements a subscriber for the dynamic permissions example. |
| examples/connext_secure/dynamic_permissions/c++11/dynamic_permissions_publisher.cxx | Implements a publisher that updates its Permissions Document after a set sample count. |
| examples/connext_secure/dynamic_permissions/c++11/dynamic_permissions.idl | Defines the DynamicPermissions structure. |
| examples/connext_secure/dynamic_permissions/c++11/application.hpp, application.h | Provide application helper functions and argument parsing for the examples. |
| examples/connext_secure/dynamic_permissions/c++11/USER_QOS_PROFILES.xml | Configures QoS profiles for the dynamic permissions example. |
| examples/connext_secure/dynamic_permissions/c++11/CMakeLists.txt | Defines build rules for the dynamic permissions example. |
| examples/connext_secure/dynamic_permissions/README.md | Documents the example usage and builds instructions. |
| examples/connext_secure/CMakeLists.txt | Integrates the new dynamic permissions example into the secure examples set. |
Comments suppressed due to low confidence (1)
examples/connext_secure/dynamic_permissions/README.md:48
- The subscriber command in the README appears to have a typo ('sh.' prefix). It should probably be updated to simply './dynamic_permissions_subscriber' to avoid confusion.
sh./dynamic_permissions_subscriber
luisrg-rti
previously approved these changes
Jun 24, 2025
krd-rti
previously approved these changes
Jun 24, 2025
The file doesn't exist yet, but it should exist once the release is out. Co-authored-by: krd-rti <162187247+krd-rti@users.noreply.github.com>
luisrg-rti
previously approved these changes
Jul 1, 2025
lulivi
approved these changes
Jul 1, 2025
krd-rti
approved these changes
Jul 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an example that showcases dynamic permissions. This example is based on the one that codegen generates, with small modifications. First, the QoS configures security. Then, the publisher examples updates a QoS property (the Permissions Docuemnt) after some samples.
Details and comments
This PR also:
ConnextDdsGenerateSecurityArtifacts.cmaketo work with OpenSSL 3. The new version requires configuring the CA certificate as a CA (CA_EXTENSION v3_ca).enable_key_revisionto the general Governance Document.Checks
examples/connext_dds/CMakeList.txtaccordingly.