Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

Week - 1 (Phase 1)

Week 1 of My LFDT Mentorship: Architecture, Hedera, and Getting Everything Running Welcome to the first post of my LFDT (Linux Foundation Decentralized Trust)…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 7 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming




Week 1 of My LFDT Mentorship: Architecture, Hedera, and Getting Everything Running



Welcome to the first post of my LFDT (Linux Foundation Decentralized Trust) mentorship blog! Each week I'll be writing about what I built, what I learned, and — honestly — what confused me along the way.



Week 1 was all about planning, architecture decisions, and setting up the groundwork before any real code gets written. No flashy features yet, but a lot of important decisions that will shape everything that comes after. Let's get into it.









The Week at a Glance



Here's a quick summary of everything on my plate this week:




  • Align the implementation plan with my mentor and confirm the interpretation of Issue #87

  • Finalize the target architecture for the whole project

  • Sort out the Hedera testnet setup and operator credentials

  • Understand the revocation strategy and its scope during mentorship

  • Set up the local Heka development environment

  • Install and configure a GitHub App for local testing

  • Create a webhook fixture repository for replaying PR events

  • Prepare a PR slicing plan for incremental delivery









Aligning with the Mentor & Locking Down the Plan



The week started with a sync with my mentor to get the implementation plan nailed down. The good news is, the week-by-week plan has been finalized after a proper discussion, and the interpretation of Issue #87 has been confirmed. With the plan locked in, I can move forward with confidence in the coming weeks.









Deciding the Target Architecture



One of the bigger decisions this week was figuring out where everything actually lives, contributor onboarding, GitHub integration, credential issuance, DID management, and verification policy logic all need a home.



Here's what we landed on:





  • heka-identity-service — This is where the core modules live: contributor onboarding, credential issuance, DID management, and verification policy logic. All of this gets built as a dedicated module within this repo.


  • A separate GitHub repository — The GitHub integration code (the Probot app, webhook handling, check-run posting) lives in its own repo, completely separate from heka-identity-service. This keeps Heka clean and focused on identity, and makes the GitHub-specific code easier to extend or extract later.



There are still a few grey areas to iron out over the next couple of weeks, but the overall direction is clear and agreed upon.









Understanding Hedera: Consensus Nodes vs Mirror Nodes




If you're already familiar with Hedera's architecture, feel free to skip ahead to the next section!




Before I explain how Hedera fits into this project, let me share something I was confused about early on: what's the difference between a consensus node and a mirror node?



Unlike older blockchains (like Ethereum) that use a single node type for everything, Hedera splits the workload into two completely different node types to keep the network fast.






1. Consensus Node — The Write Database




  • This is where you send new transactions (like creating an account or logging a DID document to the ledger).

  • Its job is to receive the transaction, verify it, agree on a timestamp, and write it to the ledger as fast as possible.

  • Because it's hyper-focused on speed and new writes, it's not great at answering questions about old or historical data.






2. Mirror Node — The Read Database




  • The mirror node sits quietly alongside the consensus node and constantly copies (mirrors) every approved transaction.

  • Its only job is to take that raw blockchain data and organize it into a highly searchable traditional database (like PostgreSQL), and expose a REST API that developers can query.

  • Important caveat: you cannot send new transactions to the mirror node — it's strictly read-only.






How This Applies to Our Project



In practice, the two node types serve two completely different purposes in our system:





  • Writing (creating/updating a DID): Our backend uses the consensus node, authorized via operator credentials from our .env. The SDK signs the transaction automatically using the operator key.


  • Reading (showing transaction history or verifying an identity): The frontend makes a standard HTTP GET request directly to the mirror node's REST API — completely bypassing the consensus node.



Our .env will look something like this:




HEDERA_NETWORK=
OPERATOR_ID=
OPERATOR_KEY=
NODE_IP=
MIRROR_NODE_IP=












HBAR Balance & Revocation Strategy



After clarifying with my mentor Alexander, I now have the credentials for the operator account. The account comes loaded with enough test HBAR tokens to cover everything I need during development — creating, updating, and querying DIDs. So the token balance won't be a blocker at all.



On the revocation front: implementing a full, hardened VC revocation mechanism is out of scope for this mentorship. The focus right now is on building a working prototype, so revocation will either be tackled in the second half of the mentorship or saved for post-mentorship work. For now, the expectation is lightweight documentation and runbook-level treatment — not a working mechanism.









Setting Up the Local Dev Environment



This was the most hands-on part of the week. Getting the local Heka environment running required wiring together three tools: Nginx, Ngrok, and a GitHub App. Let me walk through how they fit together.






The Nginx Routing Rules



Nginx listens on Port 8080 and applies two simple routing rules to every incoming request:




# Rule 1: Route GitHub Webhooks → Probot GitHub App (Port 3000)
location /api/webhook {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

# Rule 2: Route everything else → Heka Core Backend (Port 3001)
location / {
proxy_pass http://127.0.0.1:3001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}






In plain English:




  1. If the request is to /api/webhook → forward it to the GitHub App on Port 3000

  2. Everything else → forward it to the main Heka backend on Port 3001






Why Ngrok Is Necessary



Here's the catch: Nginx only listens on localhost. But when GitHub fires a webhook event, "localhost" from GitHub's perspective means GitHub's own servers — not your machine. It would send the event into the void, find nothing, and drop it silently.



Ngrok solves this by creating a public tunnel from your local Port 8080 directly to the internet:




ngrok http 8080






Ngrok gives you a temporary public URL — something like https://something.ngrok-free.app. You paste this into your GitHub App's webhook URL settings. Now the entire flow works end-to-end:




GitHub fires a PR event
↓
Hits the public Ngrok URL
↓
Ngrok tunnels it to Port 8080 on your local machine
↓
Nginx reads the request and applies the two routing rules
↓
Correct service handles it (Port 3000 or 3001)






A one-liner to remember the whole pipeline:




GitHub labels it and sends it → Ngrok blindly transports it → Nginx reads it and diverts it.










Webhook Fixture Repository



To avoid opening real pull requests every single time I want to test webhook handling, I created a dedicated fixture repository for generating and replaying PR events during development.



You can find it here: darshit2308/Heka-Webhook-Fixture









The PR Slicing Plan



To keep development incremental and mentor-reviewable, I've planned out the PR delivery sequence. This is tentative for now, but here's the rough order:




  1. ADRs and credential profile documentation

  2. Deterministic DID verification method helper and Hedera secret validation

  3. GPG challenge lifecycle module with tests

  4. GitHub App adapter skeleton and check-run creation (separate repo from Heka, per mentor direction)

  5. GitHub OAuth and contributor binding

  6. Contributor credential OID4VCI support

  7. Heka Web Wallet prototype (lives inside the Heka repository; non-Askar key management)

  8. Heka Web UI onboarding flow

  9. Repository config parser and policy schema

  10. OID4VP verification integration (Web Wallet as the primary target)

  11. Lifecycle and recovery documentation (runbooks; no revocation implementation)

  12. E2E test suite, docs, and final demo artifacts









Looking Ahead



Week 1 was heavy on planning, decisions, and setup — but that's exactly how it should be. A solid foundation now means fewer surprises (and fewer painful rewrites) later. Starting next week, the real implementation begins: ADRs, the DID helper utilities, and the first PR going out the door.



Stay tuned for Week 2!






This post is part of my ongoing LFDT Mentorship 2026 blog series. Feel free to reach out if you have questions or want to discuss anything covered here!

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Community Rating & Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness

Related story clusters & sources (vector AI)

6 Cluster
19 sources
Bluetti Black Friday: Drei empfehlenswerte Powerstations günstiger
ifun.de 20 min. ago
18 more sources
CNET21 hours agoI Test Air Fryers. Cuisinart’s Glass Model Is a Steal at $84 for Black Friday t3n.de59 min. agoBlack Friday: Diese 9 Fritzboxen, Repeater und Co. sind wirklich günstig Golem.de51 min. agoAnzeige: Leises Rudergerät zum Black Friday günstig wie nie bei Amazon heise online News40 min. agoBlack Friday: Bei Saugrobotern kräftig sparen – Topmodelle zum Tiefstpreis AppleInsider News39 min. agoBlack Friday price war drops Apple's M6 MacBook Pro to $1,779 WinFuture News1 hour agoBlack-Friday-Deal: Lymow One Plus, der Panzer unter den Mährobotern netzwelt.de2 hours agoXiaomi TV F Pro im Black-Friday-Check: Wie gut ist der Fernseher-Hit wirklich? netzwelt.de1 hour agoWer eine Nintendo Switch 2 sucht, sollte sich diese Black-Friday-Aktion bei congstar anschauen Computer Bild1 hour agoBlack Friday: Die besten Girokonto-Deals PC-WELT1 hour agoAmazon Black Friday Woche am Dienstag: Die besten Technik-Deals im Überblick PC-WELT1 hour agoFritzbox 7690 mit Wi-Fi 7 bei Amazon im Black-Friday-Angebot: Jetzt deutlich günstiger Latest from TechRadar1 hour agoProton VPN Plus vs Surfshark One: which plan is the better Black Friday deal right now? Latest from TechRadar1 hour agoBlack Friday Oura Ring deals: The best of the deals so far, picked by a wearable-tech expert CNET6 years agoOur Favorite Blenders of 2026 Are on Sale Ahead of Black Friday CNET1 hour agoBrighten Up Your Day by Saving 20% Off Flashlights With Olight’s Black Friday Sale CNET1 hour agoLive: Black Friday Deals Are Here. Shop Expert Picks Across Tech, Everyday Essentials and More at Up to 60% Off Golem.de1 hour agoAnzeige: Logitech-Tastatur MX Keys S am Black Friday zum Sensationspreis auf Amazon PC-WELT2 hours agoLuminar zum Black Friday: KI-Bildbearbeitung für nur 79,20 Euro
17 sources
CVE-2026-133764 | Twig up to 3.31.0 Sandbox toString sandbox (EUVD-2026-133913)
VulDB Updates 50 min. ago
16 more sources
VulDB Updates50 min. agoCVE-2026-133763 | Symfony Twig up to 3.31.0 Sandbox toString sandbox (EUVD-2026-133912) VulDB Updates50 min. agoCVE-2026-132270 | Significant-Gravitas AutoGPT up to 0.8.4 Autopilot authorization (EUVD-2026-133583) VulDB Updates50 min. agoCVE-2026-136123 | Friendica up to 2026.05-1 ActivityPub compactProfile input validation (EUVD-2026-133909) VulDB Updates50 min. agoCVE-2026-136124 | welovemedia ffmate up to 2.0.x wildcardReplacer argument injection (EUVD-2026-133908) VulDB Updates1 hour agoCVE-2026-72522 | Libexpat up to 2.8.2 Unicode *_toUtf16 out-of-bounds (EUVD-2026-54990 / Nessus ID 385514) VulDB Updates1 hour agoCVE-2026-133773 | Twig markdown-extra up to 3.31.0 HtmlConverter html_to_markdown options resource consumption (EUVD-2026-133922) VulDB Updates1 hour agoCVE-2026-133772 | Twig up to 3.30.x Sandbox sandbox (EUVD-2026-133921) VulDB Updates1 hour agoCVE-2026-133770 | Twig up to 3.31.0 Sandbox __construct sandbox (EUVD-2026-133919) VulDB Updates1 hour agoCVE-2026-133769 | Symfony html-extra up to 3.31.0 Cva Cva::apply sandbox (EUVD-2026-133918) VulDB Updates1 hour agoCVE-2026-133767 | Twig up to 3.31.0 Sandbox __toString sandbox (EUVD-2026-133916) VulDB Updates1 hour agoCVE-2026-133766 | Twig up to 3.31.0 Sandbox toString sandbox (EUVD-2026-133915) VulDB Updates1 hour agoCVE-2026-133765 | Symfony Twig up to 3.31.0 Sandbox sandbox (EUVD-2026-133914) VulDB Updates2 hours agoCVE-2026-13137 | Hitachi Energy RTU500 CMU up to 13.9.1 User management/REST resolver/SPA-Bus buffer overflow (EUVD-2026-133827) VulDB Updates2 hours agoCVE-2026-131717 | Liquid Web, StellarWP Event Tickets Plugin up to 5.31.1 on WordPress authorization (EUVD-2026-131354) VulDB Updates2 hours agoCVE-2026-126605 | Proton Pass up to 1.21.0 Face ID App Lock improper authentication (EUVD-2026-133826) VulDB Updates2 hours agoCVE-2026-103406 | Juniper Session Smart Conductor up to 7.0.4/7.1.6/7.2.2 AutomatedProvisioner os command injection (EUVD-2026-112215)
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten Week - 1 (Phase 1)

Thematisch verwandte Begriffe: Week, Phase · 6 Treffer

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag