Skip to content

Comments

1212 feature automate pubkey based on callback uri#1214

Merged
hulto merged 4 commits intomainfrom
1212-feature-automate-pubkey-based-on-callback-uri
Dec 10, 2025
Merged

1212 feature automate pubkey based on callback uri#1214
hulto merged 4 commits intomainfrom
1212-feature-automate-pubkey-based-on-callback-uri

Conversation

@hulto
Copy link
Collaborator

@hulto hulto commented Dec 9, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

Make getting started easier allowing a one command setup.

Which issue(s) this PR fixes:

Fixes #1212

@hulto hulto linked an issue Dec 9, 2025 that may be closed by this pull request
};

// Set the IMIX_SERVER_PUBKEY environment variable for the build
println!("cargo:rustc-env=IMIX_SERVER_PUBKEY={}", pubkey);
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does it deal with formatting? I think it's preferrable to use an API like std::env::var to ensure this gets set to an env var instead of string formatting into something that looks like a CLI arg, otherwise feels like this could be a vector for command injection

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the idiomatic way rust suggests passing env vars from build.rs.

@hulto hulto merged commit 4d56da0 into main Dec 10, 2025
4 checks passed
@hulto hulto deleted the 1212-feature-automate-pubkey-based-on-callback-uri branch December 10, 2025 06:26
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.

[feature] Automate PUBKEY based on callback uri

2 participants