Skip to content

Add Context Aware Policy Functions and Example#33

Draft
brownz11 wants to merge 1 commit intokubewarden:mainfrom
brownz11:main
Draft

Add Context Aware Policy Functions and Example#33
brownz11 wants to merge 1 commit intokubewarden:mainfrom
brownz11:main

Conversation

@brownz11
Copy link
Copy Markdown
Contributor

Description

Fix #32

Adds 3 methods to the KubeWarden .NET SDK that mirror the Kubernetes Host Capabilities waPC calls

Test

To test this pull request, you can run the following commands:

Additional Information

Tradeoff

None

Potential improvement

I am not a professional C# programmer, but I've tried my best.

@viccuad
Copy link
Copy Markdown
Member

viccuad commented Aug 20, 2024

Hi, thanks for this contribution!

Sadly, currently the repo CI is in a bad state as the .NET SDK repo needs some love.
I have opened #34 to schedule work to get the CI green. I would like to wait until the CI is green so we can work on features reliably, hence, please have a bit of patience with this PR.

@flavio
Copy link
Copy Markdown
Member

flavio commented Sep 3, 2024

Thanks for your contribution and sorry for the delay, I was on vacation.

As @viccuad said the current status of C# policies is not good.

There's some maintenance work we have to do that has been postponed because, so far, nobody from the community has shown interest about C# policies.

This is the work to be done:

  • wapc-guest-dotnet: update to .NET 8, replace the now discontinued dotnet-wasi-sdk
  • this repository: update to .NET 8, consume latest version of wapc-guest-dotnet

What are you plans with regard to C# usage? Would you like to help us with this work (we are not top notch C# developers 🥲)

@brownz11
Copy link
Copy Markdown
Contributor Author

brownz11 commented Sep 3, 2024

What are you plans with regard to C# usage?

We're a C# shop here, and looking to replace OPA with Kubewarden, so we rewrote all our policies in C#. It's much much easier than Rego, so our general idea was "C# policies or bust". We managed to get all our policies written and working under the current C# SDK, so it does at least work. But I do agree there's a chance for improvement.

Would you like to help us with this work (we are not top notch C# developers 🥲)

I can try to help, I'm not a C# developer (or even a developer) myself, but I'm sure something is better than nothing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Feature Request: Support for Kubernetes Host Capabilities

3 participants