]> git.ipfire.org Git - pbs.git/log
pbs.git
2 years agoevents: Reorder the view to make it easier to extend
Michael Tremer [Thu, 13 Oct 2022 10:01:16 +0000 (10:01 +0000)] 
events: Reorder the view to make it easier to extend

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoevents: Create a unified way to query for any events
Michael Tremer [Thu, 13 Oct 2022 09:50:40 +0000 (09:50 +0000)] 
events: Create a unified way to query for any events

This might result in a temporary monster view, but I hope that the
optimiser is smart enough to avoid running any unncessary parts.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilds: Fix rendering comments
Michael Tremer [Thu, 13 Oct 2022 09:50:10 +0000 (09:50 +0000)] 
builds: Fix rendering comments

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilds: Add dummy function to add watchers
Michael Tremer [Thu, 13 Oct 2022 09:31:01 +0000 (09:31 +0000)] 
builds: Add dummy function to add watchers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilds: Drop obsolete update state logic
Michael Tremer [Thu, 13 Oct 2022 09:26:30 +0000 (09:26 +0000)] 
builds: Drop obsolete update state logic

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilds: Refactor comments
Michael Tremer [Thu, 13 Oct 2022 09:04:08 +0000 (09:04 +0000)] 
builds: Refactor comments

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilders: Drop unused password hashing functions
Michael Tremer [Thu, 13 Oct 2022 08:40:32 +0000 (08:40 +0000)] 
builders: Drop unused password hashing functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoDrop all all history stuff
Michael Tremer [Thu, 13 Oct 2022 08:36:07 +0000 (08:36 +0000)] 
Drop all all history stuff

This is too complicated to maintain

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilds: Refactor watchers
Michael Tremer [Wed, 12 Oct 2022 18:09:52 +0000 (18:09 +0000)] 
builds: Refactor watchers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Check whether we can add a watcher to a build
Michael Tremer [Wed, 12 Oct 2022 17:54:38 +0000 (17:54 +0000)] 
tests: Check whether we can add a watcher to a build

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Create build from source package
Michael Tremer [Wed, 12 Oct 2022 17:51:00 +0000 (17:51 +0000)] 
tests: Create build from source package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Test importing a source package
Michael Tremer [Wed, 12 Oct 2022 17:40:50 +0000 (17:40 +0000)] 
tests: Test importing a source package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Add some tests for builds
Michael Tremer [Wed, 12 Oct 2022 17:31:22 +0000 (17:31 +0000)] 
tests: Add some tests for builds

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilds: Add check to prevent building binary packages
Michael Tremer [Wed, 12 Oct 2022 17:30:57 +0000 (17:30 +0000)] 
builds: Add check to prevent building binary packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Add tests for builders
Michael Tremer [Wed, 12 Oct 2022 17:19:08 +0000 (17:19 +0000)] 
tests: Add tests for builders

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobackend: Stop reading the system configuration file
Michael Tremer [Wed, 12 Oct 2022 17:09:35 +0000 (17:09 +0000)] 
backend: Stop reading the system configuration file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobackend: Drop reading any configuration from the environment
Michael Tremer [Wed, 12 Oct 2022 17:05:53 +0000 (17:05 +0000)] 
backend: Drop reading any configuration from the environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfig: Move basepath into [global] section
Michael Tremer [Wed, 12 Oct 2022 17:02:46 +0000 (17:02 +0000)] 
config: Move basepath into [global] section

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodatabase: Setup correct logging
Michael Tremer [Wed, 12 Oct 2022 16:58:51 +0000 (16:58 +0000)] 
database: Setup correct logging

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agologging: Correctly set up loggers for all submodules
Michael Tremer [Wed, 12 Oct 2022 16:57:10 +0000 (16:57 +0000)] 
logging: Correctly set up loggers for all submodules

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agohub: Use the root logger (which is set up by tornado)
Michael Tremer [Wed, 12 Oct 2022 16:56:39 +0000 (16:56 +0000)] 
hub: Use the root logger (which is set up by tornado)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agologging: Correctly setup backend logger
Michael Tremer [Wed, 12 Oct 2022 16:47:34 +0000 (16:47 +0000)] 
logging: Correctly setup backend logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilds: Fix fetching builds by ID
Michael Tremer [Wed, 12 Oct 2022 16:37:13 +0000 (16:37 +0000)] 
builds: Fix fetching builds by ID

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilds: Avoid extra query when fetching builds by UUID
Michael Tremer [Wed, 12 Oct 2022 16:35:48 +0000 (16:35 +0000)] 
builds: Avoid extra query when fetching builds by UUID

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Fix directory listing
Michael Tremer [Wed, 12 Oct 2022 16:35:35 +0000 (16:35 +0000)] 
tests: Fix directory listing

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Enable the default distro for some architectures
Michael Tremer [Wed, 12 Oct 2022 16:25:33 +0000 (16:25 +0000)] 
tests: Enable the default distro for some architectures

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Create default objects in a single database transaction
Michael Tremer [Wed, 12 Oct 2022 16:23:33 +0000 (16:23 +0000)] 
tests: Create default objects in a single database transaction

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Add tests for packages
Michael Tremer [Wed, 12 Oct 2022 16:17:57 +0000 (16:17 +0000)] 
tests: Add tests for packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Add an archive file
Michael Tremer [Wed, 12 Oct 2022 15:57:23 +0000 (15:57 +0000)] 
tests: Add an archive file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Fix logger
Michael Tremer [Wed, 12 Oct 2022 15:43:23 +0000 (15:43 +0000)] 
repos: Fix logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agouploads: Make sure the parent directory exists
Michael Tremer [Wed, 12 Oct 2022 15:41:42 +0000 (15:41 +0000)] 
uploads: Make sure the parent directory exists

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Add tests for uploads
Michael Tremer [Wed, 12 Oct 2022 15:41:26 +0000 (15:41 +0000)] 
tests: Add tests for uploads

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Create a default test user
Michael Tremer [Wed, 12 Oct 2022 15:38:02 +0000 (15:38 +0000)] 
tests: Create a default test user

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobackend: Take a basepath
Michael Tremer [Wed, 12 Oct 2022 15:19:43 +0000 (15:19 +0000)] 
backend: Take a basepath

The entire filesystem structure will be based on this path, so that we
will be able to create test environments which we can easily destroy
again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Test writing repositories
Michael Tremer [Wed, 12 Oct 2022 14:53:25 +0000 (14:53 +0000)] 
tests: Test writing repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Check default repository
Michael Tremer [Wed, 12 Oct 2022 14:48:58 +0000 (14:48 +0000)] 
tests: Check default repository

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Create some basic objects during setup
Michael Tremer [Wed, 12 Oct 2022 14:46:14 +0000 (14:46 +0000)] 
tests: Create some basic objects during setup

This is easier than the on-demand initialization for async objects

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Add some basic repo tests
Michael Tremer [Wed, 12 Oct 2022 14:41:12 +0000 (14:41 +0000)] 
tests: Add some basic repo tests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Add tests for distros
Michael Tremer [Wed, 12 Oct 2022 14:27:02 +0000 (14:27 +0000)] 
tests: Add tests for distros

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodistros: Implement creating new distros
Michael Tremer [Wed, 12 Oct 2022 14:24:46 +0000 (14:24 +0000)] 
distros: Implement creating new distros

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Flush the test configuration to disk
Michael Tremer [Wed, 12 Oct 2022 14:20:48 +0000 (14:20 +0000)] 
tests: Flush the test configuration to disk

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopo: Remove location from all source files
Michael Tremer [Wed, 12 Oct 2022 13:56:40 +0000 (13:56 +0000)] 
po: Remove location from all source files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoMakefile: Automatically update POTFILES.in
Michael Tremer [Wed, 12 Oct 2022 13:54:45 +0000 (13:54 +0000)] 
Makefile: Automatically update POTFILES.in

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotest: Add scaffolding for a testsuite for the backend
Michael Tremer [Wed, 12 Oct 2022 13:46:23 +0000 (13:46 +0000)] 
test: Add scaffolding for a testsuite for the backend

I suppose it is very hard to test the frontend part, but that is not the
highest priority.

It would already be very helpful to test the backend parts.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfig: Make distro optional
Michael Tremer [Wed, 12 Oct 2022 13:44:17 +0000 (13:44 +0000)] 
config: Make distro optional

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobackend: Use the general configparser
Michael Tremer [Wed, 12 Oct 2022 13:43:52 +0000 (13:43 +0000)] 
backend: Use the general configparser

SafeConfigParser has been deprecated.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodb: Dump schema without any owner information
Michael Tremer [Wed, 12 Oct 2022 13:36:05 +0000 (13:36 +0000)] 
db: Dump schema without any owner information

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobackend: Move composing a Pakfire configuration file into its own class
Michael Tremer [Wed, 12 Oct 2022 10:48:23 +0000 (10:48 +0000)] 
backend: Move composing a Pakfire configuration file into its own class

This will help us to create consistent configuration files for Pakfire
and since this is now a context manager class, we will be able to
quickly jump into a local instance to execute any tasks.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Use configparser to create configuration
Michael Tremer [Wed, 12 Oct 2022 10:47:17 +0000 (10:47 +0000)] 
repos: Use configparser to create configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackages: Store digest in binary format
Michael Tremer [Tue, 11 Oct 2022 11:31:56 +0000 (11:31 +0000)] 
packages: Store digest in binary format

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoauth: Don't send server response for websocket handlers
Michael Tremer [Mon, 10 Oct 2022 13:34:22 +0000 (13:34 +0000)] 
auth: Don't send server response for websocket handlers

WebSocket connections don't allow us to set any headers and we cannot
validate them on the client side either.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoauth: Allow to configure only authenticating builders
Michael Tremer [Mon, 10 Oct 2022 13:33:52 +0000 (13:33 +0000)] 
auth: Allow to configure only authenticating builders

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojobs: Export any keys to the builders
Michael Tremer [Thu, 6 Oct 2022 18:47:54 +0000 (18:47 +0000)] 
jobs: Export any keys to the builders

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Add key URL to repository configuration
Michael Tremer [Thu, 6 Oct 2022 18:40:38 +0000 (18:40 +0000)] 
repos: Add key URL to repository configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agokeys: Create some decent repr()
Michael Tremer [Thu, 6 Oct 2022 18:36:30 +0000 (18:36 +0000)] 
keys: Create some decent repr()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Automatically rotate keys
Michael Tremer [Thu, 6 Oct 2022 18:36:16 +0000 (18:36 +0000)] 
repos: Automatically rotate keys

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agokeys: Add convenience function to determine whether a key has expired
Michael Tremer [Thu, 6 Oct 2022 17:51:07 +0000 (17:51 +0000)] 
keys: Add convenience function to determine whether a key has expired

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agokeys: Add scaffolding for revocation
Michael Tremer [Thu, 6 Oct 2022 17:39:16 +0000 (17:39 +0000)] 
keys: Add scaffolding for revocation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Make keys mandatory for all repositories
Michael Tremer [Thu, 6 Oct 2022 17:34:38 +0000 (17:34 +0000)] 
repos: Make keys mandatory for all repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Redirect to the right place after creating a repo
Michael Tremer [Thu, 6 Oct 2022 17:32:13 +0000 (17:32 +0000)] 
repos: Redirect to the right place after creating a repo

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepositories: Generate a new own key
Michael Tremer [Thu, 6 Oct 2022 17:31:38 +0000 (17:31 +0000)] 
repositories: Generate a new own key

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoRevert "distros: Add a key to each distribution"
Michael Tremer [Thu, 6 Oct 2022 16:11:14 +0000 (16:11 +0000)] 
Revert "distros: Add a key to each distribution"

This reverts commit ce83dae7b3208e10cc11496a816343d49ad1e377.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoRevert "users: Add a key for each user"
Michael Tremer [Thu, 6 Oct 2022 16:10:35 +0000 (16:10 +0000)] 
Revert "users: Add a key for each user"

This reverts commit ab655b6c25393e0e2f6e55ac9939e48fe11aaa86.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Create a key for each repository
Michael Tremer [Thu, 6 Oct 2022 14:41:15 +0000 (14:41 +0000)] 
repos: Create a key for each repository

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agokeys: Add a dummy function to create subkeys
Michael Tremer [Thu, 6 Oct 2022 14:41:01 +0000 (14:41 +0000)] 
keys: Add a dummy function to create subkeys

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Add a key for each user
Michael Tremer [Thu, 6 Oct 2022 14:40:42 +0000 (14:40 +0000)] 
users: Add a key for each user

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodistros: Add a key to each distribution
Michael Tremer [Thu, 6 Oct 2022 14:39:56 +0000 (14:39 +0000)] 
distros: Add a key to each distribution

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodb: Update schema for new keys
Michael Tremer [Thu, 6 Oct 2022 14:38:27 +0000 (14:38 +0000)] 
db: Update schema for new keys

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Make creating a new repository an async operation
Michael Tremer [Thu, 6 Oct 2022 14:12:51 +0000 (14:12 +0000)] 
repos: Make creating a new repository an async operation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agokeys: Drop any frontend stuff for keys
Michael Tremer [Thu, 6 Oct 2022 14:10:26 +0000 (14:10 +0000)] 
keys: Drop any frontend stuff for keys

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agokeys: Refactor generating keys
Michael Tremer [Thu, 6 Oct 2022 14:01:58 +0000 (14:01 +0000)] 
keys: Refactor generating keys

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobackend: Allow creating Pakfire instances without any configuration
Michael Tremer [Thu, 6 Oct 2022 13:39:23 +0000 (13:39 +0000)] 
backend: Allow creating Pakfire instances without any configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agokeys: Refactor reading them from the database
Michael Tremer [Thu, 6 Oct 2022 10:18:36 +0000 (10:18 +0000)] 
keys: Refactor reading them from the database

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Move any extra permissions into the users table
Michael Tremer [Thu, 6 Oct 2022 10:10:57 +0000 (10:10 +0000)] 
users: Move any extra permissions into the users table

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Make the permissions model more similar to the other objects
Michael Tremer [Thu, 6 Oct 2022 10:06:55 +0000 (10:06 +0000)] 
users: Make the permissions model more similar to the other objects

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomirrors: Introduce permissions model
Michael Tremer [Thu, 6 Oct 2022 10:06:21 +0000 (10:06 +0000)] 
mirrors: Introduce permissions model

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agokeys: Introduce permissions model
Michael Tremer [Thu, 6 Oct 2022 10:00:35 +0000 (10:00 +0000)] 
keys: Introduce permissions model

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilders: Introduce permission model
Michael Tremer [Thu, 6 Oct 2022 09:55:34 +0000 (09:55 +0000)] 
builders: Introduce permission model

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackages: Drop critical path property
Michael Tremer [Thu, 6 Oct 2022 09:48:54 +0000 (09:48 +0000)] 
packages: Drop critical path property

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Refactor editing profiles
Michael Tremer [Thu, 6 Oct 2022 09:37:22 +0000 (09:37 +0000)] 
users: Refactor editing profiles

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Drop impersonation template
Michael Tremer [Wed, 5 Oct 2022 17:12:17 +0000 (17:12 +0000)] 
users: Drop impersonation template

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Refactor deleting users
Michael Tremer [Wed, 5 Oct 2022 17:11:16 +0000 (17:11 +0000)] 
users: Refactor deleting users

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Refactor listing
Michael Tremer [Wed, 5 Oct 2022 16:45:12 +0000 (16:45 +0000)] 
users: Refactor listing

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Activate all users by default
Michael Tremer [Wed, 5 Oct 2022 16:23:56 +0000 (16:23 +0000)] 
users: Activate all users by default

This is acceptable since we have SSO.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Drop ldap_dn attribute
Michael Tremer [Wed, 5 Oct 2022 16:20:23 +0000 (16:20 +0000)] 
users: Drop ldap_dn attribute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Drop stuff to (re-)activate any user accounts
Michael Tremer [Wed, 5 Oct 2022 16:18:09 +0000 (16:18 +0000)] 
users: Drop stuff to (re-)activate any user accounts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Destroy any sessions when the user is being deleted
Michael Tremer [Wed, 5 Oct 2022 16:14:59 +0000 (16:14 +0000)] 
users: Destroy any sessions when the user is being deleted

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Drop password recovery code attribute
Michael Tremer [Wed, 5 Oct 2022 16:12:24 +0000 (16:12 +0000)] 
users: Drop password recovery code attribute

We won't need this here any more since we are moving towards a SSO
solution.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agousers: Drop passphrase attribute from database
Michael Tremer [Wed, 5 Oct 2022 16:10:40 +0000 (16:10 +0000)] 
users: Drop passphrase attribute from database

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuilders: Drop passphrase
Michael Tremer [Wed, 5 Oct 2022 16:07:12 +0000 (16:07 +0000)] 
builders: Drop passphrase

Builders are now being authenticated using Kerberos.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agohub: Drop unused imports
Michael Tremer [Wed, 5 Oct 2022 15:59:19 +0000 (15:59 +0000)] 
hub: Drop unused imports

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agohub: Do not constantly try to dispatch any jobs
Michael Tremer [Wed, 5 Oct 2022 15:58:09 +0000 (15:58 +0000)] 
hub: Do not constantly try to dispatch any jobs

This is kind of verbose, and we should be able to trigger this whenever
we need it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agohub: Send JSON document for /test handler
Michael Tremer [Wed, 5 Oct 2022 15:57:39 +0000 (15:57 +0000)] 
hub: Send JSON document for /test handler

The client can only handle JSON and we do not have any reason to change
that.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agohub: Reindent handlers
Michael Tremer [Wed, 5 Oct 2022 15:57:25 +0000 (15:57 +0000)] 
hub: Reindent handlers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agohub: Require builders and users to authenticate using Kerberos
Michael Tremer [Wed, 5 Oct 2022 14:37:41 +0000 (14:37 +0000)] 
hub: Require builders and users to authenticate using Kerberos

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoweb: Use Kerberos authentication for users
Michael Tremer [Wed, 5 Oct 2022 10:27:32 +0000 (10:27 +0000)] 
web: Use Kerberos authentication for users

This introduces that users can use Kerberos to authenticate against the
web server, or fall back to HTTP Basic authentication which will in turn
contact the Kerberos servers.

After the initial authentication, a session cookie will be sent to the
browser as usual.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoldap: Fix whitespace errors
Michael Tremer [Wed, 5 Oct 2022 10:26:17 +0000 (10:26 +0000)] 
ldap: Fix whitespace errors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoldap: Call correct function to fetch a user by UID
Michael Tremer [Wed, 5 Oct 2022 10:25:44 +0000 (10:25 +0000)] 
ldap: Call correct function to fetch a user by UID

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoldap: Search for all persons in the database
Michael Tremer [Wed, 5 Oct 2022 10:25:19 +0000 (10:25 +0000)] 
ldap: Search for all persons in the database

Not only those who have a POSIX account.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfigure: Depend on Python kerberos
Michael Tremer [Wed, 5 Oct 2022 10:24:11 +0000 (10:24 +0000)] 
configure: Depend on Python kerberos

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>