Skip to content

Implement RBAC integration#359

Merged
RalphSteinhagen merged 3 commits intomainfrom
pubkey
Dec 4, 2024
Merged

Implement RBAC integration#359
RalphSteinhagen merged 3 commits intomainfrom
pubkey

Conversation

@vimpostor
Copy link
Copy Markdown
Contributor

Please refer to #349 and to the commit message for more info.

This combines RBAC with OAuth authorization, so that general mdp
messages can be signed in a cryptographically secure way, such that any
arbitrary receiver (such as a Worker) can verify that the message
belongs to a user that has access to a certain role.

This is implemented with state of the art elliptic curve cryptography by
signing the message with a private key, and uploading the public key to
a key store worker which hands out all public keys as a service via
access over the key's hash.
Any receiver can then retrieve the public key by just asking for the
key's hash, which is always included in the RBAC data field of any
signed message (plus of course the data needed for signing).

Special care is taken to avoid cross-referencing public keys to specific
users. As soon as the OAuth flow is finished, any public key can no
longer be used to pinpoint a specific user, instead the keystore only
holds the data which role this key belongs to.

This implements and closes #349.

Signed-off-by: Magnus Groß <magnus.gross@kdab.com>
Copy link
Copy Markdown
Member

@RalphSteinhagen RalphSteinhagen left a comment

Choose a reason for hiding this comment

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

@vimpostor thanks for the core implementation. Looks good as is. However, CI needs to pass before being merged (missing cmake dependencies do not seem to be included).

Next step for us would be to integrate the different role and hash checks in the different worker implementation (another to be created issue).

Signed-off-by: Magnus Groß <magnus.gross@kdab.com>
Signed-off-by: Magnus Groß <magnus.gross@kdab.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Dec 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
56.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@RalphSteinhagen
Copy link
Copy Markdown
Member

@vimpostor thanks for adding the cmake entry for lib sodium! 👍

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.

[5SP/5SP] Add RBAC integration to OpenCMW and integrate with GNU Radio

2 participants