Skip to content

Default client encryption option#82

Open
mrgnw wants to merge 2 commits into
SharzyL:goshujinfrom
mrgnw:default_client_encryption-option
Open

Default client encryption option#82
mrgnw wants to merge 2 commits into
SharzyL:goshujinfrom
mrgnw:default_client_encryption-option

Conversation

@mrgnw

@mrgnw mrgnw commented Jul 28, 2025

Copy link
Copy Markdown

Adds an option to set a DEFAULT_CLIENT_ENCRYPTION in the wrangler.toml to have client encryption enabled by default.

Also adds the option to provide a defaultValue when calling getVar

function getVar(name, defaultValue = undefined) {

@mrgnw

mrgnw commented Jul 28, 2025

Copy link
Copy Markdown
Author

I didn't intend to immediately open a pull request when I created the fork, I can add documentation or more details soon if you like.

Comment thread frontend/vite.config.js
MAX_EXPIRATION: JSON.stringify(getVar("MAX_EXPIRATION")),
DEFAULT_EXPIRATION: JSON.stringify(getVar("DEFAULT_EXPIRATION")),
INDEX_PAGE_TITLE: JSON.stringify(indexTitle),
DEFAULT_CLIENT_ENCRYPTION: getVar("DEFAULT_CLIENT_ENCRYPTION", false),

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Is this robust enough to detect configuration errors? We should give an explicit error if the user is not giving a boolean

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