Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Stateful Resource Policy #541

Open
fitzthum opened this issue Oct 21, 2024 · 2 comments
Open

RFC: Stateful Resource Policy #541

fitzthum opened this issue Oct 21, 2024 · 2 comments

Comments

@fitzthum
Copy link
Member

Maybe we should add an option for stateful resource policies.

This would allow users to write policies that did things like releasing a secret N times or only releasing secret A after secret B has been released or never releasing secret B if secret A has been released.

There are some drawbacks to this. For one, we would probably have to have some kind of synchronization mechanism, which would likely slow down policy execution. As such, I think this would need to be an optional feature. Even so, it could be very powerful in certain cases.

@fitzthum fitzthum moved this to We have a plan in Trustee Roadmap Oct 21, 2024
@Xynnn007
Copy link
Member

Is this aiming to handle "resource after public key" logic?

@fitzthum
Copy link
Member Author

I'm not sure exactly what you're referring to, but this could be used for a bunch of things like making sure that a guest requests something from a plugin (could be a public key) before it gets resources. You could also make sure that a certain set of resources is only accessed by a single guest at a time using some differentiating info in the init-data.

In theory it can capture whatever logic your workload has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: We have a plan
Development

No branches or pull requests

2 participants