You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a private repo that will store each "users" packages in a unique scope per user, but I also need to be able to query the repo for those packages from a separate service.
I have a authentication plugin that limits access so each user can only access/publish/unpublish to their scope, but I also have a admin user that has access to everything,
I can see that making calls to /-/all with a users access token only returns packages that they have access to, but I'd rather not have have to keep an access token per user in the other service.
Calling /-/all with the admin token returns all the packages in the repo. While I could filter this list it would be really inefficient especially as things grow. (I understand the list has to be filtered somewhere and it looks like the auth plugin is already doing some of this at least for access in the repo)
/-/v1/search?text=@scope works, but is a full text search so could also find things in the README.md not just the package name.
/-/verdaccio/data/search/@scope looks promising, but I can't find any doc for it (pointer to it in the source would help if there is no doc for this API)
Is there a better search API that will just search package names/scope?
(p.s. bonus points if it also works with the web UI disabled)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm building a private repo that will store each "users" packages in a unique scope per user, but I also need to be able to query the repo for those packages from a separate service.
I have a authentication plugin that limits access so each user can only access/publish/unpublish to their scope, but I also have a admin user that has access to everything,
I can see that making calls to
/-/all
with a users access token only returns packages that they have access to, but I'd rather not have have to keep an access token per user in the other service.Calling
/-/all
with the admin token returns all the packages in the repo. While I could filter this list it would be really inefficient especially as things grow. (I understand the list has to be filtered somewhere and it looks like the auth plugin is already doing some of this at least for access in the repo)/-/v1/search?text=@scope
works, but is a full text search so could also find things in the README.md not just the package name./-/verdaccio/data/search/@scope
looks promising, but I can't find any doc for it (pointer to it in the source would help if there is no doc for this API)Is there a better search API that will just search package names/scope?
(p.s. bonus points if it also works with the web UI disabled)
Beta Was this translation helpful? Give feedback.
All reactions