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

feat: compress token before storing in cache to allow for larger tokens to be cached #1047

Merged
merged 13 commits into from
Apr 5, 2024

Conversation

hspitzley-czi
Copy link
Contributor

@hspitzley-czi hspitzley-czi commented Apr 5, 2024

Updates module to use gzip compression for tokens stored in cache to allow for larger tokens to be stored. Tokens are compressed prior to writing to the cache and decompressed after reading from the cache.

@hspitzley-czi hspitzley-czi requested a review from a team as a code owner April 5, 2024 03:28
@hspitzley-czi hspitzley-czi requested a review from jakeyheath April 5, 2024 03:28
@@ -24,7 +24,7 @@ runs:
const path = require("path")
const fs = require("fs")
const changedFiles = ${{ steps.filter.outputs.changed_files }}
const changedDirs = changedFiles.map(f => path.dirname(f))
const changedDirs = changedFiles.map(f => path.dirname(f).split('/')[0])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this it looks in oidc_cli/oidc_impl/cache/ and doesn't find a go mod causing it to not include this as a changes package

@jakeyheath jakeyheath self-requested a review April 5, 2024 16:22
Copy link
Contributor

@jakeyheath jakeyheath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@hspitzley-czi hspitzley-czi merged commit 2cce231 into main Apr 5, 2024
9 checks passed
@hspitzley-czi hspitzley-czi deleted the hspitzley/compress_token branch April 5, 2024 16:45
@czi-github-helper czi-github-helper bot mentioned this pull request Apr 5, 2024
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.

2 participants