Tags: canonical/testflinger
Tags
refactor(cli): add authorization headers to all requests (#1168) * refactor(cli): add custom AuthBase * tests: update unit tests to match current behavior * chore(server): increase access token expiration to 10 minutes * add format * add unit test for new code * add copilot recommendations * add reviewer suggestions
breaking+feature/api lockdown when OIDC enabled (#1169) * feat(dev): add device flow to dex IDP * feat(server): add endpoints for device flow authentication * tests: add unit tests for oidc api * feat(cli): add support for OIDC authentication * tests: add cli tests for oidc flow * chore(server-charm): remove client_secret as required param for OIDC * feat(server): include oidc routes in schema * add copilot review suggestions * fix: add missing fixture * fix: include client_id in payload * first batch of review suggestions * refactor(cli): modify auth order * breaking(server): remove admin and manager undefined expiration * fix: failing unit tests * nitpick * updates to the permissions and existing tests * slight formatting fixes * conftest needs the new utilities file * finalized the updated to the api+roles tests * all tests passing * linting * add exlanation of missing endpoints and a consistency check that guards against forgetting endpoints in the future as they are added. * fix errant debug-left-in-code; changed the secret used in testing to be dynamic * see PR #1171 for the addition of roles to the schema * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: rene-oromtz <157750458+rene-oromtz@users.noreply.github.com> * Update server/src/testflinger/api/v1.py * Update server/src/testflinger/api/v1.py * Update server/src/testflinger/api/v1.py * updates per findings in PR #1169 * fixed lines too long * small enhancement to the syntax for required roles where all roles allowed; updated schema --------- Co-authored-by: Rene Orozco Martinez <rene.orozco@canonical.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: rene-oromtz <157750458+rene-oromtz@users.noreply.github.com>
refactor(agent): add authorization headers to all requests. (#1167) * refactor(agent): add Authorization headers to all requests * tests: update unit tests to match current behavior * chore(agent-charm): reduce token refresh to 3 days * tests: update charm tests to match new expiration * tests: add unit tests for new code * add copilot recommendation * add missing format * nitpick
chore(agent-charm): reduce token refresh to 3 days
feat(server/cli): add IDP authentication via Device Authentication Fl… …ow (#1152) * feat(dev): add device flow to dex IDP * feat(server): add endpoints for device flow authentication * tests: add unit tests for oidc api * feat(cli): add support for OIDC authentication * tests: add cli tests for oidc flow * chore(server-charm): remove client_secret as required param for OIDC * feat(server): include oidc routes in schema * add copilot review suggestions * fix: add missing fixture * fix: include client_id in payload * first batch of review suggestions * refactor(cli): modify auth order * breaking(server): remove admin and manager undefined expiration * fix: failing unit tests * nitpick
chore(deps): update terraform juju to v2 (#1139) breaking(terraform-server): juju provider v2 drops support for 2.9 controllers breaking(terraform-agent): juju provider v2 drops support for 2.9 controllers Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
chore(deps): update terraform juju to v2 (#1139) breaking(terraform-server): juju provider v2 drops support for 2.9 controllers breaking(terraform-agent): juju provider v2 drops support for 2.9 controllers Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
chore(deps): update terraform juju to v2 (#1139) breaking(terraform-server): juju provider v2 drops support for 2.9 controllers breaking(terraform-agent): juju provider v2 drops support for 2.9 controllers Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
PreviousNext