toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

206
active users

#Rego

0 posts0 participants0 posts today

"regal-main test bundle ran 2.54 times faster than regal test bundle"

#OPA's new parallel test runner doing it's magic in Regal, where 800 unit tests now execute in half a second (down from 1.4). Shipping with the next OPA release, which if all goes well should be later today :)

Amazing work by OPA maintainer Sebastian Spaink 🚀

Nicholaos Mouzourakis at Gusto has been a long-time contributor to #OPA, and has written some of the best blogs on #Rego we've read. Turns out he is just as great talking about it on video! Just published on YouTube, "Super-Scaling Open Policy Agent with Batch Queries" is a deep-dive into an advanced OPA topic, explained well enough to be interesting to most. Hosted by the ever excellent Bart Farrell. Recommended!

youtube.com/watch?v=b6aTh2Qn4tA

Just pushed a new version of kube-review, my tiny tool for creating #Kubernetes admission review objects out of any YAML resource manifest. Perfect for testing admission controller implementations offline, or author #Rego k8s policies using those as input.

github.com/anderseknert/kube-r

GitHubGitHub - anderseknert/kube-review: Create Kubernetes AdmissionReview requests from Kubernetes resource manifestsCreate Kubernetes AdmissionReview requests from Kubernetes resource manifests - anderseknert/kube-review

A new #Regal release is out! Featuring 4 new linter rules, and a bunch of performance improvements along with the usual fixes. I'm particularly happy about the new "narrow-argument" rule, as I don't know many tools do that type of analysis for any language. It's an optional rule though, so make sure to enable it if you want to try it out!

github.com/StyraInc/regal/rele

GitHubRelease v0.33.1 · StyraInc/regalThis release adds 4 new linter rules to Regal, alongside significant performance improvements and several bug fixes. New Rule: in-wildcard-key Using a wildcard variable (_) for the key in the key-v...

Regal v0.32.0 just dropped! After having worked mostly on language server features recently, it was time for the linter to get some love. This release includes 3 new linter rules as well as much faster linting. Check it out!

github.com/StyraInc/regal/rele

GitHubRelease v0.32.0 · StyraInc/regalThis release adds 3 new linter rules to Regal, as well as many improvements and fixes. New Rule: redundant-loop-count A loop iterating over empty collections evaluates to nothing, and counting the ...
#OPA#Rego#Regal

Just realized I lost my pinned post when moving to a new instance, so here's a new one. See my profile for an #introduction to who I am — what I want to talk about here is the project I've been working on the most recently. That project is #Regal, a linter and a language server for #OPA's policy language #Rego.

What started out as a simple linter is now a complete companion tool for anyone working with Rego, providing developers new to the language a platform for learning, and seasoned developers means to enforce best practices and guardrails around their policies.

If you're working with anything related to OPA and Rego, try it out! If it doesn't help you in your work, that's a bug and I want to know about it. And if there's anything else related to OPA or Rego you want to ask someone about, my DMs are always open for that.

github.com/StyraInc/regal/

GitHubGitHub - StyraInc/regal: Regal is a linter and language server for Rego, bringing your policy development experience to the next level!Regal is a linter and language server for Rego, bringing your policy development experience to the next level! - StyraInc/regal

If you're occasionally working on #Rego policies and haven't kept up with #OPA updates, I'd recommend you start by checking out the recent improvements around testing. Specifically:

- The `--var-values` flag added to `opa test`, which provides a detailed view of test failures and help explain exactly which assertion failed and why.
- The new parameterized test feature. Data-driven testing of policies! This really is such a killer feature, and I can't wait to rewrite tests to leverage this in my existing projects.

All covered in the OPA docs page on policy testing. Check it out!

openpolicyagent.org/docs/lates

Open Policy AgentPolicy TestingPolicy-based control for cloud native environments

OPA v1.2.0 released just now! The big feature of this release is parameterized tests for Rego — something I have wanted for years! Other than that, my continued work on performance contributes a bunch of commits here, making OPA significantly faster 🚀

github.com/open-policy-agent/o

GitHubRelease v1.2.0 · open-policy-agent/opaThis release contains a mix of features, performance improvements, and bugfixes. Parameterized Rego Tests (#2176) Rego tests now support parameterization, allowing a single test rule to include mul...

Off to Gothenburg tomorrow! First to meet with some friends, and then to talk at the local #CloudNative meetup there on Thursday. I was supposed to promote the event, but the 60 seats are all booked already, so instead — enjoy this humble brag. Anyway, can't wait to talk about #OPA and hack some #Rego in front of an audience again!

The boys at #TheFifthColumn are nailing it. There is waste to cut but #DOGE is taking an approach that is often illegal, misleading and will make doing this necessary work harder in the future. When you look at the success of the Clinton era #REGO process, I'm stuck wondering why they are choosing this path. Either they are dumb / unware of what was accomplished back then, or pursuing other priorities. Making government and society dysfunctional perhaps. IDK. #uspol

pca.st/9hhx8phl

Pocket Casts#490 - Among the Bullshitters - The Fifth ColumnYour weekly rhetorical assault on the on the news cycle, the people who make it, and occasionally ourselves. Kmele Foster (Freethink), Michael Moynihan (Vice), and Matt Welch (Reason) talk and laugh and drink their way to at least quasi-sanity in a world gone mad, often with the aid of clean and articulate guests. Weekly Members Only subscription edition often comes with listener mail and professional-quality (if inappropriate) singing. Analysis. Commentary. Sedition. www.wethefifth.com

Today we had to allow a bunch of new users and groups to do stuff in our #Backstage instance and it was as simple as adding a few lines to our #rego policy and a small PR, we didn't have to update a bunch of code, or ask any admins or raise any tickets, didn't redeploy nothin'

Keep it simple 😎

I didn't renew my #JetBrains license this year, and have been working exclusively in #VSCode for the past month, for both #Golang and #Rego development. And the experience is mostly great! The few things that are annoying are however *really* annoying. Like how poorly VS Code integrates test runners still, and the way to abort a hanging test is often to restart the whole editor. It's a good experience sticking to a single editor for some time though, and I've learnt a lot that I otherwise wouldn't have.

A new year, and a new #Regal release is out! 

v0.30.0 is the first release to support #OPA / #Rego 1.0, while continuing to work as you’d expect on any previous versions of Rego. The linter is now also nearly *twice as fast*, thanks to several upstream PRs to improve evaluation performance in OPA. That and many more improvements and fixes — all compiled in the release notes which you’ll linked below. Happy linting! 😃

github.com/StyraInc/regal/rele

GitHubRelease v0.30.0 · StyraInc/regalRegal v0.30.0 is the first release to fully support OPA 1.0 while at the same time being fully compatible with older versions of OPA and Rego. This process helped improve both Regal and OPA, as a f...