Skip to content

Conversation

@aharriscybr
Copy link

Desired Outcome

Delay Conjur & JWT authentication based on delta calculated from iat and EPOCHSECONDS. This will ensure token validity from iat and github runners.

Implemented Changes

In this PR:

Implemented handle_git_jwt - this function decodes and captures iat from issued JWT token from git IDP. With the decoded iat we check local EPOCHSECONDS, calculate a delta:
If there is a delta, delay for the delta in seconds
If there is no delta, authenticate to conjur

Connected Issue/Story

Resolves #[relevant GitHub issue(s), e.g. 76]
#14

CyberArk internal issue ID: N/A

Definition of Done

@cyberark/integrations-factory test and review

Changelog

  • The CHANGELOG has been updated, or
  • This PR does not include user-facing changes and doesn't require a
    CHANGELOG update

Test coverage

  • This PR includes new unit and integration tests to go with the code
    changes, or
  • The changes in this PR do not require tests

Documentation

  • Docs (e.g. READMEs) were updated in this PR
  • A follow-up issue to update official docs has been filed here: [insert issue ID]
  • This PR does not require updating any documentation

Behavior

  • This PR changes product behavior and has been reviewed by a PO, or
  • These changes are part of a larger initiative that will be reviewed later, or
  • No behavior was changed with this PR

Security

  • Security architect has reviewed the changes in this PR,
  • These changes are part of a larger initiative with a separate security review, or
  • There are no security aspects to these changes

@aharriscybr aharriscybr requested a review from a team as a code owner May 6, 2025 19:32
@bnasslahsen
Copy link

@itsbrugu,

Could you please let us know, if this PR is ok, or we are expecting any other actions ?

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.

3 participants