Prototypes: sim edges → Pi onboarding → wss/mTLS → two-tier backend spike#82
Open
ramaguruprakash wants to merge 1 commit into
Open
Conversation
…rgy-iot#79) Shared so the conclusions behind docs/aws-arch-v2-plan.md are reproducible: P1 (N sim edges -> backend -> InfluxDB, probe scripts), P2 (edge on the real SL-RP4 Pi with apikey registry onboarding), P4 (wss + mTLS via nginx TLS proxy, internal CA), P5 (two-tier 2026.6.0 backend spike reproducing the upstream blockers behind PRs #3795-#3798). P3 (MQTT) was planned but not built. All credentials are documented throwaway dev secrets; the one real device apikey (slrp4-09) is redacted from the P1 registry. TLS material is generated locally and gitignored. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Guru <guru@coefficient.io>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this is
The four working prototypes behind the decisions in
docs/aws-arch-v2-plan.md(PR #), built for #79 on a laptop + a Synergy Logic SL-RP4
(Raspberry Pi 4, 2 GB, 32-bit). Sharing them in-repo so the team can reproduce
the conclusions instead of taking the plan doc's word for them.
Each directory is self-contained (own compose file/scripts) with a
README.md(run + verify steps) and a
LEARNINGS.md(what broke and why). P3 (MQTT meteringestion) was planned but not built — the numbering gap is intentional.
p1-edge-to-backendp2-edge-on-piregister-edge.sh→provision-edge.sh), coexisting with OpenPLC under a systemd memory capp4-secure-edge-backendp5-two-tier-backendbackend+backend-edge) cannot serve a directly-connected edge with file metadataCredentials / publication safety
simulator apikeys equal their edge-ids by design.
slrp4-09) is redacted from the P1 registry;issue a fresh one with
register-edge.sh --rotatewhen reproducing.make-certs.shand gitignored —no keys or certs are in this PR.
workspace were deliberately not imported.
How to try it
Start with
prototypes/README.md, thenp1-edge-to-backend/README.md—P1 runs entirely on a laptop (
./scale-edges.sh 5 && docker compose up -d),no hardware or AWS needed. P2/P4 need a Pi; P5 is compose-only.