MongoDB Realm Service Rules not working?

Hi Mongo

My Realm service rules do not appesr to be working.

I added a new 3rd party service with one incoming webook then added a single rule to the service:

  • Name: alwaysfalse
  • Action: GET
  • When { “%%true”: false }

Expected: that in all cases all GET requests to the webhooks would be blocked.

Observed: Able to curl endpoint and get response

Can you clarify how service rules are designed to function and if I have configured things correctly?

Thanks

Hi @mba_cat - you would actually have to use Realm Rules (the separate side-nav on the UI) for incoming webhooks. The service rules are specifically outgoing requests, but Incoming Webhook will use the rules/roles you’ve defined in Rules.

Hope that helps!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.