• 0.0.1-rc.0 393b1af830

    0.0.1-rc.0 Pre-Release

    wanderer released this 2023-08-05 16:04:07 +02:00 | 94 commits to development since this release

    Changelog

    • 31e8683 MiddlewareSession: simplify logic
    • 574693e add .air.toml [skip ci]
    • 4dfb7a7 add .golangci.yml [skip ci]
    • fee253b add .pre-commit-config.yaml,readme badge [skip ci]
    • ac7c1ae add TODOs [skip ci]
    • b78fc99 add application that handles basic config
    • f129606 add bulk changes
    • 1fcee6c add support for goreleaser [skip ci]
    • 547f6e7 add user creation
    • 97ea29d add user listing
    • c762bc1 air: build in app version [skip ci]
    • 24b62da air: don't rebuild on tmpl changes [skip ci]
    • 798f245 air: run in devel mode [skip ci]
    • 8bcb133 air: thoroughly ignore node_modules [skip ci]
    • e651235 air: update config [skip ci]
    • bef3cb2 app(logger): restore the old behaviour
    • 61760fa app/assets.go: add info on what path failed
    • 61ec8bf app: add routes_test.go
    • 741af20 app: call logger consistently
    • 5b63997 app: clarify log msg [skip ci]
    • ba869f9 app: handle global debug mode better
    • 9fd55db app: pre-declare errors
    • 9bbfbe9 app: set debug lvl also to gommon Echo logger
    • 3439ec7 app: set devel mode earlier
    • 38f7282 app: switch a couple of Info statements to Debug
    • 733f232 banner: add moar bling
    • 532934b browserSync: update what gets watched [skip ci]
    • 631013c chore: bump js deps
    • 771dc0d chore: bump npm deps
    • 8e06a87 chore: bump npm deps
    • 3328d0b chore: bump npm deps
    • 8622539 chore: clean up app pkg
    • 2533529 chore: clean up handlers pkg
    • dc0ce9b chore: clean up run.go
    • 066d5da chore: rm empty app/config.go [skip ci]
    • 02ba8bc ci,containerfile: bump golang to 1.20.6
    • 6ebf092 ci,just,pre-commit: add Containerfile
    • b33a9cf ci: add .drone.ci
    • 77a5f19 ci: add golangci-lint|godocs pipeline
    • 3250069 ci: bump curl to 8.2.0
    • 092a8c1 ci: bump golanci-lint to v1.53.3
    • 2a56ba3 ci: bump golang to 1.20.4
    • 2c3b41a ci: bump golang to 1.20.5-alpine3.18
    • 18adb45 ci: make frontend depend on pull
    • 1f427ab ci: rename 'npm i' to 'frontend'
    • fe9fd0f ci: rm vet,fmt from os pipelines
    • 48e3c49 ci: run tests sooner
    • f3b6075 ci: set GOPATH on arch to make use of caching
    • 613bb0d ci: use dedicated runners
    • dfdcc77 conf: add pretty printing,raw conf, conf tests
    • 70ec7f5 config: add fields
    • 1dc22cb config: add schemaCompatibility
    • 7eb13cf config: also take into account PCMT_DEVEL
    • ac4cc4a config: expand comment [skip ci]
    • 3a86905 config: rename LoadConfig to Load
    • 7d1c65e config: rename dir testconfigs to testdata
    • bfafc4a config: update schema
    • d9265ca config: use new form + add example [skip ci]
    • a053103 config: use the in-house logger
    • 4ceb19f containerfile: build pcmt with -trimpath [skip ci]
    • f53953e containerfile: install npm, gen stylesheet
    • ad6bcac css: stage the tailwind-built file
    • 258c6ac devenv: bump nixpkgs to 4a56ce9
    • 68b97f2 devenv: bump to latest nixpkgs
    • 44025cc dhall: create a package for config [skip ci]
    • f8df3f3 dhall: switch to using the versioned config
    • fcd723d dockerignore: add node_modules [skip ci]
    • 813d0c2 echo settings: enable rate-limiting
    • 0125bff embed: add specificity
    • 744090a enable erasing ENVs
    • e58c15f ent: add HIBP model
    • 78774ac errorPage.tmpl: increase msg font size
    • c205c5d errorPage.tmpl: update appearance [skip ci]
    • 6ce05ea feat: add initial admin user creation
    • 3a2f85f feat: add license headers (+spdx id)
    • 9eb8111 feat: bump configuration schema to 0.0.1-rc.2
    • ef6ef17 feat: don't compare pcmt.css in ci
    • 7256007 fix justfile: trimpaths -> trimpath [skip ci]
    • 0c835d0 fix(config.dhall): correct the port range
    • ecd3330 fix(just): mount actual data folder [skip ci]
    • 1ba95c3 fix(run.go): use a non-blocking channel receive
    • be17097 fix(session panic): check if nil before use
    • bde8cfc fix: properly redirect /static/* to /assets/*
    • 258d9a5 fix: set develMode again
    • 30347cd gitignore: ignore vim sessions [skip ci]
    • d99d86a go(app): use embedded variable value
    • 852cc60 go(funcmap): add sha384,sha512 funcs
    • aa63daf go(handlers): add bluemonday HTML sanitiser
    • 46cc1d6 go(handlers): split get,set funcMap funcs
    • 72723d9 go(refactor): clean up run.go
    • 094a478 go(settings): add const defaults
    • fb74533 go(settings): add domain fallback
    • e941e73 go(settings): expose default server timeouts
    • 4ccec78 go(settings): improve function docs [skip ci]
    • 416012f go(user_test): add explicit FailNow()
    • 8e25f30 go,containerfile: fix embedding version, add flag
    • ae5c4f1 go,tmpl: add usr details listing
    • eafc9c1 go,tmpl: conditionally show content to users
    • 1655d6b go: /static -> /assets in varnames,routes,dirs
    • eb555cf go: add + use sessionMaxAge
    • d5ed25f go: add a TODO [skip ci]
    • 5937a24 go: add a handler for admin endpoint(s)
    • c945c9f go: add a method to setup routes
    • f1bb52c go: add a setting val for whether db is set up
    • ffc9b74 go: add a simple caching middleware for assets
    • 6194f36 go: add app struct bearing e,logger; own startup
    • b1ab686 go: add db module for preps/checks
    • 1b2679a go: add generate mechanism for frontend
    • 2559092 go: add getters for Session{Auth,Encr}IsHex
    • 7cf26a7 go: add importFlag
    • 11de8de go: add local breach data schema
    • ed14e45 go: add more tests (+return instead of exit)
    • 345838c go: add secure middleware
    • c4d0cb2 go: add settings struct
    • 4de0576 go: add some more startup checks for DB
    • 593454d go: add user email handling + improve sessions
    • 5f85489 go: add usr updating [wip]
    • 32aa8d8 go: add+enable compression middleware
    • 0a34bca go: allow choosing db type, setting connstr
    • 64f330b go: bump deps
    • 9ac8810 go: change how logger is initialised
    • adeb6f5 go: create funcmap,bluemonday modules
    • edf720b go: create proper (non-string) ctx key in user pkg
    • fc4460d go: delete pertinent ENVs after loading settings
    • 672132a go: die even more reliably on error
    • 5cf5ba5 go: enable HEAD method for some routes
    • 6937eb7 go: explicitly close chan
    • 118c34d go: fix csrf issues
    • ff68a7d go: fix port default,flag handling
    • aadb409 go: fully switch to slogging
    • f728a97 go: handle SIGINT gracefully
    • 9ab2d0a go: handle host+port combinations,shutdown better
    • 1359750 go: handle long running shutdowns better
    • 1d42146 go: have a dynamic {asset,tmpl}Path
    • dbd0e9d go: implement session auth middleware
    • 9dbc475 go: implement the Echo renderer for templates
    • 5cfad66 go: make StartupSettings a method
    • 746eb82 go: make sure flags are properly checked
    • a879704 go: partially rework how slogging works
    • c4f8cf8 go: redirect signed users from / to /home
    • df0c280 go: redo asset handling
    • 2215383 go: refactor handlers
    • 122ea63 go: refactor template rendering
    • 85fe3d4 go: replace deprecated 'ioutil' imports by 'os'
    • 8c7c84f go: rm deadcode from app/routes.go
    • a2c1769 go: save,verify a bcrypt hash of the passwd
    • 044ed58 go: set global default {read,write} timeouts
    • 8cc43bb go: switch to a custom slog-based logging solution
    • 172703a go: use '__Host' prefix with the csrf cookie
    • 0a5d4e7 go: use enttest in tests
    • 695039e handlers(echo): use c.Bind in sign{in,up}
    • e0a7656 handlers(types): add validation
    • e2a29fa handlers,tmpl: render+log signin better errors
    • 864e2ec handlers.go: change msg log level
    • f80e060 handlers/home: redirect w/ 303 instead of 301
    • a385b19 handlers/home: render success with StatusOK
    • 468e20d handlers/index: refactor to use c.Render
    • f00b5bd handlers: add a TODO [skip ci]
    • b77c2fe handlers: add func addHeaders
    • 31ab083 handlers: add health-check endpoints
    • 608b095 handlers: clean up
    • 58c9446 handlers: clean up deadcode
    • 773b10e handlers: handle err on redirects
    • 847d4aa handlers: rename helper.go -> error.go
    • 4dad751 handlers: rm pages.go [skip ci]
    • 6ba0998 handlers: set cookie with SameSiteStrictMode
    • ff252df handlers: streamline SignupPost
    • 555bc65 handlers: update error handling
    • 50c3c93 head.tmpl: add Content Security Policy meta attr
    • 9c6fd89 head.tmpl: add referrer meta element
    • 82bc22e head.tmpl: use canonical /assets to avoid redirect
    • afc9740 healthz: use proper JSON
    • 1f8bbf7 home.tmpl: simplify layout
    • ce70bbe index.tmpl: credit gopher design
    • 7ff8aa9 initial commit
    • 5a1ec4f js: correct the commands [skip ci]
    • 17540bf just(svgo): look for tmpls in subdirs [skip ci]
    • 874cdce just,pre-commit: fix typos [skip ci]
    • 6c061fb just: add db{start,stop} targets [skip ci]
    • 279514f just: add prod target [skip ci]
    • 7b5366d just: fix db init args [skip ci]
    • f23ec56 just: fix svgo tgt by not quoting * [skip ci]
    • 9159cc3 just: make sure the db folder exists [skip ci]
    • 395ab70 just: run db with --replace [skip ci]
    • 6c47b6e just: run pg with user namespaces [skip ci]
    • 723c3fe justfile: add db init args [skip ci]
    • f33f87f justfile: add pg healthchecking
    • ecfa845 justfile: enable SELinux labelling for pg volume
    • 73ad9ad justfile: fix typo [skip ci]
    • b1c926b justfile: foolproof+document targets [skip ci]
    • 6bd3b28 log: add Debugf method
    • 9b22ec3 log: allow setting log level dynamically
    • 269c63c log: return logger on Init
    • 3c240d3 manage/user.tmpl: add CreatedAt column [skip ci]
    • fd9d1e1 manage/user.tmpl: change title style [skip ci]
    • faefe3b mod/user: add check for when usr is not found
    • 5a3ce50 mod/user: don't print out the raw usr object
    • 4f23021 mod/user: rewrite some if statements as switches
    • 0ac668d mod/usr: fix typo [skip ci]
    • e8ac4e3 modules/funcmap: add funcs to calculate SRI hashes
    • c6896bd modules/password: simplify return
    • cca2b36 navbar: fix background
    • 13b9c3b navbar: reduce the top gap + persist topside
    • 7bfa6a6 navbar: stretch to larger screen sizes
    • bb4854c nix: add devenv
    • c6378d7 pass logger ctx under key 'l'
    • e09d395 pre-commit: add go-fumpt hook [skip ci]
    • ee98ace pre-commit: rm gofumpt hook
    • 16be42a pre-commit: run golangci-lint
    • f8bfad1 readme: add custom config section [skip ci]
    • 7c200b7 readme: add goreportcard|godocs labels [skip ci]
    • 298e838 readme: add instructions on running pcmt [skip ci]
    • 774aa74 readme: add logo [skip ci]
    • af87336 readme: add pods example [skip ci]
    • 11b28e3 readme: fixes and corrections [skip ci]
    • d1c05a9 readme: update instructions [skip ci]
    • 23bd5df readme: update link to logo [skip ci]
    • 0490786 refactor(handlers): break out signin funcs
    • ce383b5 refactor: mv ctx to a later point
    • 393b1af release 0.0.1-rc.0
    • d83a4bb rename app/startup.go to app/echoSettings.go
    • 3cb2da4 routes: change 303 -> 301 for /static -> /assets
    • b537360 run.go: add license flag
    • c1e2384 run.go: make use of the ok chan
    • 9972551 run: improve config load err message
    • 355f09b set embeds early to prevent nil pointer derefs
    • 3cacea8 signin.go: change login failed msg
    • 9429870 signin.tmpl: change msg [skip ci]
    • 946360e signin.tmpl: reorder attrs [skip ci]
    • d89314e signup.tmpl:signify input field validity [skip ci]
    • 62e038f simplify: funcMap member func
    • 06c2c79 singin.tmpl: improve form
    • 1fb7479 slogger: rename Logger to Slogger
    • e442386 slogging: add a default if unknown level is set
    • 63e5a86 slogging: clean up deadcode
    • e122e26 templates(navbar): condition the link target
    • 4f69728 templates: align footer with the main container
    • 0efb419 tmpl,just: process SVGs with svgo
    • 33c9b8a tmpl: fix 500 on logout
    • 15918d4 tmpls: set required attr for form fields
    • 1d1e09e update .editorconfig [skip ci]
    • e5980b1 update TODOs [skip ci]
    • 1f11b71 user-mgmt: clear err messages + page rendering
    • 653ff23 user_details.tmpl: add email field [skip ci]
    • 61af0eb user_details.tmpl: add label padding
    • f7bcc20 user_details.tmpl: don't capitalise debug msgs
    Downloads