IPA API audit

We just merged a basic audit feature for #FreeIPA's API use. It forces recording of any use of IPA API operations on IPA servers through the systemd journal. The journal entries have more details than just a string you see in Apache's log and we use that in journal -x to generate an explanation of the journal entry. Should make use of API more discoverable and also help with auditing of operations.

More information can be found at https://freeipa.readthedocs.io/en/latest/designs/audit-ipa-api.html

Below are two examples of how this audit looks like. First, what is recorded in the journal:

This is a simple record for an equivalent of deleting a user through IPA API on the server directly (hence, a mark that says '[autobind]' there). systemd journal is capable to translate that entry into a human-readable text, with the help of a message catalog we provided. When you'd use one, the output is self-explanatory:

It gives references to the general IPA API documentation and to explanation of this specific IPA command ('user_del'). It gives you a link to the community mailing list, for possible support requests and discussions. Finally, it explains both the format of the log message and inserts specific properties you see there while doing so. I hope this new feature would be useful.

systemd journal has few more interesting features that we might use in future. For example, it allows to create a separate namespace for the group of systemd services and then any attempt to log to the journal from them will be directed into that custom journal. This allows one to collect log entries from multiple services into the same journal without interweaving them with the rest of the system's activity (which can be quite noisy). But it could also be used to relocate a journal off a read-only locations. The latter would be very useful for containerized setups which often done with read-only images.

Andrey Bondarenko

Lead DevOps Engineer

5 个月

That's cool feature.

回复
Antoine Gatineau

Linux and SRE Engineer

5 个月

This is great news. I was just explaining this week how hard it is to get events from freeipa! This feature will help a lot adoption in enterprise

回复
Andrew Puch ??????????

Enterprise System Architect?? ??/ IT Consultant / lean / agile/ ScrumMaster at Independent Consulting / Mentor / Mentee / #tribeOfMetors / #purpleSquirrel ???

6 个月

Alexander Bokovoy idm sometimes soon ? A year or so ?

要查看或添加评论,请登录

社区洞察

其他会员也浏览了