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

fix(offersubscription): suppress activation of external serviceaccounts on activation of offersubscription #864

Conversation

ntruchsess
Copy link
Contributor

@ntruchsess ntruchsess commented Jul 23, 2024

Description

the query that retrieves the to-be-activated-on-keycloak service-accounts is being restricted to return service-accounts of CompanyServiceAccountKindId.INTERNAL only and the subscription is not being activated.

Why

on activation of an autosetup-offersubscription that includes the creation of external (dim-) serviceaccounts the process-step ACTIVATE_SUBSCRIPTION tries to activate all serviceaccounts on keycloak. this includes the external-serviceaccounts that do not exist on keycloak which results in an error 'clientId not found in central keycloak'

Issue

#856

Checklist

Please delete options that are not relevant.

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally
  • I have added tests that prove my changes work
  • I have checked that new and existing tests pass locally with my changes

@ntruchsess ntruchsess changed the title bug(offersubscription): suppress activation of external serviceaccounts on activation of offersubscription fix(offersubscription): suppress activation of external serviceaccounts on activation of offersubscription Jul 23, 2024
@evegufy evegufy changed the base branch from main to release/v2.1.0-RC2 July 23, 2024 14:57
@ntruchsess ntruchsess force-pushed the bugfix/856-activate-internal-serviceaccounts branch from 2dbef51 to 280838b Compare July 23, 2024 15:30
@ntruchsess ntruchsess requested a review from evegufy July 23, 2024 15:31
@ntruchsess ntruchsess marked this pull request as ready for review July 23, 2024 15:32
Copy link

sonarcloud bot commented Jul 23, 2024

@evegufy evegufy merged commit 0abdd08 into eclipse-tractusx:release/v2.1.0-RC2 Jul 24, 2024
11 checks passed
@evegufy evegufy deleted the bugfix/856-activate-internal-serviceaccounts branch July 24, 2024 05:36
Phil91 pushed a commit that referenced this pull request Jul 26, 2024
ntruchsess added a commit that referenced this pull request Jul 29, 2024
ntruchsess added a commit that referenced this pull request Jul 29, 2024
* fix(apps): remove leading '/' from the activate subscription endpoint (#861)
Refs: #856
* bug(offersubscription): suppress activation of external serviceaccounts in keycloak on subscription-activation (#864)
Refs: #856
* fix(dim): fix callback logic for dim requests (#863)
Refs: #862
chore(dependencies): bump efcore to 8.0.7 (#857)
* increase efcore version to latest 8.0.7 to resolve security-issue in transitive dependency in System.Text.Json
* fix(offersubscription): skip optional autosetupprovidercallback  if it is not configured (#865)
* add clientPrefix  to workers appsettings (#870)
* fix: enhance subscription/provider endpoint with external Service data (#867)
Refs: #841
* fix(sdDoc): set process step to skipped if ClearinghouseConnectDisabled is true (#874)
Refs: #792
* build(deps): bump MimeKit from 4.3.0 to 4.7.1 (#833)
eclipse-tractusx/portal#369
* build(deps): bump MimeKit from 4.3.0 to 4.7.1 in /tests/endtoend
Bumps MimeKit from 4.3.0 to 4.7.1.
---
updated-dependencies:
- dependency-name: MimeKit
  dependency-type: direct:production
...
* chore: upgrade mimekit in sendmail project
* chore: update dependencies file
---------
* upgrade implicit dependencies on System.Text.Json (#875)
* Serilog.Settings.Configuration to 8.0.2
* remove redundant dependencies on Microsoft.Extensions.Hosting
* bump framework version to 2.4.2 after merge of main
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Norbert Truchsess <norbert.truchsess@t-online.de>
Co-authored-by: Phil Schneider <info@philschneider.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evelyn Gurschler <evelyn.gurschler@bmw.de>
Reviewed-By: Evelyn Gurschler <evelyn.gurschler@bmw.de>
Reviewed-By: Norbert Truchsess <norbert.truchsess@t-online.de>
Reviewed-By: Phil Schneider <info@philschneider.de>
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.

2 participants