Tester ut med å spesifisere at det skal være FileAccess Read #127
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.
Pga dette problemet med mountet filer som readonly i k8s:
[2023-01-09 12:04:14.754 +00:00] [Information] [] [] - Starter subscription - ExectueAsync
Unhandled exception. System.UnauthorizedAccessException: Access to the path XXXX is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.FileStream..ctor(String path, FileMode mode)
at KS.Fiks.IO.Client.Asic.AsicSigningCertificateHolderFactory.Create(String publicKeyPath, String privateKeyPath)
at KS.Fiks.IO.Client.Asic.AsicSigningCertificateHolderFactory.Create(AsiceSigningConfiguration configuration)
at KS.Fiks.IO.Client.FiksIOClient..ctor(FiksIOConfiguration configuration, ICatalogHandler catalogHandler, IMaskinportenClient maskinportenClient, ISendHandler sendHandler, IDokumentlagerHandler dokumentlagerHandler, IAmqpHandler amqpHandler, HttpClient httpClient, IPublicKeyProvider publicKeyProvider, IAsicEncrypter asicEncrypter)
at KS.Fiks.IO.Client.FiksIOClient..ctor(FiksIOConfiguration configuration, HttpClient httpClient, IPublicKeyProvider publicKeyProvider)
at KS.Fiks.IO.Client.FiksIOClient.CreateAsync(FiksIOConfiguration configuration, HttpClient httpClient, IPublicKeyProvider publicKeyProvider)