question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation: add SQL support via objection-authorize

See original GitHub issue

Hi! I am a daily user of casl and over the past few years I’ve been using casl along with objection-authorize (a library that I’ve also been building for the past few years) to integrate casl in both the frontend and the backend isomorphically, and perhaps more importantly, ACTUALLY use the casl ACLs to filter/check SQL queries!

I understand that #8 is asking for Sequelize support, but it doesn’t lend itself to plugin support very neatly, and I’m a personal advocate of Objection.js (the SQL ORM of choice), and perhaps most importantly, it’s ALREADY proven to be working (see https://github.com/JaneJeon/blink for an example, especially under policies/ and models/ directory).

https://github.com/JaneJeon/objection-authorize has a full battery of tests that have been expanding over the years, and at this point I feel that it’s “battle-tested” enough to recommend to the general public. So I’d appreciate it if you could add objection-authorize as an adapter for people using SQL + CASL, under the “Official Packages” in the documentation.

My hope is that with my library, people who’re looking for SQL support don’t have to overlook CASL because of the lack of support for SQL ORMs (and vice versa).

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
stalniycommented, May 12, 2021

@JaneJeon I added a note about 3rd part packages.

I’m sorry but I don’t want to maintain that list. Once somebody adds something to my code, I will need to support it. When amount of that packages grow and everybody will want to put own package in docs, it will become a nightmare for me because:

  1. Review that PRs
  2. Ensure that packages are alive and remove if some of them become abandoned

I think that I can spend my time more effectively 😃

1reaction
stalniycommented, Apr 14, 2021

Sorry @JaneJeon when you have a little kid Open Source activities start to move a bit slower 😃. I definitely will take a look but it will take some time

Read more comments on GitHub >

github_iconTop Results From Across the Web

Querying your Amazon OpenSearch Service data with SQL
Learn how to use SQL to query your data in Amazon OpenSearch Service. ... of the SQL plugin that's supported by each OpenSearch...
Read more >
Collation and Unicode support - SQL Server - Microsoft Learn
Adding the UTF-8 option (_UTF8) enables you to encode Unicode data by using UTF-8. For more information, see the UTF-8 Support section in...
Read more >
Database tools and SQL | DataSpell Documentation - JetBrains
The Database tools and SQL plugin provides support of all the features that are available in DataGrip, the standalone database management ...
Read more >
SQL Quick Reference - W3Schools
ADD column_name datatype. or. ALTER TABLE table_name ... GROUP BY, SELECT column_name, aggregate_function(column_name) FROM table_name
Read more >
Documentation: add SQL support via objection-authorize #486
Documentation : add SQL support via objection-authorize #486. Hi! I am a daily user of casl and over the past few years I've...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found