RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2111998 - fence_ibm_vpc: Add an authentication token caching mechanism (save token in session for configurable interval) (RHEL9)
Summary: fence_ibm_vpc: Add an authentication token caching mechanism (save token in s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: fence-agents
Version: 9.1
Hardware: All
OS: Linux
urgent
medium
Target Milestone: rc
: 9.2
Assignee: Oyvind Albrigtsen
QA Contact: Brandon Perkins
URL:
Whiteboard:
Depends On: 2102024
Blocks: 2127872 2127878
TreeView+ depends on / blocked
 
Reported: 2022-07-28 15:07 UTC by Oyvind Albrigtsen
Modified: 2023-05-09 07:41 UTC (History)
5 users (show)

Fixed In Version: fence-agents-4.10.0-31.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2102024
: 2127872 2127878 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:19:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-6217 0 None None None 2022-12-01 17:24:08 UTC
Red Hat Issue Tracker RHELPLAN-129493 0 None None None 2022-07-28 15:35:38 UTC
Red Hat Product Errata RHSA-2023:2161 0 None None None 2023-05-09 07:19:51 UTC

Description Oyvind Albrigtsen 2022-07-28 15:07:15 UTC
+++ This bug was initially created as a clone of Bug #2102024 +++

Description of problem:

Enhancement:
Add an authentication token caching mechanism to the IBM VPC fencing agent (save token in session for configurable interval)

When any of the fence monitor, VM power status, or VM shutdown API requets are trigged, an authentication token is retrrieved for authorization. 

If the authentication token can be cached within the session(for a configurable interval), it can be reused in subsequent calls(for example
when the fence agent triggers a shutdown, VM/VSI power status, monitor, etc).


For instance, consider the cache token that will be saved in the session:
1.If the current token is expired (or never fetched), make a new request for one.
2.If the current token should be refreshed, issue a refresh request.
3.After any request initiated above complete, return the stored token.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:


Actual results:


Expected results:


Additional info:
https://github.com/ClusterLabs/fence-agents/pull/493

Comment 16 errata-xmlrpc 2023-05-09 07:19:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: fence-agents security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2161


Note You need to log in before you can comment on or make changes to this bug.