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

feat(docs): Formal Schemas for Signed Docs #208

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

stevenj
Copy link
Collaborator

@stevenj stevenj commented Feb 13, 2025

Description

Thanks for contributing to the project!
Please fill out this template to help us review your changes.

Related Issue(s)

List the issue numbers related to this pull request.

e.g., Closes #123, Resolves #456 Fixes #367

Description of Changes

Provide a clear and concise description of what the pull request changes.

Breaking Changes

Describe any breaking changes and the impact.

Screenshots

If applicable, add screenshots to help explain your changes.

Related Pull Requests

If applicable, list any related pull requests.

e.g., #123, #456

Please confirm the following checks

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream module

@stevenj stevenj marked this pull request as draft February 13, 2025 17:25
@stevenj stevenj self-assigned this Feb 13, 2025
@stevenj stevenj added do not merge yet PR is not ready to merge yet requires architect review Requires at least 1 architect to sign off on PR before merge. labels Feb 13, 2025
Copy link
Contributor

Test Report | ${\color{lightgreen}Pass: 287/287}$ | ${\color{red}Fail: 0/287}$ |

Copy link
Contributor

Test Report | ${\color{lightgreen}Pass: 287/287}$ | ${\color{red}Fail: 0/287}$ |

Copy link
Contributor

github-actions bot commented Feb 27, 2025

Test Report | ${\color{lightgreen}Pass: 302/302}$ | ${\color{red}Fail: 0/302}$ |

@stevenj stevenj changed the title Wip/document schemas feat(doc): Formal Schemas for Signed Docs Mar 2, 2025
@stevenj stevenj changed the title feat(doc): Formal Schemas for Signed Docs feat(docs): Formal Schemas for Signed Docs Mar 2, 2025
@stevenj stevenj marked this pull request as ready for review March 2, 2025 14:45
@stevenj stevenj requested a review from nathanbogale March 3, 2025 05:27
@stevenj stevenj requested a review from neil-iohk March 3, 2025 05:27
neil-iohk
neil-iohk previously approved these changes Mar 4, 2025
Copy link

@neil-iohk neil-iohk left a comment

Choose a reason for hiding this comment

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

Question regarding the signer flow for actions and where we define any restrictions.

In proposal_submission_action.cue, I see referenced: true in the signers section. Is this what prevents unauthorised users from submitting other users proposals? This field is optional, so may not appear in the proposal doc. We will of course validate the ownership and signer in the backend but should we specifically state here that the signer of an action must be either the owner or collaborator of the referenced document.

If a proposal has multiple collaborators, and we enforce that a submission action must have the same signer as the referenced proposal, wouldn't this prevent collaborators from submitting the proposal if they weren't the original signer?

If validation is done on roles is it possible for someone to create an action on a proposal document that is not theirs, it will be ignored by the back end is there a way to prevent the creation of such a document?

Trying to understand the restrictions and rules and where they will be applied, not a blocking comment to merge code, but would like to explore further.

@neil-iohk
Copy link

Question regarding the signer flow for actions and where we define any restrictions.

In proposal_submission_action.cue, I see referenced: true in the signers section. Is this what prevents unauthorised users from submitting other users proposals? This field is optional, so may not appear in the proposal doc. We will of course validate the ownership and signer in the backend but should we specifically state here that the signer of an action must be either the owner or collaborator of the referenced document.

If a proposal has multiple collaborators, and we enforce that a submission action must have the same signer as the referenced proposal, wouldn't this prevent collaborators from submitting the proposal if they weren't the original signer?

If validation is done on roles is it possible for someone to create an action on a proposal document that is not theirs, it will be ignored by the back end is there a way to prevent the creation of such a document?

Trying to understand the restrictions and rules and where they will be applied, not a blocking comment to merge code, but would like to explore further.

happy with flow following discussion on flow and signing approach for various doc types and rules. 👍

nathanbogale
nathanbogale previously approved these changes Mar 5, 2025
Copy link

@nathanbogale nathanbogale left a comment

Choose a reason for hiding this comment

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

LGTM

@stevenj stevenj dismissed stale reviews from nathanbogale and neil-iohk via a103636 March 5, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge yet PR is not ready to merge yet requires architect review Requires at least 1 architect to sign off on PR before merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants