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

opa: token_expired policy should check only the right side of Path #1517

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

glazychev-art
Copy link
Contributor

Description

Issue link

Closes: #1512

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionality
  • Documentation
  • Refactoring
  • CI

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

All modified lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@d68a6f4). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1517   +/-   ##
=======================================
  Coverage        ?   70.15%           
=======================================
  Files           ?      248           
  Lines           ?    11203           
  Branches        ?        0           
=======================================
  Hits            ?     7860           
  Misses          ?     2843           
  Partials        ?      500           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

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

I see the problem that we're trying to fix with this patch, but I'm not sure that it will work in all cases. For example, the right part could also be expired, or we may have a custom policy from the user.

It seems to me that closings from timeout should always be authorized.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tokens_expired policy in case of partial expiration
2 participants