home.social

#reactionrust — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #reactionrust, aggregated by home.social.

  1. reaction v2.4.0 is out!
    Updates:
    - JSON log parsing (much handier than regexes for JSON logs!)
    - Smarter database
    - Important bugfixes

    framagit.org/ppom/reaction/-/r
    #reactionrust #reaction #sysadmin #rust

  2. For now, reaction filters logs by applying regexes on log lines.
    I'd like to extend reaction's engine so that it can understand and query structured data.

    People dealing with structured logs:

    What's the language? (JSON, ...) 🗨️

    Which software produce those logs? (caddy, traefik, ...)

    Can you provide some example logs?

    What types of queries would you want to be able to run on them? (regex, integer comparison, ...)

    I'm all ears 👂👂👂
    #reactionrust
    #yesihave3ears

  3. A new version of reaction is out!
    v2.3.1 prints more useful error messages when dealing with the brand-new feature introduced by v2.3.0: plugins!
    #reactionrust
    framagit.org/ppom/reaction/-/r

  4. Don't hesitate to ask me when you're trying to do something with reaction!
    If it's already in the doc, I'll point it to you.
    If it's not in the doc, it'll be an opportunity for me to add missing information.
    #reactionrust

  5. The developer plugin documentation is there 🎉
    Don't hesitate to tell me if you think some information is missing or unclear!
    docs.rs/reaction-plugin
    #reactionrust

  6. Une nouvelle version de reaction vient de sortir !
    La v2.3.0 ajoute un tout nouveau système de plugins, qui permet d'étendre les fonctionnalités de reaction et de gros gains de performance !

    framagit.org/ppom/reaction/-/r

    #reactionrust #rust #fail2ban #plugins

  7. A new version of reaction is out!
    v2.3.0 features a brand new plugin system, permitting to extend reaction and huge performance gains!

    framagit.org/ppom/reaction/-/r

    #reactionrust #rust #fail2ban #plugins

  8. damn, my first Rust library is in the queue of docs.rs: docs.rs/releases/queue
    docs.rs/reaction-plugin should be available very soon!
    #reactionrust

  9. I'll be at 39c3 in a few days. If you're coming too and want to talk about reaction, don't hesitate to ping me!
    #39c3 #CCC #reactionrust

  10. The NixOS module for reaction has been upstreamed in nixpkgs!

    Many thanks to @loudgolem for the enhancements and upstream of the original module.

    Follow advancement of the NixOS CI/CD:
    nixpkgs-tracker.ocfox.me/?pr=4

    #nixos #reactionrust

  11. Someone wrote a wiki page to ban IPs using ipset.
    If you ban IPs with iptables, consider switching to ipset, as it's much faster!
    reaction.ppom.me/actions/ipset

    #reactionrust #ipset

  12. Results on one benchmark:
    10% saved on CPU time,
    10% saved on actual run time,
    20% saved on RAM max usage,
    20% saved on disk writes

    The benchmark really is on the internals of reaction, so it doesn't take into account real life scenarios where reaction has more complex regexes, and writes more complex data in DB.

    So this is kind of the theorical maximum performance boost this change can make.

    Still, that's a lot 🏆

    #reactionrust

  13. Ok I just switched reaction's ip bans from plain iptables to ipset.
    This made reaction startup 10 times faster on server 1.
    2,600 ips added in 3s instead of 30s.

    ipset is far superior than plain iptables for big IP lists. I knew this but I'm still surprised now that I see this!

    And the firewall stack must be much faster as well when treating incoming packets!

    #reactionrust #iptables #ipset #performance

  14. First time I profile reaction, which is already light on CPU (but I must work on the RAM consumption, which is too high imo)
    I used samply, which integrates with Firefox Profiler, it's great! 1/

    #reactionrust #performance

  15. I updated earlier today the documentation for reaction's AI crawlers blocker!
    You can now automatically list the full community list of AI user agents in reaction 🤖
    And the regex is more optimized.

    reaction.ppom.me/filters/ai-cr

    #reactionrust #ai #bot

  16. After months of email alerting with reaction, I finally published an article on how to send 💌 email 💌 with reaction.

    I made the choice to use 🥌 curl 🥌, which is ubiquitous, very flexible, and knows how to speak SMTP.

    reaction.ppom.me/actions/mail.

    #reactionrust #curl

  17. So, someone in the issue made me realize that some bots impersonate the user agents of big actors, such as Googlebot. I checked my webserver logs and found a lot of them actually!

    I liked the challenge, so I just wrote an article about how to do this in less than 40 SLOC 🏆
    reaction.ppom.me/filters/usera

    #reactionrust #bots #badbots #google #googlebot

  18. So, someone in the issue made me realize that some bots impersonate the user agents of big actors, such as Googlebot. I checked my webserver logs and found a lot of them actually!

    I liked the challenge, so I just wrote an article about how to do this in less than 40 SLOC 🏆
    reaction.ppom.me/filters/usera

    #reactionrust #bots #badbots #google #googlebot

  19. How to deal with specific patterns that we want to ignore in reaction?

    I have an important design decision to make and I want your advice!

    framagit.org/ppom/reaction/-/i

    #reactionrust

  20. I'm always positively surprised when I see that reaction is packaged in a Linux distribution. Today it is in Chimera Linux!
    pkgs.chimera-linux.org/package
    #reactionrust #ChimeraLinux

  21. To be able to index #reaction on the awesome-rust list, it must have > 50 stars. Well, 50 stars on framagit and 50 stars on github are far from equivalent, but it should be feasible! It already has 34 stars. If you have an account on Framagit, would you star it?
    ➡️ framagit.org/ppom/reaction
    Boosts welcome!

    Edit: now indexed on awesome rust, all good! Many thanks and no more engagement bait needed 😋
    #reaction #reactionrust #framagit

  22. After a lot of researching and thinking, I finally started coding reaction's (upcoming) plugin system!

    It will permit to write custom stream, filter and action logic, in Rust.

    It'll make use of stabby, a crate easing the definition of a stable ABI in Rust, thus permitting reaction and its plugins to be compiled separately, at different times.

    Roadmap: blog.ppom.me/en-reaction-v2/#p

    stabby: docs.rs/stabby/

    #reactionrust #reaction #rust #plugin #stabby #nlnet

    (1/n)

  23. After a lot of researching and thinking, I finally started coding reaction's (upcoming) plugin system!

    It will permit to write custom stream, filter and action logic, in Rust.

    It'll make use of stabby, a crate easing the definition of a stable ABI in Rust, thus permitting reaction and its plugins to be compiled separately, at different times.

    Roadmap: blog.ppom.me/en-reaction-v2/#p

    stabby: docs.rs/stabby/

    #reactionrust #reaction #rust #plugin #stabby #nlnet

    (1/n)

  24. After a lot of researching and thinking, I finally started coding reaction's (upcoming) plugin system!

    It will permit to write custom stream, filter and action logic, in Rust.

    It'll make use of stabby, a crate easing the definition of a stable ABI in Rust, thus permitting reaction and its plugins to be compiled separately, at different times.

    Roadmap: blog.ppom.me/en-reaction-v2/#p

    stabby: docs.rs/stabby/

    #reactionrust #reaction #rust #plugin #stabby #nlnet

    (1/n)

  25. After a lot of researching and thinking, I finally started coding reaction's (upcoming) plugin system!

    It will permit to write custom stream, filter and action logic, in Rust.

    It'll make use of stabby, a crate easing the definition of a stable ABI in Rust, thus permitting reaction and its plugins to be compiled separately, at different times.

    Roadmap: blog.ppom.me/en-reaction-v2/#p

    stabby: docs.rs/stabby/

    #reactionrust #reaction #rust #plugin #stabby #nlnet

    (1/n)

  26. After a lot of researching and thinking, I finally started coding reaction's (upcoming) plugin system!

    It will permit to write custom stream, filter and action logic, in Rust.

    It'll make use of stabby, a crate easing the definition of a stable ABI in Rust, thus permitting reaction and its plugins to be compiled separately, at different times.

    Roadmap: blog.ppom.me/en-reaction-v2/#p

    stabby: docs.rs/stabby/

    #reactionrust #reaction #rust #plugin #stabby #nlnet

    (1/n)