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.

enable matching on namespaces

See original GitHub issue

in order to detect that a category of rules match, without hardcoding all the options, we’d like to be able to write statements that specify that a namespace must much. for example, a statement like match: anti-analysis/packer would match if any rule with this namespace (prefix) also matches.

we can currently write rules that contain statements like match: writes to TCP socket to indicate the rule with name writes to TCP socket must match for the parent rule to match. today, if we wanted to specify “packed AND writes to TCP socket” we’d have to hardcode all the packer rules in a large AND block, which is a point of maintenance when new packer rules are added.

i propose extending the match statement to also match namespaces. because namespaces and rule names are typically formatted differently (kebab-case with slashes vs human readable sentence fragments) they should rarely/never overlap.

this supports #390

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
williballenthincommented, May 28, 2021

im just padding my stats here.

0reactions
williballenthincommented, May 28, 2021

already documented, too. closing issue as already complete.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure namespaces and namespace-scoped objects
Complete the following steps to configure a namespace called gamestore in each ... An object can define a metadata.namespace without having a matching...
Read more >
Make AlertManagerConfig namespace label matching ...
Having ability to disable namespace injection is really needed. Widely used kube-prometheus alerts don't have any namespace labels for example.
Read more >
CA1724: Type Names Should Not Match Namespaces
A type name matches a referenced namespace name that has one or more externally visible types. The name comparison is case-insensitive.
Read more >
Syncing Secrets Across Namespaces - cert-manager
The recommended way to do this is to use extensions such as: reflector with support for auto secret reflection.
Read more >
XSLT matching and namespaces - xml - Stack Overflow
Your stylesheet is attempting to select and match elements whose expanded name is "dc" in no namespace. Your input document has no such...
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