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: add identity provider to DTR #361

Merged
merged 13 commits into from
May 21, 2024

Conversation

tom-rm-meyer-ISST
Copy link
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST commented May 12, 2024

Description

Add identity provider configuration for the PURIS backend:

  • EDC client with only read access that is added to the data asset's address
  • PURIS client with all permissions for shell descriptor updates etc.

Changes:

  • Add OAuth2ClientInterceptor with DTR configuration that is conditionally binded
  • DataAddress in Asset registration for DTR conditionally contains oauth2 keys
  • Test for OAuth2ClientInterceptor
  • Helm chart
    • add dtr idp config
    • add missing frameworkagreement.use in values
  • local setup:
    • centralize keycloak with two additional realms to configure the idp per partner
    • keycloak setup for miw does not need anymore a jq injection because it now uses environment variables
    • separate keycloak and miw properties

Note: changes without formatting git diff --stat -w main results in delta of 6062 lines of code (loc) of which the following are no code changes:

  • 5010 loc: keycloak realms for customer and supplier as json
  • 41 loc: plain markdown documentation
  • 60 loc: plain license headers
    result (not even considering inline documentation like javadoc): 951 loc

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

Copy link

gitguardian bot commented May 12, 2024

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@tom-rm-meyer-ISST tom-rm-meyer-ISST marked this pull request as ready for review May 12, 2024 16:04
# Conflicts:
#	backend/src/main/java/org/eclipse/tractusx/puris/backend/common/ddtr/logic/DtrAdapterService.java
#	charts/puris/README.md
#	local/docker-compose.yaml
Copy link
Contributor

@eschrewe eschrewe left a comment

Choose a reason for hiding this comment

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

Very well done,
just some minor remarks from my side.

Copy link
Contributor

@eschrewe eschrewe left a comment

Choose a reason for hiding this comment

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

Almost there :)

Copy link
Contributor

@eschrewe eschrewe left a comment

Choose a reason for hiding this comment

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

LGTM, thank you very much :)

# Conflicts:
#	backend/pom.xml
#	backend/src/main/java/org/eclipse/tractusx/puris/backend/common/edc/logic/util/EdcRequestBodyBuilder.java
#	charts/puris/README.md
#	charts/puris/values.yaml
#	local/docker-compose.yaml
#	local/tractus-x-edc/config/customer/puris-backend.properties
#	local/tractus-x-edc/config/supplier/puris-backend.properties
Copy link
Member

@mhellmeier mhellmeier left a comment

Choose a reason for hiding this comment

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

As described by @tom-rm-meyer-ISST in the description, the changes in this PR based on LOC are minimal. This is due to the autogenerated realm files like this one or this one. Therefore, the actual LOC are under 1000.

To prevent future misinterpretations, it should be checked if these autogenerated files are mentioned in a NOTICE file.

@mhellmeier mhellmeier merged commit 98f1e7d into eclipse-tractusx:main May 21, 2024
13 checks passed
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