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

Missing External Keyvault configuration for reading Certs #789

Open
andreasisnes opened this issue Aug 26, 2024 · 1 comment
Open

Missing External Keyvault configuration for reading Certs #789

andreasisnes opened this issue Aug 26, 2024 · 1 comment
Assignees
Labels
kind/bug Used when something isn't working

Comments

@andreasisnes
Copy link
Contributor

andreasisnes commented Aug 26, 2024

Description of the bug

Creating platform tokens fails due to missing configuration for the keyvault containing certs.

Steps To Reproduce

Call any endpoints that read certs

Exception

   at System.ArgumentNullException.Throw (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Uri..ctor (System.Private.Uri, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at Altinn.AccessManagement.Integration.Services.KeyVaultService+<GetCertificateAsync>d__0.MoveNext (Altinn.AccessManagement.Integration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: /app/src/Altinn.AccessManagement.Integration/Services/KeyVaultService.cs:20)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Altinn.AccessManagement.Integration.Services.PlatformAuthorizationTokenProvider+<GetAccessToken>d__9.MoveNext (Altinn.AccessManagement.Integration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: /app/src/Altinn.AccessManagement.Integration/Services/PlatformAuthorizationTokenProvider.cs:54)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Altinn.AccessManagement.Integration.Clients.Altinn2RightsClient+<PostDelegation>d__7.MoveNext (Altinn.AccessManagement.Integration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: /app/src/Altinn.AccessManagement.Integration/Clients/Altinn2RightsClient.cs:85)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Altinn.AccessManagement.Core.Services.SingleRightsService+<DelegateRights>d__10.MoveNext (Altinn.AccessManagement.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: /app/src/Altinn.AccessManagement.Core/Services/SingleRightsService.cs:120)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Altinn.AccessManagement.Controllers.RightsInternalController+<Delegation>d__9.MoveNext (Altinn.AccessManagement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: /app/src/Altinn.AccessManagement/Controllers/RightsInternalController.cs:210)

Additional Information

No response

@andreasisnes andreasisnes added the kind/bug Used when something isn't working label Aug 26, 2024
@andreasisnes andreasisnes self-assigned this Aug 26, 2024
@andreasisnes andreasisnes changed the title Missing External Keyh vautl configuration for reading Cert Missing External Keyvault configuration for reading Certs Aug 26, 2024
@andreasisnes andreasisnes moved this from New to 👷In Progress in Team Tilgangsstyring & Kontroll Aug 26, 2024
This was referenced Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Used when something isn't working
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants
@andreasisnes and others