Inspiration
The friction of the modern code review process is a massive drain on engineering velocity. Context-switching to pull down a branch, resolve dependency conflicts, and spin up a local environment just to review a pull request slows everything down. While automated preview environments exist, they typically expose staging URLs to the public internet or run in shared clusters where a destructive database migration or malicious dependency can wreak havoc. I wanted to build a solution that prioritized absolute isolation and zero-trust security without sacrificing speed.
What it does
Ruing accelerates DevSecOps by automatically provisioning ephemeral preview environments for pull requests. It bridges OpenClaw's virtualization capabilities with Auth0's identity management to instantly spin up secure, authenticated, and sandboxed VMs. Reviewers can interact with a live, isolated version of the PR, while the host infrastructure remains completely protected from malicious code or breaking changes.
How I built it
I built the core orchestration layer using FastAPI to handle incoming webhooks and manage the infrastructure state. I relied heavily on OpenAI Codex and GPT-5.6 to accelerate development, specifically using the models to generate secure bash provisioning scripts, configure the complex Auth0 middleware, and write the necessary Infrastructure-as-Code (IaC).
To ensure the sandboxes were truly secure, I applied strict Blue Team principles, embedding system monitoring tools like Sysmon and Auditd directly into the base VM images. Finally, I exposed the architecture via the Model Context Protocol (MCP), creating a seamless interface for external AI agents to natively manage and query these ephemeral environments.
Challenges I ran into
The primary hurdle was balancing provisioning speed with strict security boundaries. Booting isolated VMs traditionally takes time, which defeats the purpose of an "instant" PR preview. I used Codex to iteratively optimize the image caching and initialization scripts, drastically reducing boot times. Additionally, securely passing Auth0 tokens through the GitHub webhook lifecycle into the OpenClaw provisioning layer required complex state management that took multiple refactors to get right.
Accomplishments that I'm proud of
I am incredibly proud of how seamlessly the orchestration layer connects completely disparate infrastructure tools. Successfully locking down the OpenClaw VMs behind strict Auth0 authentication—while keeping the provisioning time low enough to be practical for daily code reviews—was a major technical win.
What I learned
I learned that LLMs are exceptional at bridging the gap in DevOps workflows. By relying on GPT-5.6 and Codex as pair-programming partners, I was able to write highly robust, secure infrastructure automation in a fraction of the time.
I also quantified the potential impact of this workflow on engineering velocity ($V_e$). I modeled the expected time savings per sprint using the following equation:
$$\Delta T = \sum_{i=1}^{N} \left( t_{context_switch} + t_{local_setup} - t_{ruing_provision} \right)$$
Where $N$ represents the total number of pull requests, and the Ruing provisioning time ($t_{ruing_provision}$) is offloaded entirely to automated background processes, returning countless hours back to the team.
What's next for Ruing
I plan to expand the native AI-agent integrations by building out the MCP server capabilities, allowing autonomous agents to actively monitor the running PR environments and run synthetic tests. I also want to integrate Wazuh for centralized security logging, giving security teams a real-time dashboard of all active PR environments and automatically flagging any suspicious lateral movement before the code is ever merged.
Built With
- auth0
- devsecops
- gpt-5.6
- openai-codex
- openclaw
- python
Log in or sign up for Devpost to join the conversation.