8000 fix: template: enforce bounds of template max_ttl by johnstcn · Pull Request #3662 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: template: enforce bounds of template max_ttl #3662

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

Merged
merged 8 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add migration to enforce template max_ttl 7-day cap
  • Loading branch information
johnstcn committed Aug 24, 2022
commit c14aadd4f701334a9875173dacb40a10cd8b365f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- this is a no-op
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Set a cap of 7 days on template max_ttl
UPDATE templates SET max_ttl = 604800000000000 WHERE max_ttl > 604800000000000;
0