Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extended reservation checks in the server #428

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

val500
Copy link
Contributor

@val500 val500 commented Dec 10, 2024

Description

This PR adds support for extended reservation times in Testflinger Server. Certain users need longer reservation times than the maximum 6 hours, so this provides this ability for authorized clients. The server rejects jobs with higher than 6 hours of requested reservation time if they do not provide credentials or if their credentials do not provide them the authorization. The authentication flow is similar to that of job priority and restricted queues.

Resolved issues

Resolves https://warthogs.atlassian.net/browse/CERTTF-458

Documentation

Documentation was added to the docs/ folder.

Web service API changes

No new endpoints, but jobs that have longer than 6 hours requested of reservation times will be rejected without prior authorization.

Tests

Unit tests were added to test_v1_authorization.py

@val500 val500 marked this pull request as draft December 10, 2024 18:25
@plars
Copy link
Collaborator

plars commented Dec 12, 2024

@val500 It looks pretty straightforward so far, but of course needs documentation. Not sure you intended it to be ready for review yet since it's not filled in and marked though.

@val500 val500 requested a review from plars December 12, 2024 22:36
@val500 val500 marked this pull request as ready for review December 12, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants