Questions tagged [rules]
This tag is very broad, try being more specific by using tags relevant to your problem. Examples are "rule-engine" for rules engines, "url-rewriting"/"mod-rewrite" for rewrite rules or "form-validation" for validation rules. See the full wiki article for a more complete list.
rules
1,689
questions
0
votes
0
answers
8
views
Firestore rules strange behavior
I'm currently building a web app with Firebase Firestore and trying to create a permission system.
My data is structured as follows:
projects (collection)
[projectId] (document)
allowRead (value)
...
0
votes
0
answers
13
views
AWS Config Custom Rule to detect IAM MFA is not being triggered
I'm creating a custom Lambda AWS Config rule to detect when a user does not have MFA activated.
I'm setting up the rule trigger type to happen when configuration changes, within the scope of the "...
0
votes
0
answers
16
views
How can I filter data using Evrete Rule Engine
I want to use rule engine to filter out data.
For e.g. if there are 10 Account records, I would like to apply a rule like all accounts which are less than 1 year old.
I am exploring Evrete Rule engine ...
0
votes
0
answers
18
views
How connecting all users (old & new) to maxscale proxy
I'm encountering an issue where I have set up maxscale as a database proxy.
After installing and configuration, when I connect using the maxscale user, data masking rules are applied successfully ...
1
vote
1
answer
47
views
Bazel make variables substitution
I read the following bazel manual about make variables (or custom variables):
https://bazel.build/reference/be/make-variables#custom_variables
"Attributes marked as "Subject to 'Make ...
0
votes
0
answers
48
views
Maatwebsite Rules Validation Failed on Import Data from Excel File on Laravel 10
Recently, I have been working on the project that needs to enable users to import data using the excel template file. I provided the excel file which contains the header like as the followings :
...
0
votes
1
answer
62
views
ModSecurity blocks after despite rule exclusions
I try to create a rule allowing any parameter value containing scrip%u0074 (Unicode value of t) to be passed. I create such a rule:
SecRule REQUEST_URI "@contains scrip%u0074" \
"id:...
1
vote
2
answers
70
views
How to use Eslint rule for JSX attribute value
I want to apply eslint rule for JSX attribute value.
like I have a component having some attribute for example
<Component
attribute1="abc-efg"
/>
In above example I want to place a ...
0
votes
0
answers
25
views
Automating Rule Creation for Kibana
I am trying to automate rule creation, updating and deletion via a Python script. I have tried both using curl and Python
I use curl to create the rule: curl -k -X POST "https://192.168.10.131:...
0
votes
1
answer
6
views
Can I use NOT or 'only if' in Exchange message rules?
With the phishing test tool we use it's very labour intensive to ensure the test mails don't include a specific sender address. That's usually fine, but some of our inboxes are used to report security ...
0
votes
1
answer
62
views
How can I filter AWS EventBridge events based on multiple conditions for the same field? [Event Pattern]
I'm trying to set up an event pattern in AWS EventBridge to filter events based on the tableName field. I want to exclude events where tableName starts with either database_1 or database_2. This ...
0
votes
1
answer
22
views
A codeql sensitive configuration detection problem
My company's development project uses yml files as configuration files. How can I use codeql to detect whether these yml files contain sensitive information such as plain text passwords?
When I ...
0
votes
0
answers
20
views
Event Bridge Pattern Matching Key
I am trying to integrate commercetools via event bridge, I receive events like this:
{
"version": "0",
"id": "...",
"detail-type": "...
0
votes
1
answer
34
views
Rules for Hooks in React Native
Are the same rules for hooks in React applicable to React Native:
There are 3 rules for hooks:
Hooks can only be called inside React function components. [Add React Native Components]
Hooks can only ...
0
votes
1
answer
78
views
How to get requests per second with starlette exporter
How can I get metrics on requests per seconds with the metrics exposed by the starlette exporter (link here). I have a Grafana instance, and have metrics like starlette_requests_total
and ...
0
votes
0
answers
20
views
How to make the mapping rules in red hat 3Scale, if they are not sent automatically, they are loaded as empty and sent to the backend
Good morning, I am currently starting to work with Red Hat 3Scale and I am making an api that has the following GET request with QueryParam:
/UDB/v1/UDB?ISDN={ISDN}&IMSI={IMSI}&CONTENT={...
0
votes
1
answer
63
views
How to configure Prometheus Alertmanager for alerting when any container goes down?
I am using Prometheus Alertmanager to monitor dozens of hosts and hundreds of containers on these hosts. I need to receive notifications when any container goes down. I understand from the ...
1
vote
1
answer
102
views
Rules engine has slow down or takes longer to compile while firing rules [Drools]
I've a separate Java spring boot service as a rules engine. Which has controller and service to set focus on agenda groups as user or other service preferred. In my case i have 500 plus rules and 30 ...
0
votes
0
answers
11
views
How to propogate alarms up customer hierarchy
I am trying to set up alarms in our cloud professional edition of ThingsBoard.
Under our tenant user, we have a number of customers, and they in turn have customers, all set up in the customer ...
0
votes
0
answers
27
views
Invalid YaraSharp library in C#
When i run the code below that error appears.
using YaraSharp;
YSInstance YSInstance = new YSInstance();
System.BadImageFormatException: 'Could not load file or assembly
'YaraSharp, Version=1.3.0.0, ...
-2
votes
1
answer
69
views
Modification of an ossec rule to increase its level
I'am trying to modify a rule into 0015-ossec_rules.xml
<rule id="10550" level="10">
<if_sid>550</if_sid>
<regex>/home/.*/\.ssh/</regex>
<...
0
votes
0
answers
22
views
@typescript-eslint/no-unused-vars': 'warn' not working
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['prettier', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'plugin:promise/recommended'],
...
0
votes
1
answer
144
views
Gitlab CICD - compare_to previous commit
In GItlab-CI Im trying to start a job only if $APP is equal to "my-app" and the file file.txt was changed compared to the last commit.
Currently my .gitlab-ci.yml file looks like this:
...
2
votes
3
answers
89
views
Updating a table with a view and getting "infinite recursion detected in rules for relation "employees"
Below is the code I am using in a PostgreSQL 16 database. Every time I try to update the salary I get:
ERROR: infinite recursion detected in rules for relation "employees"
SQL state: 42P17&...
1
vote
2
answers
65
views
Runtime Error - Set olRule = olRules.Item(i) after Microsoft update, where rules setup as 'Through the Specified Account'
ERROR: 2020.05.26 - Since last Microsoft update, code fails on rules setup as 'Through the Specified Account'.
When it hits
Set olRule = olRules.Item(i)
it throws:
Run-time error '-2146664191 [...
0
votes
1
answer
28
views
Delete all files files in a folder three with two conditions: filename has only digits and a specific extension
thank you for your help. I look for a code to select all files in a folder three which have the filename similar to: ###.xlsx, where # is a digit. I am a newbie, and found a code that works for ...
0
votes
0
answers
42
views
Lua Scritp to detect Nmap scan
I was working with Lua scripts and trying to determine if there is any way to detect Nmap scanning using Lua scripts other than Suricata rules. What I've been able to deduce is to look for a ...
0
votes
0
answers
56
views
MITRE ATT&CK Framework with Suricata
I've recently started working with suricata and don't have much experience with it yet. What I'm looking for is, If there's a way to configure suricata to be able to detect various MITRE ATT&CK ...
0
votes
1
answer
44
views
How to fix validation rule for jira-maven-plugin
I use the jira-maven-plugin to create a plugin for JIRA
<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<...
0
votes
1
answer
42
views
Outlook VBA ItemAdd fails operation if executed after a rule that calls a script
I'm having trouble with the ItemAdd event routine when it runs after a rule that calls another script has been executed. Specifically the ItemAdd routine is only in charge of marking as read what is ...