Skip to content
Snippets Groups Projects
  1. Jan 15, 2024
  2. Jan 12, 2024
  3. Dec 28, 2023
  4. Dec 22, 2023
  5. Dec 19, 2023
  6. Dec 07, 2023
  7. Dec 06, 2023
    • Egor Ivkov's avatar
      fix: set default value of max login attempts to 4 · 2be3aecf
      Egor Ivkov authored and Yaroslav Dynnikov's avatar Yaroslav Dynnikov committed
      2be3aecf
    • Kurdakov Alexander's avatar
      refactor: remove all privileges from role super · 45ba7392
      Kurdakov Alexander authored and Alexander Kurdakov's avatar Alexander Kurdakov committed
      45ba7392
    • Dmitry Ivanov's avatar
      feat(audit): don't print None values · 2e035654
      Dmitry Ivanov authored
      This patch adds a proper support for auxiliary fields containing `Option<T>`.
      As of now, KV pairs containing `Some(x)` will be printed as just `x`,
      while the ones with `None` won't be printed at all.
      
      Example:
      
      ```rust
      crate::audit!(
          message: "demo audit event",
          title: "example",
          severity: Low,
          test: Some(0u32),
      );
      ```
      
      ```json
      {
        "id": "1.0.1",
        "message": "demo audit event",
        "severity": "low",
        "time": "2023-12-06T17:16:51.085+0300",
        "title": "example",
        "test": "0"
      }
      ```
      
      ```rust
      crate::audit!(
          message: "demo audit event",
          title: "example",
          severity: Low,
          test: None::<i32>,
      );
      ```
      
      ```json
      {
        "id": "1.0.1",
        "message": "demo audit event",
        "severity": "low",
        "time": "2023-12-06T17:16:51.085+0300",
        "title": "example"
      }
      ```
      2e035654
  8. Dec 04, 2023
  9. Dec 03, 2023
Loading