-
Notifications
You must be signed in to change notification settings - Fork 4
HSM refactor #61
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
Merged
Merged
HSM refactor #61
Changes from all commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
4e769ad
Add SSH config storage support
brainstorm c01b70d
Update references to sunset config system(s)
brainstorm dd07731
[ci skip] Continue adapting config/storage/flashstorage interfaces fr…
brainstorm 359dede
[ci skip] Stubborn 'unresolved import' for SSHEncode/SSHDecode traits…
brainstorm 717bed1
[ci skip] Same SSHDecode/SSHEncode 'unresolved import' issue /cc @mkj
brainstorm 97f5338
[ci skip] Apply @mkj's fix for sshwire derive, compiles now, thx :D
brainstorm d46b3d5
[ci skip] Init config/storage from main, will most probably refactor …
brainstorm 6bf0573
[ci skip] Pass config through tasks
brainstorm 96c910a
Merge branch 'main' into fix_passwd_auth
brainstorm 8077954
[ci skip] AnyPin::steal is unsafe(), need to find a way to safely rec…
brainstorm c981001
[ci skip] Switch to multi-thread (feature flag) in sunset-async to ge…
brainstorm e8b7cbe
[ci skip] Experiment with suggestions given on esp-rs/esp-hal matrix …
brainstorm 7f98af9
[ci skip] This should be simpler, too much mutex/static cell/etc...
brainstorm 30e2fe7
Use SunsetMutex() for the UART reconfiguration scheme.
brainstorm d416aea
Change default SSID string (instead of using server id string)
brainstorm 517eed8
When updating espflash to 4.x, esp_bootloader_esp_idf::esp_app_desc()…
brainstorm ff30894
Disable custom partitions for now and SunsetMutex seems to interfere …
brainstorm 90b4321
Merge branch 'main' into fix_passwd_auth
brainstorm 0d6ee1a
Fix mutex issues with uart_task and draft PinConfig struct/impl for R…
brainstorm 0419520
Merge branch 'fix_passwd_auth' of github.com:brainstorm/esp_hosted_ss…
brainstorm a0bebbd
Complex types such as Mutex<CriticalSectionRawMutex> complicate the s…
brainstorm 24c009e
Cargo.lock
brainstorm 7f9f399
[ci skip] Working through PinConfig types issues, small cleanup
brainstorm 6be7ce2
Serializable type on Pinconfig.
brainstorm 6630c64
[ci skip] Testing/refactoring idea proposed in https://github.com/bra…
brainstorm c35a3c6
[ci skip] Big mess, ignore macro-heavy experiment :-S
brainstorm becd503
Adding channels and realising that unsafe is almost surely needed for…
brainstorm bb7cdfa
Get rid of unsafe via .degrade and Option<> (thx @bugadani for the tip!)
brainstorm 7e6ec0e
Cleanup before considering Signals (instead of channels) and how to p…
brainstorm 9968552
Attempt to use automatic Send/Receive PinChannel struct... issue with…
brainstorm 73e8c5c
Bit more cleanup
brainstorm a54ae13
Nightly works, AsyncFnOnce should be stabilised around 6 months to 1 …
brainstorm 1ea08e8
Working on hardware now, the channels/signaling logic needs to be fix…
brainstorm d4f84cc
Available gpios, not just gpios
brainstorm c19423a
Event itself should trigger env/config/serialization
brainstorm bbcc09e
Re-enabled partitions.csv since it's needed for NVS/SSHConfig/FlashCo…
brainstorm 53f1923
Separate sunset and ssh-stamp errors, add ipv6 stub to determine some…
brainstorm 3dbcf3b
Merge channel_pins_nicer branch to fix_passwd_auth
brainstorm d461377
Config hash still on ~2 bytes offset, now getting PacketWrong while s…
brainstorm d9ccdd3
Feature-gate ipv6 for now, it was meant as an experiment to add/remov…
brainstorm d52ccff
[ci skip] New config serialised correctly... unsure if format is corr…
brainstorm fa70369
[ci skip] Back to shifted hash config error
brainstorm 9a331fe
[ci skip] Fixed SSHEncode/Decode for SSHStampConfig, unfortunately it…
brainstorm e2ee151
[ci skip] Try to experiment with probe-rs debugging support on ESP ta…
brainstorm df554ee
Experiments with vscode/probe-rs debugging failed due to dev tooling …
brainstorm 7cf834a
Only one admin key, do not use option_env because we'll be using ssh …
brainstorm 821126b
Turns out that calc_hash was failing because we had SerdePinConfig wi…
brainstorm 7a6eb55
Thorough dbg cleanup...
brainstorm aba0244
Refactor to accomodate SessionType and share channels between types.
brainstorm e79b485
cargo fmt
brainstorm 70177c2
Separate 'regular' SSHConfig from Pins-related configuration and oper…
brainstorm e741242
Comment out SessionType(s) not needed for now
brainstorm 8a8fe3d
Fix up PinChannel logic so that pins are updated on the connection_lo…
brainstorm cfa619a
Initial implementation of Hierarchical State Machine (HSM) to replace…
Autofix 0b41d1a
Cleanup various warnings.
Autofix f1e7aa4
Restore SSH pin config by passing pin_channel rather than pin_channel…
Autofix a693dd8
Implement additional 'Tcp socket enabled' state, making tcp_socket be…
Autofix 8b86e3d
Added temporary software reset to all HSM cleanup functions. Future i…
Autofix d9fd1cb
Rust format cleanup
Autofix 40de634
Use same chan_pipe for connection loop and bridge.
Autofix 49c55ba
Start UART after ssh connection is made. This means that SSH ENV requ…
Autofix 3c1db13
Merged https://github.com/brainstorm/ssh-stamp/commit/522ba5c15250bfd…
Autofix c9cc4a1
Rename config_storage.rs to store.rs
Autofix 3d45d76
net::if_up split into separate steps: prepare_ap_stack -> wifi_up -> …
Autofix c9c3c53
Revert to using embassy_executor tasks in net.rs due to being stuck w…
Autofix ab806cf
Remove ESP32 feature from esp-alloc
Autofix 854c1f6
Update config.toml
Autofix 38927ba
Add different GPIO for ESP32 vs other ESP32 targets.
Autofix 5856796
Change uart_task to embassy future, and poll at last HSM state in sel…
Autofix 640cc6a
Move various functions from main.rs into relevant files.
Autofix 6573b3a
Restore tcp_socket to main.rs due to flash init block.
Autofix 2f199e0
Return uart_task back into main.rs as embassy task. Start task proces…
Autofix 7189736
Increase priority of UART interrupt to Priority3 as it was becoming b…
Autofix 6c7adfb
Cleanup main and update UART pins for all ESP32 targets
Autofix 0d94911
Move uart task to buffered_uart.rs.
Autofix b0ef820
Restore tcp_socket creation from main back into net::accept_requests()
Autofix da4e46a
Cleanup unneeded HSM state functions due to uart being in task.
Autofix 0c34e67
Remove unused pins.rs
Autofix c81afe4
Start TCP socket in main to resolve ESP32 block in bridge connection.
Autofix 6b40573
Merge branch 'main'. HSM branch to override most src files due to alr…
Autofix 398e7f5
Remove unused storage/src/esp.rs
Autofix 57fc6a0
Move UART_BUFFER_SIZE setting to settings.rs
Autofix 0e92030
Fix ESP32-S2 target compilation. Target will still not run.
Autofix f093b7f
Restore OTA Packer build to config.toml
Autofix a0d1789
Fix clippy lint errors for ESP32-C6.
Autofix 557b649
Update README with default UART pins for all targets.
Autofix f38b8cf
Change to stable branch for building OTA packer.
Autofix d60ed9e
Update github build to fix clippy warning:
Autofix d9dfdd1
Leverage semver to pin HAL versions to only major API changes, CI wil…
brainstorm 8fcdafd
Get rid of hardcoded hostkey, fixes issue https://github.com/brainsto…
brainstorm afb8200
Cleanup/clarification based on @jubeormk1 feedback for @brainstorm/ss…
Autofix 41784aa
Merge branch 'ssh-stamp-hsm' of git@github.com:Autofix/ssh-stamp.git
Autofix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,6 @@ target/ | |
|
|
||
| # VSCode workspace(s) | ||
| *.code-workspace | ||
|
|
||
| # Temporarily ignore book from this branch | ||
| docs/book | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "rust-analyzer.check.allTargets": false, | ||
| "rust-analyzer.check.allTargets": false, | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.