Skip to content

Provisioning skeleton#59

Merged
Javier-varez merged 6 commits into
mainfrom
provision-skeleton
Mar 29, 2026
Merged

Provisioning skeleton#59
Javier-varez merged 6 commits into
mainfrom
provision-skeleton

Conversation

@Javier-varez

Copy link
Copy Markdown
Member
  • Creates a leap-provision-site crate to host the frontend of the provisioning functionality for LEAP.
  • Hooks this site to the leap-server.
  • By default, leap-server attempts to start itself using the given configuration path or using the default path. If the configuration is not present or is invalid, and --fallback is given, it falls back to a provisioning mode, in which it serves the provisioning frontend and uses a different set of HTTP handlers for the API.
  • Additionally, it is possible to ask the leap-server directly to start in provisioning mode by passing the --provision flag.
  • xtask replicates the --provision flag and passes it to the leap-server binary when given to cargo rr.
  • The HTTP configuration is moved from the configuration file to cli arguments. This helps to share these settings between the 2 modes.
  • Updates the aws crates to patch https://github.com/T4EQ/leap/security/dependabot/1 and https://github.com/T4EQ/leap/security/dependabot/2

Closes #58

jfrohnhofen
jfrohnhofen previously approved these changes Mar 29, 2026
Comment thread leap-server/src/main.rs Outdated
Comment thread leap-server/src/main.rs
/// Displays version information
/// Fall back to provisioning if the LEAP configuration file could not be open and parsed.
#[arg(short = 'f', long = "fallback")]
provision_fallback: bool,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is there a scenario where this would not be set? is there a way to run the main server if the config file cannot be parsed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not really in the LEAP node, but I don't want the provisioning process to run on my laptop when I do cargo rr, so that's why I left the fallback only as an option.

@Javier-varez Javier-varez merged commit c39c67f into main Mar 29, 2026
9 checks passed
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.

Add skeleton for the provisioning functionality

2 participants