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

Set opt-out flag for Rust crates to prevent accidental publishing #415

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

cr-tk
Copy link
Collaborator

@cr-tk cr-tk commented Nov 30, 2023

Summary & Motivation (Problem vs. Solution)

TL;DR: developers with working cargo credentials may accidentally publish confidential Turnkey code/artifacts without additional chances to abort if cargo publish is run in the wrong context, since crates default to being publishable.

See rust-lang/cargo#6153 for potential impact if publish = false is not set.

How I Tested These Changes

No functional change outside of cargo expected.

Pre merge check list

There is likely no CHANGELOG.md entry necessary.

@cr-tk cr-tk added the enhancement New feature or request label Nov 30, 2023
@cr-tk cr-tk requested a review from emostov November 30, 2023 16:03
@cr-tk cr-tk self-assigned this Nov 30, 2023
@cr-tk cr-tk force-pushed the christian/fix_qos_crate_publish_flags1 branch from 9346dae to 691f9c1 Compare November 30, 2023 16:18
@cr-tk
Copy link
Collaborator Author

cr-tk commented Nov 30, 2023

I initially missed two cases.

@cr-tk
Copy link
Collaborator Author

cr-tk commented Nov 30, 2023

@r-n-o : does the additional change look good to you? Given the context, the difference should be trivial, but I think it's good practice not to let myself decide that 🙂

@r-n-o r-n-o merged commit feae4f4 into main Nov 30, 2023
11 checks passed
@r-n-o r-n-o deleted the christian/fix_qos_crate_publish_flags1 branch November 30, 2023 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants