]> git.ipfire.org Git - pakfire.git/log
pakfire.git
4 weeks agojob: Create its own type
Michael Tremer [Fri, 27 Jun 2025 14:09:17 +0000 (14:09 +0000)] 
job: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojail: Create its own type
Michael Tremer [Fri, 27 Jun 2025 14:07:38 +0000 (14:07 +0000)] 
jail: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agohttpclient: Create its own type
Michael Tremer [Fri, 27 Jun 2025 14:01:00 +0000 (14:01 +0000)] 
httpclient: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agohasher: Create its own type
Michael Tremer [Fri, 27 Jun 2025 13:59:12 +0000 (13:59 +0000)] 
hasher: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agofile: Create its own type
Michael Tremer [Fri, 27 Jun 2025 13:58:06 +0000 (13:58 +0000)] 
file: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agofilelist: Create its own type
Michael Tremer [Fri, 27 Jun 2025 13:56:00 +0000 (13:56 +0000)] 
filelist: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoenv: Create its own type
Michael Tremer [Fri, 27 Jun 2025 10:47:19 +0000 (10:47 +0000)] 
env: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoelf: Create its own type
Michael Tremer [Fri, 27 Jun 2025 10:46:12 +0000 (10:46 +0000)] 
elf: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodb: Create its own type
Michael Tremer [Fri, 27 Jun 2025 10:45:27 +0000 (10:45 +0000)] 
db: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodaemon: Create its own type
Michael Tremer [Fri, 27 Jun 2025 10:44:25 +0000 (10:44 +0000)] 
daemon: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoconfig: Create its own type
Michael Tremer [Fri, 27 Jun 2025 10:43:18 +0000 (10:43 +0000)] 
config: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agocgroups: Create their own types
Michael Tremer [Fri, 27 Jun 2025 10:41:38 +0000 (10:41 +0000)] 
cgroups: Create their own types

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agobuild: Create its own type
Michael Tremer [Fri, 27 Jun 2025 10:38:09 +0000 (10:38 +0000)] 
build: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agobuilder: Create its own type
Michael Tremer [Fri, 27 Jun 2025 10:35:35 +0000 (10:35 +0000)] 
builder: Create its own type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoarchive: Create a new type for the archive
Michael Tremer [Fri, 27 Jun 2025 10:33:05 +0000 (10:33 +0000)] 
archive: Create a new type for the archive

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoarchive writer: Create a new type for the archive writer
Michael Tremer [Fri, 27 Jun 2025 10:29:21 +0000 (10:29 +0000)] 
archive writer: Create a new type for the archive writer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Create a new type for the client
Michael Tremer [Fri, 27 Jun 2025 10:26:45 +0000 (10:26 +0000)] 
client: Create a new type for the client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoctx: Create a new type for the context
Michael Tremer [Fri, 27 Jun 2025 10:20:11 +0000 (10:20 +0000)] 
ctx: Create a new type for the context

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agopakfire: Rename pakfire_ctx() -> pakfire_get_ctx()
Michael Tremer [Fri, 27 Jun 2025 10:16:20 +0000 (10:16 +0000)] 
pakfire: Rename pakfire_ctx() -> pakfire_get_ctx()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoCLI: Add a function to show the API errors
Michael Tremer [Fri, 27 Jun 2025 10:07:40 +0000 (10:07 +0000)] 
CLI: Add a function to show the API errors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoxfer: Add a function to fetch a useful error from the API
Michael Tremer [Fri, 27 Jun 2025 09:50:39 +0000 (09:50 +0000)] 
xfer: Add a function to fetch a useful error from the API

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoxfer: Remove more dead code
Michael Tremer [Fri, 27 Jun 2025 09:31:20 +0000 (09:31 +0000)] 
xfer: Remove more dead code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Drop the custom build callback
Michael Tremer [Fri, 27 Jun 2025 09:25:48 +0000 (09:25 +0000)] 
client: Drop the custom build callback

It is much easier and more versatile to return the entire raw response
and later maybe add some getter functions.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Tidy up authentication response code
Michael Tremer [Fri, 27 Jun 2025 09:20:35 +0000 (09:20 +0000)] 
client: Tidy up authentication response code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoxfer: Put the API response into a struct
Michael Tremer [Fri, 27 Jun 2025 09:17:06 +0000 (09:17 +0000)] 
xfer: Put the API response into a struct

This will allow us to type a bit less and easily extend this in the
future.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Add a callback when deleting repositories
Michael Tremer [Fri, 27 Jun 2025 09:05:55 +0000 (09:05 +0000)] 
client: Add a callback when deleting repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoxfer: Pass the HTTP status code to the response callback
Michael Tremer [Fri, 27 Jun 2025 08:56:10 +0000 (08:56 +0000)] 
xfer: Pass the HTTP status code to the response callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoxfer: Remove unused code
Michael Tremer [Fri, 27 Jun 2025 08:55:59 +0000 (08:55 +0000)] 
xfer: Remove unused code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoxfer: Remove convenience function to run synchronous API requests
Michael Tremer [Fri, 27 Jun 2025 08:40:39 +0000 (08:40 +0000)] 
xfer: Remove convenience function to run synchronous API requests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Refactor listing repositories
Michael Tremer [Fri, 27 Jun 2025 08:37:08 +0000 (08:37 +0000)] 
client: Refactor listing repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Refactor showing repositories
Michael Tremer [Fri, 27 Jun 2025 08:33:54 +0000 (08:33 +0000)] 
client: Refactor showing repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Refactor deleting repositories
Michael Tremer [Fri, 27 Jun 2025 08:28:27 +0000 (08:28 +0000)] 
client: Refactor deleting repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoCLI: Add a convenience function to run the client
Michael Tremer [Fri, 27 Jun 2025 08:25:53 +0000 (08:25 +0000)] 
CLI: Add a convenience function to run the client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Refactor creating repositories
Michael Tremer [Fri, 27 Jun 2025 08:19:00 +0000 (08:19 +0000)] 
client: Refactor creating repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Implement deleting uploads
Michael Tremer [Fri, 27 Jun 2025 08:07:09 +0000 (08:07 +0000)] 
client: Implement deleting uploads

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Store the access token, too
Michael Tremer [Fri, 27 Jun 2025 07:59:51 +0000 (07:59 +0000)] 
client: Store the access token, too

Initially I thought this would be nonsense because the tokens would be
very short-lived. However, one API request usually does not come alone
and so we would save ourselves a couple of roundtrips with storing the
access token, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agotests: Add tests for JWT
Michael Tremer [Fri, 27 Jun 2025 07:40:17 +0000 (07:40 +0000)] 
tests: Add tests for JWT

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agotests: Fix compiling the testsuite
Michael Tremer [Fri, 27 Jun 2025 07:39:47 +0000 (07:39 +0000)] 
tests: Fix compiling the testsuite

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojwt: Free the decoded payload
Michael Tremer [Fri, 27 Jun 2025 07:19:48 +0000 (07:19 +0000)] 
jwt: Free the decoded payload

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agohttpclient: Allow to configure the progress flags
Michael Tremer [Fri, 27 Jun 2025 07:16:50 +0000 (07:16 +0000)] 
httpclient: Allow to configure the progress flags

This allows us to hide the progress bar when we are running API
requests.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agohttpclient: Automatically launch when the event loop is started
Michael Tremer [Fri, 27 Jun 2025 07:08:45 +0000 (07:08 +0000)] 
httpclient: Automatically launch when the event loop is started

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoxfer: Remove the unused authentication function
Michael Tremer [Thu, 26 Jun 2025 17:55:56 +0000 (17:55 +0000)] 
xfer: Remove the unused authentication function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoxfer: Remove pakfire_xfer_add_param
Michael Tremer [Thu, 26 Jun 2025 17:52:25 +0000 (17:52 +0000)] 
xfer: Remove pakfire_xfer_add_param

We don't send any multipart-encoded form things any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agobuilder: Cleanup the event loop
Michael Tremer [Thu, 26 Jun 2025 17:47:24 +0000 (17:47 +0000)] 
builder: Cleanup the event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoctx: -> self
Michael Tremer [Thu, 26 Jun 2025 17:25:03 +0000 (17:25 +0000)] 
ctx: -> self

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agohttpclient: Remove the loop running check
Michael Tremer [Thu, 26 Jun 2025 17:18:33 +0000 (17:18 +0000)] 
httpclient: Remove the loop running check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoctx: Move the loop running check
Michael Tremer [Thu, 26 Jun 2025 17:16:14 +0000 (17:16 +0000)] 
ctx: Move the loop running check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodaemon: Don't leak the shutdown event
Michael Tremer [Thu, 26 Jun 2025 17:02:58 +0000 (17:02 +0000)] 
daemon: Don't leak the shutdown event

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Implement create builds from the CLI
Michael Tremer [Thu, 26 Jun 2025 16:58:30 +0000 (16:58 +0000)] 
client: Implement create builds from the CLI

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojob: Implement some way to submit the job result
Michael Tremer [Thu, 26 Jun 2025 16:00:41 +0000 (16:00 +0000)] 
job: Implement some way to submit the job result

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojob: Create a directory for the packages
Michael Tremer [Thu, 26 Jun 2025 14:58:38 +0000 (14:58 +0000)] 
job: Create a directory for the packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojob: Upload the log file when a build has finished
Michael Tremer [Thu, 26 Jun 2025 14:50:01 +0000 (14:50 +0000)] 
job: Upload the log file when a build has finished

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojob: Make space to store all upload IDs
Michael Tremer [Thu, 26 Jun 2025 14:49:06 +0000 (14:49 +0000)] 
job: Make space to store all upload IDs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojob: Don't send crash reports any more
Michael Tremer [Thu, 26 Jun 2025 14:33:31 +0000 (14:33 +0000)] 
job: Don't send crash reports any more

This will be merged into the regular finished handler

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojob: Call the finished handler in the main process
Michael Tremer [Thu, 26 Jun 2025 14:30:33 +0000 (14:30 +0000)] 
job: Call the finished handler in the main process

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojob: Write the log file in the parent process
Michael Tremer [Thu, 26 Jun 2025 14:23:43 +0000 (14:23 +0000)] 
job: Write the log file in the parent process

This should put some more things more where they belong which is in the
main process.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agohttpclient: Only use the context's event loop
Michael Tremer [Thu, 26 Jun 2025 14:02:29 +0000 (14:02 +0000)] 
httpclient: Only use the context's event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agohttpclient: Make the termination code clearer
Michael Tremer [Thu, 26 Jun 2025 13:58:05 +0000 (13:58 +0000)] 
httpclient: Make the termination code clearer

We now simply set a flag when we launched the loop ourselves and
automatically terminate once everything is done.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agohttpclient: Automatically detect whether the event loop is running
Michael Tremer [Thu, 26 Jun 2025 13:50:22 +0000 (13:50 +0000)] 
httpclient: Automatically detect whether the event loop is running

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodaemon: Don't leak signal events
Michael Tremer [Thu, 26 Jun 2025 13:25:46 +0000 (13:25 +0000)] 
daemon: Don't leak signal events

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agotests: Make the daemon test compile again
Michael Tremer [Thu, 26 Jun 2025 13:20:19 +0000 (13:20 +0000)] 
tests: Make the daemon test compile again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoclient: Move sending a crash report here
Michael Tremer [Thu, 26 Jun 2025 13:12:22 +0000 (13:12 +0000)] 
client: Move sending a crash report here

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojson: Add a function to add some binary as base64
Michael Tremer [Thu, 26 Jun 2025 13:11:47 +0000 (13:11 +0000)] 
json: Add a function to add some binary as base64

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojson: Add a function to add NULL to an object
Michael Tremer [Thu, 26 Jun 2025 13:11:22 +0000 (13:11 +0000)] 
json: Add a function to add NULL to an object

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodaemon: -> self
Michael Tremer [Thu, 26 Jun 2025 10:02:44 +0000 (10:02 +0000)] 
daemon: -> self

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodaemon: Remove unused header files
Michael Tremer [Thu, 26 Jun 2025 09:59:17 +0000 (09:59 +0000)] 
daemon: Remove unused header files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodaemon: Cleanup setting up the client
Michael Tremer [Thu, 26 Jun 2025 09:58:09 +0000 (09:58 +0000)] 
daemon: Cleanup setting up the client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodaemon: Remove more unused code
Michael Tremer [Thu, 26 Jun 2025 09:49:56 +0000 (09:49 +0000)] 
daemon: Remove more unused code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodaemon: Remove function to fetch the client
Michael Tremer [Thu, 26 Jun 2025 09:48:49 +0000 (09:48 +0000)] 
daemon: Remove function to fetch the client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agojob: Give a reference to the client
Michael Tremer [Thu, 26 Jun 2025 09:47:38 +0000 (09:47 +0000)] 
job: Give a reference to the client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agobuilder: Move the job logic from the daemon
Michael Tremer [Thu, 26 Jun 2025 09:42:44 +0000 (09:42 +0000)] 
builder: Move the job logic from the daemon

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Implement listing uploads asynchronously
Michael Tremer [Wed, 25 Jun 2025 18:19:46 +0000 (18:19 +0000)] 
client: Implement listing uploads asynchronously

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agobuilder: Handle any incoming messages here
Michael Tremer [Wed, 25 Jun 2025 17:34:22 +0000 (17:34 +0000)] 
builder: Handle any incoming messages here

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agobuilder: Reset the correct pointer
Michael Tremer [Wed, 25 Jun 2025 17:32:51 +0000 (17:32 +0000)] 
builder: Reset the correct pointer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agobuilder: Move sending stats
Michael Tremer [Wed, 25 Jun 2025 16:49:35 +0000 (16:49 +0000)] 
builder: Move sending stats

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agobuilder: Move function to send messages into the socket
Michael Tremer [Wed, 25 Jun 2025 16:49:04 +0000 (16:49 +0000)] 
builder: Move function to send messages into the socket

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agojson: Optionally return the length of the serialized string
Michael Tremer [Wed, 25 Jun 2025 16:47:59 +0000 (16:47 +0000)] 
json: Optionally return the length of the serialized string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agodaemon: Remove some unused code
Michael Tremer [Wed, 25 Jun 2025 16:33:16 +0000 (16:33 +0000)] 
daemon: Remove some unused code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agobuilder: Build scaffolding to submit stats regularly
Michael Tremer [Wed, 25 Jun 2025 16:30:31 +0000 (16:30 +0000)] 
builder: Build scaffolding to submit stats regularly

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Don't let the HTTP client think it is running standalone
Michael Tremer [Wed, 25 Jun 2025 16:13:27 +0000 (16:13 +0000)] 
client: Don't let the HTTP client think it is running standalone

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agojob: Use the context's event loop
Michael Tremer [Wed, 25 Jun 2025 15:54:38 +0000 (15:54 +0000)] 
job: Use the context's event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agodaemon: Remove the HTTP client
Michael Tremer [Wed, 25 Jun 2025 15:52:38 +0000 (15:52 +0000)] 
daemon: Remove the HTTP client

This is now all fully merged into the high-level client.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agodaemon: Drop all sorts of timers and what not
Michael Tremer [Wed, 25 Jun 2025 15:51:29 +0000 (15:51 +0000)] 
daemon: Drop all sorts of timers and what not

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Move builder stuff into a separate object
Michael Tremer [Wed, 25 Jun 2025 15:48:48 +0000 (15:48 +0000)] 
client: Move builder stuff into a separate object

This is messy as hell. I moved so much stuff around and lost track of
most of it. So this is a commit to kind of have some baseline.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agocli: Fix initializing the client
Michael Tremer [Wed, 25 Jun 2025 15:48:13 +0000 (15:48 +0000)] 
cli: Fix initializing the client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agohttpclient: Drop unused function to return the event loop
Michael Tremer [Wed, 25 Jun 2025 15:40:39 +0000 (15:40 +0000)] 
httpclient: Drop unused function to return the event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Use the context's event loop
Michael Tremer [Wed, 25 Jun 2025 15:39:17 +0000 (15:39 +0000)] 
client: Use the context's event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agohttpclient: Use the context's loop
Michael Tremer [Wed, 25 Jun 2025 15:36:16 +0000 (15:36 +0000)] 
httpclient: Use the context's loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoctx: Create an event loop
Michael Tremer [Wed, 25 Jun 2025 15:26:46 +0000 (15:26 +0000)] 
ctx: Create an event loop

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agodaemon: Create the control connection as soon as the client is ready
Michael Tremer [Wed, 25 Jun 2025 13:42:52 +0000 (13:42 +0000)] 
daemon: Create the control connection as soon as the client is ready

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Require full authentication when the refresh token has expired
Michael Tremer [Wed, 25 Jun 2025 13:18:19 +0000 (13:18 +0000)] 
client: Require full authentication when the refresh token has expired

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Don't require reauthentication when we have some tokens
Michael Tremer [Wed, 25 Jun 2025 13:17:43 +0000 (13:17 +0000)] 
client: Don't require reauthentication when we have some tokens

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agojwt: Add a convenience function to check whether a token has expires
Michael Tremer [Wed, 25 Jun 2025 13:17:16 +0000 (13:17 +0000)] 
jwt: Add a convenience function to check whether a token has expires

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Refresh auth tokens when a timer fires
Michael Tremer [Wed, 25 Jun 2025 13:09:05 +0000 (13:09 +0000)] 
client: Refresh auth tokens when a timer fires

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Immediately fetch an access token when loading from store
Michael Tremer [Wed, 25 Jun 2025 13:06:20 +0000 (13:06 +0000)] 
client: Immediately fetch an access token when loading from store

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Actually set the auth refresh payload
Michael Tremer [Wed, 25 Jun 2025 13:05:59 +0000 (13:05 +0000)] 
client: Actually set the auth refresh payload

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Move authentication refresh function to the top
Michael Tremer [Wed, 25 Jun 2025 13:01:37 +0000 (13:01 +0000)] 
client: Move authentication refresh function to the top

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Break setting the tokens into helper functions
Michael Tremer [Wed, 25 Jun 2025 12:40:47 +0000 (12:40 +0000)] 
client: Break setting the tokens into helper functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoclient: Read/write credentials of the principal
Michael Tremer [Wed, 25 Jun 2025 12:22:49 +0000 (12:22 +0000)] 
client: Read/write credentials of the principal

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agojson: Add helper function to write JSON data to file
Michael Tremer [Wed, 25 Jun 2025 12:22:20 +0000 (12:22 +0000)] 
json: Add helper function to write JSON data to file

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