Launchpad clusters and LLM/AI Agents

“Secret free repo”

That’s the core concept. Go to “Future…” if you are short on time.

Background

LLMs are wrecking havoc and it’s causing cracks everywhere. If you have been keeping up with the tech news, things have steadily climbed from “autonomic agents hacked (found unlisted unprotected) govt websites”[1] to “end of cryptography as we know it”[2].

This also causes second-order effects. I recently found core Xblocks in Verawood completely broken, because a version of “xblocks-contrib” was released without any of the static (JS/CSS) files in the course of publishing a security patch.[3]

Now ironically, LLM was the one that helped me debug this issue. It was able to download tar.gz files or 2 versions from PyPI, analyze it’s contents and tell me exactly what files were missing, and also warn me against downgrading as the broken one is a security release.

I could have done all of that myself. But LLMs can do it at a fraction of time and with better precision. I am not an AI/LLM maximalist, but I can see a big part of what I do being automated with LLMs. LLMs are the curse, and LLMs are the solution. They are both sides of the pandora’s box.

If you are wondering why I am writing dramatic treatise on LLMs with big bold “Secret free repo” in the heading, I am getting there.

Tutor Environments

The amazing thing about Tutor is that it does everything - from enabling a single feature on the platform to running k8s clusters. I have had multiple experiments with it over the years and one of the best ones I like is git versioning it. When developing locally, with multiple clients, multiple repos - git versioned Tutor environments can be amazing to test and debug. Thanks to Python everything, from it’s core to plugins to config, is just plaintext.

It is the perfect kind of isolated self-contained software setup for LLMs to work in. Test, debug, write on off scripts/plugins - LLMs are at home. Combined with Docker containers, debugging with LLMs makes life so much easier.

Now…

I want to do it in production systems - well, sorta. See, Launchpad cluster are not like Grove clusters. They don’t take human written config, translate it to machine config and run. Launchpad cluster instance configs are shared by humans and machines. We write something, and then CI updates it. The whole environment is in the repo. The full Tutor config of every instance in the cluster. So when something doesn’t work, we can just git clone the cluster’s repo, point an LLM to it, and ask it to recreate it locally and start debugging. Except for Database centered errors or network errors, it should be able to debug anything - broken plugin, broken theme, automation failure, infra setup…everything is just there. We can go from Celery jobs are failing to Redis memory under-provisioned, just from the repo.

But, we can’t. I have never started a Claude session within any of the ops repos. They all have “secrets” - see, I told you I will get there :slight_smile:

Remember, everything is just plaintext - well so are the passwords. From root passwords of DB clusters to user session signing keys to access keys of storage buckets… everything is in the repo.. everything is plain text. Plain text is both the gift and the curse. Pandora’s box.

Future…

So, what do we do? How do we balance security and speed of execution? I propose a “secret free repo”. Launchpad cluster with zero passwords or secrets.

It is achievable for Kubernetes clusters using the External Secrets Operator. ESO does one thing - it syncs secrets from an external source like Vault, Infisical, AWS Secret Manager..etc., to a K8s Secret object. It is currently not used the Open edX operations, as far as I can find.

Let’s create “tutor-contrib-external-secrets” plugin

What would it do?

It will fetch all the necessary secrets & passwords from an external store like Vault and inject it as envvars of Open edX processes. A developer will never see a plaintext password unless debugging inside a k8s pod.

What are the benefits?

  • Any instance using it is portable. You can zip and pass it’s Tutor config & env like candy. Cost of reproducing issues will drastically drop.
  • That means, for a lot of situations, we can just let LLMs work on live cluster repos (again - well sorta). It would need proper K8s RBAC so LLMs don’t go around doing kubectl edit secret or something like that.
  • We can have automated testing and upgrade of plugins and themes.
  • If we are brave enough - even automated upgrade of instances, or at the least - generating customized upgrade guide and checklist for each instance.

So…

What do you think?

P.S: I have been sitting on this idea for a while now. I couldn’t deploy an instance for a while because the instance’s Argo Workflows needed the “root” user password for the DB and as a security measure, we only store instance user passwords in Launchpad. The only way to get it to work was to place the secret in the config, run the workflow, delete it and squash the commit to erase it from git’s memory. Now, if everything was loaded via ESO, we can avoid being manual gatekeepers.


  1. How we will do better for Australia | OpenAI ↩︎

  2. Joint statement from Anthropic and OpenAI on recent advances in cryptography \ Anthropic ↩︎

  3. To explain: As “security work” keep developers under constant pressure to quickly fix and patch things, manual errors like publishing packages without static files start to creep up causing broken systems indirectly. ↩︎