feat(EDR): adds EDR state machine for handling EDR renewal#620
Merged
wolf4ood merged 4 commits intoeclipse-tractusx:mainfrom Jul 20, 2023
Merged
feat(EDR): adds EDR state machine for handling EDR renewal#620wolf4ood merged 4 commits intoeclipse-tractusx:mainfrom
wolf4ood merged 4 commits intoeclipse-tractusx:mainfrom
Conversation
2231e34 to
c34ca18
Compare
ndr-brt
reviewed
Jul 19, 2023
9ea3e14 to
1c4b1d8
Compare
1c4b1d8 to
ac35761
Compare
paullatzelsperger
approved these changes
Jul 20, 2023
Contributor
|
deployment tests will work again after #633 is merged, and this PR is rebased onto |
ac35761 to
79a582c
Compare
4a02b1e to
9da1d48
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
RoseMgbii-b
pushed a commit
to RoseMgbii-b/tractusx-edc
that referenced
this pull request
Mar 5, 2026
…ractusx#620) * feat(EDR): adds EDR state machine for handling EDR renewal * add testcontainers pg for E2E tests * fix after review * fix depedencies file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








WHAT
Implements a state machine for EDR renewal. Once an EDR is first negotiated the state machine will boostrap the
cached entry with a
Negotiatedstate.The state machine is composed by the following states:
Negotiatedthe primordial state. The EDR has been negotiated with the provided and stored in the EDR storeRefreshingthe EDR is about to expire and another transfer process has been started for negotiating anotherEDRtoken with the same parametersExpired: Once a new EDR is negotiated the old one is marked asExpiredwaiting for deletionDeleting: Once the the retention period is expired EDR are marked as deletingThe EDR cached entry gets deleted by picking from the state machine the one that are in
Deletingstate.WHY
User experience. Once the first Negotiate EDR request has been fulfill the EDR extension will ensure to renew automatically the EDR token before it expires.
FURTHER NOTES
Also in this PR the E2E test based on PostgreSQL has been moved to testcontainers. When wi will upgrade to EDC > 0.1.3
we could also leverage to the refactored
PostgresqlStoreSetupExtensionthat uses testcontainers as well for testing the EDR storage.Also in this PR for supporting testcontainers I've created a
TxPostgresqlLocalInstancecopy of the upstream one. It's mark for removal once we upgrade to the next EDC version.Closes #600