Tom Wiesing
473040a69f
Remove environment.Environment struct
...
This commit completely removes the environment struct as it is no longer
used.
2023-03-02 12:52:51 +01:00
Tom Wiesing
3263920d6b
fsx: Remove environment references
...
This commit removes the reference to the environment from the fsx
package.
2023-03-02 11:51:51 +01:00
Tom Wiesing
5a43ecfaeb
pkg/environment: Migrate fs functions to fsx
2023-03-02 11:38:30 +01:00
Tom Wiesing
45540ab253
pkg/environment: Remove some file-based functions
...
This commit removes certain file-based functions from 'pkg/environment',
continuing the migration to entirely remove the package.
2023-03-02 11:15:15 +01:00
Tom Wiesing
39207a1cb5
pkg/environment: Remove 'net' related functions
...
This commit continues removing the environment abstraction and removes
all 'net' related functions, replacing them by their native equivalents.
2023-03-02 11:07:50 +01:00
Tom Wiesing
14bb7f1086
pkg/environment: Remove exec related functions
...
This commit starts the migration to remove the environment package. It
introduced an abstraction that is not being used, and removing it makes
the code simpler to maintain.
This commit removes all 'exec' related package.
2023-03-02 11:03:33 +01:00
Tom Wiesing
aa3580c248
Migrat pkg/password to using pkglib package
2023-02-26 10:24:06 +01:00
Tom Wiesing
010fd536ea
pkg/httpx => github.com/tkw1536/pkglib/httpx
2023-02-26 10:08:17 +01:00
Tom Wiesing
5e89fadeeb
Migrate pkg/lazy => pkglib/{lazy,lifetime}
2023-02-26 10:00:47 +01:00
Tom Wiesing
c3ca8e2974
Move to github.com/tkw1536/pkglib package
...
This commit removes various modules that can be migrated to the
github.com/tkw1536/pkglib package without any code changes (beyond
module renamings).
2023-02-26 09:53:25 +01:00
Tom Wiesing
945329a080
Move to yaml-based configuration
...
This commit updates the configuration to be yaml-based and updates the
configuration to read in a yaml file.
2023-02-25 09:14:56 +01:00
Tom Wiesing
568c005d15
httpx: Remove unuused methods
2023-02-10 12:44:01 +01:00
Tom Wiesing
b1009fa109
Add a logo
2023-02-10 12:01:06 +01:00
Tom Wiesing
2d163a4dad
templating: Rework timers
2023-01-31 12:51:54 +01:00
Tom Wiesing
598de5b289
pools: Add a pool for buffers
2023-01-24 11:04:34 +01:00
Tom Wiesing
a63bb2f669
pkg/pools: Use pool for strings.Builder everywhere
2023-01-24 10:52:15 +01:00
Tom Wiesing
8af2213d5a
pkg/httpx/form: Remove unuused fields
2023-01-24 10:51:39 +01:00
Tom Wiesing
d235ee4e5c
Refactor html templates
...
This commit entirely refactors the use of html templates. Instead of
inheriting from a shared template, we insert the results into a base
template.
2023-01-23 11:41:20 +01:00
Tom Wiesing
bcd1805001
Add SSH Key Management
2023-01-15 19:41:00 +01:00
Tom Wiesing
a00195be16
templates: Add a proper menu and navigation
2023-01-11 14:34:04 +01:00
Tom Wiesing
6f257bd27f
Add a password policy for distillery users
2023-01-10 11:10:38 +01:00
Tom Wiesing
ab9998881b
server: Switch to custom mux
2023-01-10 00:41:53 +01:00
Tom Wiesing
c6f77e86fe
Add autocomplete attribute to forms
2023-01-08 17:16:38 +01:00
Tom Wiesing
97f5ac7e1a
Update grant page
2023-01-07 13:14:43 +01:00
Tom Wiesing
021fc3cc7e
footer: Add a semi-flexible template system
2023-01-06 23:28:02 +01:00
Tom Wiesing
34bdb3cf24
control: Generalize cookie and csrf handling
2023-01-06 18:59:10 +01:00
Tom Wiesing
eb17dbe33f
Refactor CSRF protection
2023-01-06 18:59:10 +01:00
Tom Wiesing
d34e85a18f
Admin: Add user page
2023-01-06 18:59:10 +01:00
Tom Wiesing
785130dc36
Minify html on-the-fly before sending it to users
2023-01-06 18:59:09 +01:00
Tom Wiesing
b3039768af
Update URL routes
2023-01-06 18:59:09 +01:00
Tom Wiesing
b8f1281f78
auth: Refactor home page
2023-01-06 18:59:09 +01:00
Tom Wiesing
2d5b92f464
httpx.Response: Add 'Content-Length' header
2023-01-06 18:59:09 +01:00
Tom Wiesing
b9795be745
Add change password feature
2023-01-06 18:59:09 +01:00
Tom Wiesing
515142c055
auth: Improve login parts
2023-01-06 18:59:08 +01:00
Tom Wiesing
3aa79b0d23
Implement initial login functionality
2023-01-06 18:59:06 +01:00
Tom Wiesing
337a5fbeba
pool: Reddo component-like fields
2022-12-22 13:49:05 +01:00
Tom Wiesing
a590d93e76
environment/exec: Seperate Exec and Wait
2022-12-14 08:53:45 +01:00
Tom Wiesing
52dbfbf56e
Add Cron interval to config
2022-12-07 11:02:44 +01:00
Tom Wiesing
f52fe6abf3
Add cron tasks to distillery
2022-12-07 10:30:48 +01:00
Tom Wiesing
4dc2559431
api/login: Use 'See Other' return code
2022-12-05 14:04:37 +01:00
Tom Wiesing
b86e6294de
ingredient/locker: Unlock even after cancel
2022-12-05 14:01:53 +01:00
Tom Wiesing
6f1ba24761
Update logging behavior
2022-12-01 12:42:04 +01:00
Tom Wiesing
3b78b06fff
wdcli: Use progress writer instead of IOStream
2022-11-30 13:17:12 +01:00
Tom Wiesing
890022ae64
internal: Annotate all components with groups
...
This commit ensures that the compiler has to check every component
against the groups they implement by explicitly annotating the
appropriate interfaces.
2022-11-30 11:08:46 +01:00
Tom Wiesing
3455f491ca
Add context
...
This commit adds and passes context around to (almost) every function.
This allows cancelling (almost) every function call globally.
2022-11-29 15:32:31 +01:00
Tom Wiesing
996ecb9f80
Implement user password checking
2022-11-25 15:11:28 +01:00
Tom Wiesing
8e2d2cce3e
httpx: Add new redirect
2022-11-24 14:19:17 +01:00
Tom Wiesing
55d5c9c529
config: Handle errors better
2022-11-23 15:27:58 +01:00
Tom Wiesing
3fada6ad38
Move status into a seperate package
2022-11-18 08:40:44 +01:00
Tom Wiesing
4752c0fcec
Make SSH_PORT configurable
2022-11-17 09:43:01 +01:00