feat(crypter): remove full-fledged age with simple RSA encryption. #176

Merged
bihe merged 1 commit from self_crypto into main 2025-08-02 17:22:11 +00:00
bihe commented 2025-08-02 17:17:06 +00:00 (Migrated from github.com)

Could not use age directly, because the RAM usage was too much for my containers. Having age as a dependency and doing encryption/decryption accumulated up to 500M of RAM which is just too much.

Could not use age directly, because the RAM usage was too much for my containers. Having age as a dependency and doing encryption/decryption accumulated up to 500M of RAM which is just too much.
codecov-commenter commented 2025-08-02 17:19:55 +00:00 (Migrated from github.com)

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Patch coverage is 67.63754% with 100 lines in your changes missing coverage. Please review.
Project coverage is 47.00%. Comparing base (5d9de97) to head (f93d9b4).

Files with missing lines Patch % Lines
internal/common/crypter/encryption_aes.go 64.10% 28 Missing and 14 partials ⚠️
internal/core/web/templateHandler_crypter.go 47.05% 16 Missing and 2 partials ⚠️
internal/core/web/html/page_crypter.go 0.00% 14 Missing ⚠️
internal/common/crypter/service.go 74.19% 6 Missing and 2 partials ⚠️
pkg/security/jwtauthorization.go 78.78% 5 Missing and 2 partials ⚠️
internal/core/router.go 0.00% 6 Missing ⚠️
internal/common/crypter/encryption_pdf.go 88.00% 2 Missing and 1 partial ⚠️
internal/core/server.go 0.00% 2 Missing ⚠️
Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #176      +/-   ##
==========================================
+ Coverage   46.83%   47.00%   +0.17%     
==========================================
  Files          84       86       +2     
  Lines        6878     6999     +121     
==========================================
+ Hits         3221     3290      +69     
- Misses       3454     3494      +40     
- Partials      203      215      +12     

View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
:warning: Please install the !['codecov app svg image'](https://github.com/codecov/engineering-team/assets/152432831/e90313f4-9d3a-4b63-8b54-cfe14e7ec20d) to ensure uploads and comments are reliably processed by Codecov. ## [Codecov](https://app.codecov.io/gh/bihe/monorepo/pull/176?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) Report :x: Patch coverage is `67.63754%` with `100 lines` in your changes missing coverage. Please review. :white_check_mark: Project coverage is 47.00%. Comparing base ([`5d9de97`](https://app.codecov.io/gh/bihe/monorepo/commit/5d9de978e3d40646af8e5f981bea684ca840fffd?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl)) to head ([`f93d9b4`](https://app.codecov.io/gh/bihe/monorepo/commit/f93d9b4418f3a5fbcfb26097353c2cc614595fba?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl)). | [Files with missing lines](https://app.codecov.io/gh/bihe/monorepo/pull/176?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | Patch % | Lines | |---|---|---| | [internal/common/crypter/encryption\_aes.go](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&filepath=internal%2Fcommon%2Fcrypter%2Fencryption_aes.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl#diff-aW50ZXJuYWwvY29tbW9uL2NyeXB0ZXIvZW5jcnlwdGlvbl9hZXMuZ28=) | 64.10% | [28 Missing and 14 partials :warning: ](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | | [internal/core/web/templateHandler\_crypter.go](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&filepath=internal%2Fcore%2Fweb%2FtemplateHandler_crypter.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl#diff-aW50ZXJuYWwvY29yZS93ZWIvdGVtcGxhdGVIYW5kbGVyX2NyeXB0ZXIuZ28=) | 47.05% | [16 Missing and 2 partials :warning: ](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | | [internal/core/web/html/page\_crypter.go](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&filepath=internal%2Fcore%2Fweb%2Fhtml%2Fpage_crypter.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl#diff-aW50ZXJuYWwvY29yZS93ZWIvaHRtbC9wYWdlX2NyeXB0ZXIuZ28=) | 0.00% | [14 Missing :warning: ](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | | [internal/common/crypter/service.go](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&filepath=internal%2Fcommon%2Fcrypter%2Fservice.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl#diff-aW50ZXJuYWwvY29tbW9uL2NyeXB0ZXIvc2VydmljZS5nbw==) | 74.19% | [6 Missing and 2 partials :warning: ](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | | [pkg/security/jwtauthorization.go](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&filepath=pkg%2Fsecurity%2Fjwtauthorization.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl#diff-cGtnL3NlY3VyaXR5L2p3dGF1dGhvcml6YXRpb24uZ28=) | 78.78% | [5 Missing and 2 partials :warning: ](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | | [internal/core/router.go](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&filepath=internal%2Fcore%2Frouter.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl#diff-aW50ZXJuYWwvY29yZS9yb3V0ZXIuZ28=) | 0.00% | [6 Missing :warning: ](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | | [internal/common/crypter/encryption\_pdf.go](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&filepath=internal%2Fcommon%2Fcrypter%2Fencryption_pdf.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl#diff-aW50ZXJuYWwvY29tbW9uL2NyeXB0ZXIvZW5jcnlwdGlvbl9wZGYuZ28=) | 88.00% | [2 Missing and 1 partial :warning: ](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | | [internal/core/server.go](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&filepath=internal%2Fcore%2Fserver.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl#diff-aW50ZXJuYWwvY29yZS9zZXJ2ZXIuZ28=) | 0.00% | [2 Missing :warning: ](https://app.codecov.io/gh/bihe/monorepo/pull/176?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl) | :exclamation: Your organization needs to install the [Codecov GitHub app](https://github.com/apps/codecov/installations/select_target) to enable full functionality. <details><summary>Additional details and impacted files</summary> ```diff @@ Coverage Diff @@ ## main #176 +/- ## ========================================== + Coverage 46.83% 47.00% +0.17% ========================================== Files 84 86 +2 Lines 6878 6999 +121 ========================================== + Hits 3221 3290 +69 - Misses 3454 3494 +40 - Partials 203 215 +12 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/bihe/monorepo/pull/176?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl). :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Henrik+Binggl). <details><summary> :rocket: New features to boost your workflow: </summary> - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems. </details>
Sign in to join this conversation.
No description provided.