Skip to content

Generate audit log for voms aa#1170

Open
garaimanoj wants to merge 3 commits intodevelopfrom
issue-1068-VOMS-AA-audit-logs
Open

Generate audit log for voms aa#1170
garaimanoj wants to merge 3 commits intodevelopfrom
issue-1068-VOMS-AA-audit-logs

Conversation

@garaimanoj
Copy link
Contributor

@garaimanoj garaimanoj commented Feb 19, 2026

Audit log generated:
2026-02-19 16:35:01.451 INFO 1194409 --- [main] AUDIT : {"@type":"VomsSuccessResponseEvent","timestamp":1771518901407,"category":"GENERATE_AC","principal":"test","message":"User [username: test, uuid: 80e5fb8d-b7c8-451a-89ba-346ae278a66f, subjectDN: CN=test0,O=IGI,C=IT, issuerDN: CN=IGI TEST CA,O=IGI,C=IT] got successful VOMS response [outcome: SUCCESS, VO: test, uri: localhost:15000, targets: [], issuedFQANs: [/test, /test/sub, /test/sub/subsub], notAfter: 2018-01-01T12:00:00.000+0000, notBefore: 2018-01-01T00:00:00.000+0000]","source":"VOMSController"}

2026-03-02 11:25:42.319 INFO 66495 --- [main] AUDIT : {"@type":"VomsFailureResponseEvent","timestamp":1772450742319,"category":"GENERATE_AC","principal":"test","message":"User [username: test, uuid: 80e5fb8d-b7c8-451a-89ba-346ae278a66f, subjectDN: CN=test0,O=IGI,C=IT, issuerDN: CN=IGI TEST CA,O=IGI,C=IT] got failure VOMS response [outcome: FAILURE, errorMessages: [[NoSuchAttribute] User is not authorized to request attribute '/another' or attribute does not exist.]]","source":"VOMSController"}

@enricovianello
Copy link
Member

Could VomsProxyIssuedEvent be a better name for this event? @giacomini we'll let you decide the names of a successful/failed proxy issuing event.

@garaimanoj garaimanoj marked this pull request as ready for review March 2, 2026 13:31
<File>${IAM_LOG_PATH:=/var/log/iam}/iam-audit.log</File>

<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>${IAM_LOG_PATH:-/var/log/iam}/iam-audit-%d{yyyy-MM-dd}.log.gz</FileNamePattern>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While running the test it is creating the log file.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants