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(sozo-walnut): remove sensitive data from dojo configuration file #2978

Merged
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions crates/sozo/walnut/src/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ struct VerificationPayload {
pub async fn walnut_verify(ws: &Workspace<'_>) -> anyhow::Result<()> {
let ui = ws.config().ui();

// Prompt user with message to not expose sensitive data
ui.print(" ");
ui.print(
"⚠️ Warning: You are about to submit all workspace files to walnut.
Ensure your project does not contain private keys. Config files like dojo_*.toml will be \
uploaded.\n
Press Enter to proceed or any other key to abort: ",
);
let _ = io::stdout();
let mut input = String::new();
io::stdin().read_line(&mut input)?;

if !input.trim().is_empty() {
ui.print("❌ Verification aborted by user.");
return Ok(());
}
// Notify start of verification
ui.print(" ");
ui.print("🌰 Verifying classes with Walnut...");
Expand Down