Commit graph

141 commits

Author SHA1 Message Date
James Hodgkinson 6e755543b3
another book round (#1933) 2023-08-02 20:27:46 +10:00
James Hodgkinson 4292f94ecd
trying again (#1931) 2023-08-02 18:14:49 +10:00
James Hodgkinson ea4d755d7b
chasing weirdness (#1910)
* security headers, fixing error on empty username, handling login without SPN better

* making deno happy

* cleaning up windows build
2023-07-31 10:49:59 +10:00
James Hodgkinson 0293234d3c
bumping action version (#1908) 2023-07-28 10:48:37 +10:00
micolous 73e6e11cd2
Refactor docker_build_kanidm to be more isolated (v13) (#1872) 2023-07-18 09:03:04 +10:00
dependabot[bot] 5862f3a8d0
chore(deps): bump actions/upload-pages-artifact from 1 to 2 (#1855)
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 1 to 2.
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/upload-pages-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-16 20:38:24 +00:00
micolous 0bd7c5be20
Revert "something something token permissions (#1850)" (#1852)
This reverts commit 06e85f9747.
2023-07-13 15:30:43 +10:00
James Hodgkinson 06e85f9747
something something token permissions (#1850) 2023-07-13 12:20:20 +10:00
James Hodgkinson 749522418c
headless webdriver testing, starting on brotli feature (#1844)
* headless chromedriver testing
* updating build scripts
2023-07-10 16:49:09 +10:00
James Hodgkinson 3e4c8f6241
Fixing the kanidmd healthcheck (#1789)
* fixing the health check
* fixing pages while I am here
* flipping options like I flip burgers
* using the config-supplied cert
2023-06-28 19:41:24 +10:00
James Hodgkinson 69dfea3601
Still trying to fix the docs. (#1709)
* docs build/deploy fixes
* let us see if this makes the automerge less bad
2023-06-28 10:34:17 +10:00
James Hodgkinson cc1cc691f3
Started chasing noise, found some code to delete... (#1768)
logging changes:

* Offering auth mechanisms -> debug
* 404's aren't really warnings
* double tombstone message, one goes to debug

other changes:

* CSP changes to allow the bootstrap images to load
* more testing javascriptfile things, I R 
* it's nice to know where things are
* putting non-rust web things in static/ instead of src/
* RequestCredentials::SameOrigin is the default, also adding a utility function to save dupe code. Wow this saved... kilobytes.
* removing commented code, fixing up codespell config
* clippyisms
* wtf, gha
* dee-gloo-ing some things
* adding some ubuntu build test things
* sigh rustwasm/wasm-pack/issues/1138
* more do_request things
* packaging things
* hilarious dev env setup script
* updated script works, all the UI works, including the experimental UI for naughty crabs
* deb package fixes
* fixed some notes
* setup experimental UI tweaks
2023-06-27 11:38:22 +10:00
James Hodgkinson e18699bda5
Documentation root directory 404 (#1706)
Fixes #1680 - yeet
2023-06-06 07:32:13 +10:00
James Hodgkinson dc418ff351
#1680 redux - trying to fix docs again (#1692)
* Documentation root directory 404
Refers to #1680
* trying to fix this again
2023-06-05 12:06:24 +00:00
James Hodgkinson 2e62a72a09
Documentation root directory 404 (#1681)
Refers to #1680
2023-06-03 19:44:03 +10:00
James Hodgkinson 7da1fd4879
Adding mdbook-template back for bookgen (#1660)
* adding mdbook-template back
2023-05-29 10:21:08 +10:00
James Hodgkinson fb519dabad
fixing get-tags-action in book build (#1657) 2023-05-26 16:36:46 +10:00
James Hodgkinson fcab605320
Time travelling (#1648)
* yeet the time package into the future (updating min time version to 0.3.21)
* CI change to catch web ui builds in future, updating SCIM requirements
* removing allow deprecated flag
* making references to rfc3339 formatter shorter
* clippyisms
* fmt
2023-05-25 08:25:16 +10:00
James Hodgkinson 0476448305
github pages ... something is definitely going weird. (#1605)
* fixing typo and dupe command
2023-05-07 20:52:13 +10:00
James Hodgkinson 1ab0909f30
token permissions! (#1604) 2023-05-07 19:42:16 +10:00
James Hodgkinson 5d54069e7d
Using github actions might actually push a change (#1603)
* Using github actions might actually push a change

* skip if not actually going to deploy

* Don't setup Pages if we aren't deploying

* skip deploy when not deploying
2023-05-07 12:44:30 +10:00
James Hodgkinson e6d23f1f4c
looks like that's a bug (#1602) 2023-05-06 23:55:14 +10:00
James Hodgkinson 06a8b30566
fix things (#1601) 2023-05-06 23:38:53 +10:00
James Hodgkinson d22dc28698
reducing action concurrency load (#1598)
* reducing action concurrency load
* fixing up ruff syntax
* fixes
2023-05-06 22:54:05 +10:00
James Hodgkinson 42dd8ee0a9
more testing cleanup (#1595)
* more testing cleanup
* path fixings for main deploy phase of the book, refers to #1597
2023-05-06 18:20:47 +10:00
James Hodgkinson 6b0d1bacd8
Document that you need to tell Nginx or other proxies to use HTTP 1.1… (#1592)
* Document that you need to tell Nginx or other proxies to use HTTP 1.1 or later - Fixes #1591
* fixing workflows
2023-05-05 21:08:54 +10:00
James Hodgkinson af01301acd
sccache github actions fixes (#1593)
* specifying version per https://github.com/Mozilla-Actions/sccache-action/issues/41#issuecomment-1531365155
2023-05-04 18:40:00 +10:00
micolous 850a985692
use sccache, merge "test" actions into "build", remove homebrew caching (#1578)
* use sccache, merge "test" actions into "build", remove homebrew caching
* rename some actions, make windows build in debug mode to be consistent with tests
* run CI on Windows for pull requests, only upload to releases for the correct repo
* Don't need rust on ubuntu-latest
2023-04-27 22:35:24 +10:00
James Hodgkinson ec8e5dfc31
more-merge unixd commands (#1568)
* fixing unix packaging
* stripping out actions-rs/toolchain
* fixing an error in the qrcode def in cargo.toml
2023-04-25 22:36:17 +10:00
dependabot[bot] 643e68a20a
chore(deps): bump actions/upload-artifact from 1 to 3 (#1557)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 1 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-23 20:57:46 +00:00
James Hodgkinson 90d4fe1d58
Sorting documentation builds (#1551)
* updating pykanidm to fix mypy issue
* removing mdbook-template requirement
2023-04-18 21:35:40 +10:00
James Hodgkinson 5962e12cbb
changing from merge to squash (#1521) 2023-04-03 22:43:07 +10:00
James Hodgkinson fa905a60d5
fixing up auto-merge (#1519) 2023-04-03 21:56:58 +10:00
James Hodgkinson 7a3b176c18
Adding an auto-merger for dependabot updates (#1486) 2023-03-28 09:11:36 +10:00
Firstyear e33beea89d
1399 cleanup cli docs (#1413)
* Cleanup cli args
* Update book
* Update wasm
* making the CI happy


---------

Co-authored-by: James Hodgkinson <james@terminaloutcomes.com>
2023-03-02 12:47:23 +10:00
dependabot[bot] d6dac938a6
chore(deps): bump docker/build-push-action from 3 to 4 (#1360) 2023-02-13 15:08:07 +01:00
Yuxuan Lu 251feac7cb
Fix debian build path (#1331)
* Update CONTRIBUTORS
* Fix debian & ubuntu packaging
* Use standard way to install pam config
* Fix simple_pkg.sh & add pam nss instructions
* Merge ssh with unixd; update CI to build for multiple os versions; upload packages to artifacts
2023-01-25 09:45:55 +10:00
James Hodgkinson 964853dd0d
making the robots easier and happier (#1343) 2023-01-24 09:38:19 +10:00
James Hodgkinson 421344c347
less lint more bark, ruff ruff (#1341) 2023-01-23 19:56:49 +10:00
James Hodgkinson b8dcb47f93
Spell checking and stuff (#1314)
* codespell run and spelling fixes
* some clippying
* minor fmt fix
* making yamllint happy
* adding codespell github action
2023-01-10 13:50:53 +10:00
Jan Christoph Ebersbach fd8afa065f
docs: reformat book and introduce workflow to ensure it stays formatted (#1286) 2022-12-27 08:52:03 +10:00
dependabot[bot] 5dd69fa989
Bump jetli/wasm-pack-action from 0.3.0 to 0.4.0 (#1231)
Bumps [jetli/wasm-pack-action](https://github.com/jetli/wasm-pack-action) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/jetli/wasm-pack-action/releases)
- [Commits](https://github.com/jetli/wasm-pack-action/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: jetli/wasm-pack-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 08:18:36 +10:00
James Hodgkinson 74765bab63
fixing up automation (#1230)
* concurrency fail
* dependency fail
2022-11-23 23:30:38 +10:00
dependabot[bot] 9c37160f8b
Bump actions/dependency-review-action from 2 to 3 (#1187)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 2 to 3.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 08:58:47 +10:00
James Hodgkinson 9196807fdb
Workflow tweaks (#1186)
* let's cache some stuff
2022-11-14 08:57:05 +10:00
James Hodgkinson 048aa0dfb5
Fixing a derp (#1089) 2022-10-07 19:03:25 +10:00
James Hodgkinson 48451150aa
Resolving WASM build issues (#1099)
* removing deflate because it is just shit gzip
2022-10-07 15:42:13 +10:00
James Hodgkinson f0caec57a2
Python updoots (#1081) 2022-09-29 10:08:15 +10:00
James Hodgkinson 446e06d5f6
Fixing the CI failures (#1080) 2022-09-28 10:31:19 +10:00
James Hodgkinson 5c5b2d6c94
Initial admin UI things (#1044)
* wireframed up the admin menu and components
* banner-shaped yak shaving
* making some nicer messages in the cert script
* removing wee_alloc
* adding admin_groups ui
* adding oauth2 basics
* added group view page
* changing to expect_throw
* serde-wasm-bindgen fixes
* adding view person and view service account basics
* adding basic testy things
* dropping breadcrumbs all over the place
* minor changes to oauth2 admin interface, adding automation around wasm testing
2022-09-20 14:23:54 +10:00
dependabot[bot] 99b7d8e297
Bump docker/setup-qemu-action from 1 to 2 (#1059)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-19 07:27:52 +10:00
dependabot[bot] 353af9bd5d
Bump docker/setup-buildx-action from 1 to 2 (#1060)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-19 07:27:38 +10:00
dependabot[bot] 6d0f10d65a
Bump docker/login-action from 1 to 2 (#1061)
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-19 07:27:24 +10:00
James Hodgkinson 9ca7993397
fixing up the automation tooling (#1027) 2022-09-08 16:40:58 +10:00
James Hodgkinson 4d3e3765bd
Version argument for kanidm and kanidmd (#991) 2022-08-18 10:36:45 +10:00
James Hodgkinson f0e96b9ff5
Published 0.0.3 of kanidm python module (#995)
* kanidm python 0.0.3
2022-08-17 21:35:06 +10:00
James Hodgkinson 60f9541cdd
RADIUS fixes (#942)
* actually writing cert files properly now
* Updated readme with config file, fixed check for config file.
* minor tweaks to actions, removing job limits and skipping login to registry if not going to push
* removing old config.ini file
* temporarily adding Williams fixed package
2022-07-22 13:04:36 +10:00
James Hodgkinson b249747e55
.deb packaging config and scripting (#920)
* working on debian builds again
* github actions tweaks
* fixed a ref in the build script
* updating makefile targets to include build profile env
* updates to docs and makefiles
2022-07-20 17:21:40 +10:00
James Hodgkinson d2ea936b16
Domain Display Name (#872) 2022-07-07 13:03:08 +10:00
James Hodgkinson 9cf4e180dc
one day james, one day. (#907) 2022-07-06 13:04:08 +10:00
James Hodgkinson fedc21ddca
Windows build support (#903)
`kanidmd` builds and runs in Windows now. Currently skipping file permissions checks on startup, but it's tested OK on a Windows 10 box.
2022-07-06 10:53:43 +10:00
dependabot[bot] b34e0b05eb
Bump actions/setup-python from 2 to 4 (#900)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 17:40:37 +10:00
dependabot[bot] 24a9d5ca0d
Bump docker/build-push-action from 2 to 3 (#899)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 17:34:23 +10:00
dependabot[bot] dd973eb0ec
Bump actions/checkout from 2 to 3 (#898)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 17:33:53 +10:00
dependabot[bot] 897faeb4fc Bump actions/dependency-review-action from 1 to 2
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 1 to 2.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 02:32:11 +00:00
James Hodgkinson f664971acf
Building kanidm cli in docker, disabling ARM kanidmd (#879)
* adding kanidm image and config
* removing npm deps from build and dockerfiles
* moving to a non-root user in the dockerfile
2022-07-05 11:39:38 +10:00
James Hodgkinson dc42bd9ee8
Package Updates 2022-06-20 (#848)
* updates to a bunch of packages
* fixing an unforced error which only github actions cared about
* stopping docker build on pushes to not-master
2022-06-21 10:16:00 +10:00
James Hodgkinson 805ac2dd16
Python module and rewritten RADIUS integration (#826)
* added python kanidm module
* rewrote RADIUS integration
* updated the documentation
* updating github actions to run more often
* BLEEP BLOOP ASYNCIO IS GR8
* adding config to makefile to run pykanidm tests

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Firstyear <william@blackhats.net.au>
2022-06-20 20:16:55 +10:00
James Hodgkinson 0d510baebb
Updating build profiles for containers (#811) 2022-06-05 15:30:47 +10:00
James Hodgkinson 7d27612174
Windows automagical buildingtons (#798)
* windows build automation
* making fmt happy, fixing windows-related bug
* disabled cargo_incremental when using `sccache`, added build options ARG to Dockerfile, limit docker build to one job
2022-05-31 14:13:21 +10:00
James Hodgkinson c8a1b7b605
fixing up typo and tagging on docker build (#751) 2022-05-17 20:57:09 +10:00
James Hodgkinson 5dc17c0c74
Dockerized containerybuilds (#741)
* let us see if we can dockerize this crab
2022-05-08 13:00:34 +10:00
James Hodgkinson 475ada3d6c
Docs updates to push all tagged versions + dev (#720)
* docs magic
* more docs magic
* did I mention I really dislike YAML?
* updatey scripty boopydoopy
* lock docs down to master
* put the symlinked versions up the top of the list
* updated readme
2022-04-28 13:45:48 +10:00
James Hodgkinson 0aa0163ced
Fixes 710 - limit github actions runs based on source (#717)
* breaking workflows out, adding clippy
* adding dependency review
2022-04-27 13:02:54 +10:00
James Hodgkinson 58fb559262
Docs build cleanup for #646 (#647)
* moving docs build to makefile
2022-03-10 08:55:44 +10:00
James Hodgkinson 18aa4e0525
removing book runs on pull_request (#537) 2021-07-24 18:20:36 +10:00
James Hodgkinson a621cbc6a7
Fixing #521 - Documenting the server role (#535) 2021-07-24 15:00:08 +10:00
James Hodgkinson 6ff74c976e
Auto-publishing the book and rustdoc. (#534) 2021-07-24 11:12:35 +10:00
James Hodgkinson 7994ec24d8
fixing broken action (#405)
* fixing broken action

* seems you need passwordless sudo in this here container
2021-04-13 11:02:46 +10:00
William Brown a008ca3cf1 Follow up on ci fixes 2020-12-08 17:33:27 +10:00
Pando85 c554a0ce03 Update CI base image to ubuntu 20.04
Unit tests were failing cause sqlite version is 3.22 and `ubuntu-latest`
was poiting to Ubuntu 18.04. Also remove libssl because it is included.
2020-12-08 10:54:53 +10:00
Pando85 bdf5d20f8a Add libudev to ci
Tests were broken cause authenticator library needs it.
2020-12-08 10:54:53 +10:00
Firstyear 4bed9c87bf
Improve errors, tagging, logging and more across the codebase. (#243) 2020-06-05 14:01:20 +10:00
Firstyear 923cf6c0f8
99 p3 clean up sensitive log data (#239)
Fix logging of potentially sensitive data.

* Disable docker automation
2020-05-29 18:13:54 +10:00
Pando85 2670b6ae83 CI update all kanidm component version and tag
Add make entry to have all cargo versions updated from VERSION file.
Add `tag_version` github action to update all cargo.toml and tag it and
push it.
Remove cargo fmt check from CI because we have problems with different
versions and fails continually. Instead, we use cargo-husky to ensure
that all people run it automatically in its local, but this is not
obligatory.
Update to version 1.0.0-rc10, according to packages published.

In future cargo will support managing all dependencies from main
Cargo.toml. Ref: https://github.com/rust-lang/cargo/issues/3931

Resolve #225
2020-05-13 15:56:44 +10:00
Pando85 8a4d524d54 Apply cargo fmt and docker images fix wrong target 2020-05-12 08:18:46 +10:00
Pando85 7687791466 Merge docker image github actions into unique
Use matrix and Makefile to build both images in the same workflow.

Kanidmd image remove muslc version and come back to SUSE version because
performance problems.

Also fix a typo bug with kanidmd image build on CI.
2020-05-07 12:37:14 +10:00
Pando85 c2f77a47f3 Create light images with static binaries
- Change base builder image to `ekidd/rust-musl-builder` for create static
binaries.
- Add two flavours: alpine and stand alone binary.
- Add makefile commands for build, test and push kanidmd images and
  refactor previous code.
- Add missing things to `.dockerignore`.
- Refactor CI to use Makefile.
2020-05-06 11:07:01 +10:00
Pando85 d6acffd869 Fix sqlite fails in CI tests and fmt error
Add `libsqlite3-sys` crate to avoid sqlite3 missmatching version.

From [https://lib.rs/crates/libsqlite3-sys](https://lib.rs/crates/libsqlite3-sys)
> If you use the bundled feature, libsqlite3-sys will use the cc crate to compile SQLite from source and link against that. This source is embedded in the libsqlite3-sys crate and is currently SQLite 3.30.1 (as of rusqlite 0.21.0 / libsqlite3-sys 0.17.0). This is probably the simplest solution to any build problems.

Remove sqlite OS packages dependencies for build.

Also, we fix a format error to allow CI tests to pass again.
2020-05-06 10:16:26 +10:00
Pando85 b75f433293 Fix: change image names to go to kanidm repository 2020-04-27 16:03:37 +10:00
Pando85 911b5983aa Add github actions:
- Add linter with `cargo fmt`
- Add tests
- Add kanidmd docker build
- Add kanidm_rlm_python docker build
- Fix kanidm_unix_int format to pass tests
2020-04-27 15:01:56 +10:00