]>
git.ipfire.org Git - pbs.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>