Missing access logs

Open
#225 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Start by locating the request-handling entry points and the existing error logging that produces the example message. Trace how request details and response status are available, then define the JSON access-log fields listed in the issue and verify that each request records them. The issue does not name files or tests, so repository exploration is required.

Written by the indexing model from the issue text.

Description

Please add access logs. Format tbd.

Problem now is that misbehaving users are hard to pin down. For example, the log is flooding with errors like:

 oidc.web.ErrorController:85 - Error has occurred: oidc.exceptions.UnknownCodeException: Invalid code: cDfzmtLJaxV5Ay22ufan4z6ifNSQGwVT invalid_code

but we cannot see who is sending the request

So, for each request, please add a line with the following info:

  • date
  • originating ip (from the lb)
  • ip from X-Forwarded-For header
  • http method
  • requested path including GET parameters
  • returned http status code
  • oidc-endpoint that was called
  • clientid of RP/RS

Format should be json

Dominant language
Java
Stars
4
Forks
6
Avg merge
4d 1h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenConext/OpenConext-oidcng

All issues in OpenConext/OpenConext-oidcng

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.