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

Support installing plugins from private URLs or registries #2918

Open
mikkelhegn opened this issue Nov 10, 2024 · 3 comments
Open

Support installing plugins from private URLs or registries #2918

mikkelhegn opened this issue Nov 10, 2024 · 3 comments

Comments

@mikkelhegn
Copy link
Member

The two options available to install plugins today is a public URL or accessible file location. For scenarios where you only want to share a plugin with a defined group of people, if would be great to be able to be bale to use either a private registry or URL to share plugins.

@karthik2804
Copy link
Contributor

Support from installing from private URLs was added recently via #2896. One can now do spin plugins install --url <url> --auth-header-value <authentication header value> to install plugins from secured endpoints. Is that sufficient for this?

@mikkelhegn
Copy link
Member Author

Can you help describe the procedure to install a plug-in from a private GitHub repo? I think that's the most likely scenario which would be great to support.

@karthik2804
Copy link
Contributor

GIthub repo is currently slightly complicated as for private repositories you cannot directly curl the releases. You will have to go through the github API, which spin does not have any understanding of. The solution to this would be to have a proxy app that takes a github token which it uses to fetch the appropriate asset.

An alternate but not suggested way is to check in the files into the repo. If this is done then you can install by using

spin plugins install --url <https://raw.githubusercontent.com/<github account>/<repo name>/refs/heads/<branch>/<path to plugin manifest> --auth-header-value "token: <gh token>"

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

No branches or pull requests

2 participants