Skip to content

[Feature]: Support REST-based plugins #2630

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

Closed
Nadine-H opened this issue May 13, 2025 · 0 comments · Fixed by #2631
Closed

[Feature]: Support REST-based plugins #2630

Nadine-H opened this issue May 13, 2025 · 0 comments · Fixed by #2631
Assignees
Labels

Comments

@Nadine-H
Copy link
Contributor

Nadine-H commented May 13, 2025

Problem

There is currently support for plugins, however it requires building plugin code into the Dstack Docker image, . In addition, in some cases users may need to add their own pre-apply validations and policies (that are not applicable to all dstack users). They cannot do this without having to commit the code into Dstack's codebase.

Solution

Implement a plugin that makes REST calls to a configurable server. This server could be used to offload pre-apply policies or any other customer-specific pre-apply hooks to mutate or reject requests. Mutating requests is useful for injecting cost tracking metadata for example.

Workaround

None

Would you like to help us implement this feature by sending a PR?

Yes

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

Successfully merging a pull request may close this issue.

2 participants