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

Tester ut med å spesifisere at det skal være FileAccess Read #127

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

jarleborsheim
Copy link
Contributor

@jarleborsheim jarleborsheim commented Jan 9, 2023

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)

@jarleborsheim jarleborsheim marked this pull request as ready for review January 9, 2023 12:08
@jarleborsheim jarleborsheim merged commit 8596109 into master Jan 9, 2023
@jarleborsheim jarleborsheim deleted the jb/fileaccess-read branch January 9, 2023 14:15
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.

None yet

2 participants