Altinn / altinn-file-scan

Microservice for handling file scan
MIT License
0 stars 0 forks source link

Implement caching of certificate in function #52

Closed acn-sbuad closed 1 month ago

acn-sbuad commented 1 year ago

Description

Currently a new access token is generated for each time a new function instance starts. This is affecting the performance of the filescan workflow. We should investigate how we can cache the access token inbetween function instances or look into alternative ways to authorize the request to the filescan component.

Caching of certificate should be 1 hour Also check that we cache the AccessToken. Should also be cached for 1 hour.

Additional Information

This change has already been done in Events functions.

Tasks

Acceptance Criterias

acn-sbuad commented 1 month ago

Image

reduction in interactions with certificates in KV.