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.

Remove the action field and add an "extra" inclusion enum

See original GitHub issue

Splitting up issues from #88

Right now it looks like we don’t look at the action field in a policy rule. By default any rule created will be treated as a reject. Here is the enums we allow right now:

ACCEPT
REJECT
REQUIRE

We need to come up with a strategy for handling these

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
PSalant726commented, Dec 20, 2021

@iamkelllly The action field is being removed altogether, since only REJECT was ever used, and so the assumption going forward will be that all policy rules REJECT.

1reaction
NevilleScommented, Dec 8, 2021

After discussing I realize that ONLY works if you assume it’s an accept rule (e.g. ACCEPT this system if it ONLY uses these categories), but since the rule is still going to be a REJECT we kinda need to figure out the opposite of ONLY.

Here’s a decent verb for this that works with the rest, I think: OTHER

Putting into practice…

  • REJECT this system if ANY of these categories are used: user.provided.identifiable.contact.email, user.provided.identifiable.contact.phone_number
  • REJECT this system if ALL of these categories are used together: user.provided.identifiable.contact.email, user.provided.identifiable.contact.phone_number
  • REJECT this system if OTHER categories are used that are not: user.provided.identifiable.contact.email, user.provided.identifiable.contact.phone_number
Read more comments on GitHub >

github_iconTop Results From Across the Web

Dealing with Enum Type in PostgreSQL - DEV Community ‍ ‍
Existing data are using an enum value which should be removed now. For example, you have this enum ('PREPARING', 'WAITING_PICKUP', 'IN_DELIVERY ...
Read more >
PostgreSQL: ENUM is no Silver Bullet | by Duong Nguyen
4 ways to do inclusion validations in PostgreSQL ... How easy to ADD, UPDATE, REMOVE items from the list of options.
Read more >
Visual enum editor adds extra (blank) values #12277 - GitHub
I have two ideas for how to fix this. Start the form with an empty field and let the user manually add however...
Read more >
Can I add and remove elements of enumeration at runtime in ...
No, enums are supposed to be a complete static enumeration. At compile time, you might want to generate your enum .java file from...
Read more >
ActiveRecord::Enum - Rails API
Declare an enum attribute where the values map to integers in the database, but can be queried by name.
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