パスワード変更結果が記載されるログについて

コメント

1件のコメント

  • 正式なコメント
    Permanently deleted user

    API経由でパスワード変更を行った場合、

    /var/log/kompira/audit-apatch.log

    に以下のように記録されます。

    {
      "level": 3,
      "started": "2023-08-10T10:23:30.937605+09:00",
      "finished": "2023-08-10T10:23:31.017865+09:00",
      "exec": {
        "pid": 2376980,
        "name": "python",
        "user": "takahashi",
        "remote": "127.0.0.1"
      },
      "user": "root",
      "interface": "api",
      "class": "user",
      "target_path": "/config/user/id_4",
      "target_type": null,
      "type": "update",
      "permit": "allowed",
      "result": "succeeded",
      "reason": null,
      "detail": {
        "http_method": "PATCH",
        "http_status": 200
      }
    }

    ただし、上記の例では、ユーザ /config/user/id_4 を (PATCH リクエストで) update したことは分かりますが、「パスワードを変更した」のかどうかの区別はつきません。

    コメントアクション パーマリンク

サインインしてコメントを残してください。