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

chore: add script to manage crates.io owners #6112

Merged
merged 7 commits into from
Feb 1, 2024
Merged

Conversation

CjS77
Copy link
Collaborator

@CjS77 CjS77 commented Jan 31, 2024

There are many packages in the tari codebase. To prevent squatting and possible domain hijacking attacks, we need to register these on crates.io (they don't have namespacing :( )

Managing the owners of these crates on crates.io is a manual nightmare, so this script can automate it for you.

This commit introduces significant refinements to the owner management script update_owners.sh.

The script now iterates over packages, lists current owners, and compares them with expected owners.

It includes functions to add, remove, and verify owners based on the comparison. Packages with the group 'ignore' are skipped during the iteration.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Admin

There are many packages in the tari codebase. To prevent squatting and
possible domain hijacking attacks, we need to register these on
crates.io (they don't have namespacing :( )

Managing the owners of these crates on crates.io is a manual nightmare,
so this script can automate it for you.

This commit introduces significant refinements to the owner management script
update_owners.sh.

The script now iterates over packages, lists current owners, and compares them
with expected owners.

It includes functions to add, remove, and verify owners based on the comparison.
Packages with the group 'ignore' are skipped during the iteration.
@CjS77 CjS77 added the P-merge Process - Queued for merging label Jan 31, 2024
@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Jan 31, 2024
@CjS77 CjS77 requested a review from a team as a code owner January 31, 2024 12:24
Changes to the crates.io ownership script and pgp key list require a
lead maintainer approval.
Copy link

github-actions bot commented Jan 31, 2024

Test Results (CI)

1 268 tests   1 268 ✅  11m 43s ⏱️
   39 suites      0 💤
    1 files        0 ❌

Results for commit ecb63b6.

♻️ This comment has been updated with latest results.

CjS77 added 3 commits January 31, 2024 12:39
Adding `-c` to cli arguments only checks the current/expected owner
list.
Adds the remainder of the DAN crates to the DAN group
Copy link

github-actions bot commented Jan 31, 2024

Test Results (Integration tests)

29 tests   29 ✅  11m 46s ⏱️
11 suites   0 💤
 2 files     0 ❌

Results for commit ecb63b6.

♻️ This comment has been updated with latest results.

CjS77 added 2 commits January 31, 2024 13:28
Adds sleep after cargo registry calls so that we don't have to wait for
things that don't affect rate limits.
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Feb 1, 2024
@SWvheerden SWvheerden merged commit 92e715c into development Feb 1, 2024
13 of 14 checks passed
@CjS77 CjS77 deleted the crates_owners branch February 1, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs P-merge Process - Queued for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants