Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jans-cedarling): Improve log searching and retrieval #10705

Open
olehbozhok opened this issue Jan 20, 2025 · 0 comments
Open

feat(jans-cedarling): Improve log searching and retrieval #10705

olehbozhok opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels
comp-jans-cedarling Touching folder /jans-cedarling enhancement kind-feature Issue or PR is a new feature request
Milestone

Comments

@olehbozhok
Copy link
Contributor

olehbozhok commented Jan 20, 2025

Is your feature request related to a problem? Please describe.
To get single entry from memory logger we need to know ID of entry.
Currently, it is not possible without getting all logs.

Actually we need the way to get decision log exactly.

Describe the solution you'd like
We need to create request_id per one authorize request, propagate it to each log entry. And return it in the AuthorizeResult structure.

Also, we need to improve sparkv, add index with additional ID for entity and add tag for entity.

It will allow go get entities per request and filter per tag.

Describe alternatives you've considered
to result structure add ID of log entry that show decision-log

Additional context

  • generate request ID per single execution authorize call. And pass it to every log entry.
    • currently request_id generate per log entry (because only one log entry use it)
    • add to each log entry id and request_id (if was missed)
  • add to sparkv possibility to get log entries per request_id and request_id + some tag (in result will be id of log entry or list of ids)
  • add to result structure request_id
  • and eventually use updated api of memory logger that allows you to extract logs selectively using request_id or request_id + some tag
@olehbozhok olehbozhok added kind-feature Issue or PR is a new feature request comp-jans-cedarling Touching folder /jans-cedarling labels Jan 20, 2025
@olehbozhok olehbozhok assigned olehbozhok and unassigned moabu Jan 20, 2025
@moabu moabu added this to the next-release milestone Jan 21, 2025
@nynymike nynymike changed the title feat(jans-cedarling): improve getting logs from memory logger feat(jans-cedarling): Improve log searching and retrieval Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-cedarling Touching folder /jans-cedarling enhancement kind-feature Issue or PR is a new feature request
Projects
None yet
Development

No branches or pull requests

2 participants