Replies: 2 comments 1 reply
|
Didn't know the dashboard exist until I saw this post... Imo this is good approach to make the Shlink itself much leaner. |
0 replies
|
imo That gives people having access to the API keys much more data that is not supposed to be given. When I say |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Context
A few years ago a feature was implemented to add API key roles to Shlink, allowing to restrict the short URLs and visits a "user" would see.
Issue: shlinkio/shlink#882
Main PR: shlinkio/shlink#960
This feature was implemented because at the time the only official app was Shlink Web Client, which does not have users or a backend, so that had to be handled by Shlink itself.
However, it has been a maintenance burden since then, and it requires Shlink to use a dependency which is currently abandoned and it's hard to remove while supporting this feature (in fact, I'm maintaining a fork myself so that Shlink can move forward and support new PHP versions, among other things).
Proposal
Now that Shlink Dashboard exists, I think it would be possible to move this logic there, allowing admins to limit what a user can see (only short URLs for one domain, or created by them), and making the Dashboard's backend implicitly add extra conditions when querying Shlink.
That would simplify a lot Shlink, which would not have to handle something which has always been out of its scope.
Of course, Shlink would not drop support for API key roles until the capability is implemented in the Dashboard, and likely not before v6.0.0, which I expect to be released by 2028.
All reactions