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

Overhaul tracker keys: option to disable auth key expiration #988

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Aug 1, 2024

When the tracker is running in private mode you can disable checking keys' expiration in the configuration with:

[core]
private = false

[core.private_mode]
check_keys_expiration = false

All keys will be valid as long as they exist in the database.

…ration

When the tracker is running in private mode you can disable checking
keys' expiration in the configuration with:

```toml
[core]
private = false

[core.private_mode]
check_keys_expiration = true
```

All keys will be valid as long as they exist in the database.
@josecelano josecelano self-assigned this Aug 1, 2024
@josecelano josecelano added this to the v3.0.0 milestone Aug 1, 2024
@josecelano josecelano linked an issue Aug 1, 2024 that may be closed by this pull request
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 54.16667% with 22 lines in your changes missing coverage. Please review.

Project coverage is 76.77%. Comparing base (680f642) to head (ed40e4a).

Files Patch % Lines
packages/configuration/src/v2/core.rs 28.57% 15 Missing ⚠️
packages/configuration/src/v2/mod.rs 0.00% 3 Missing ⚠️
src/bootstrap/app.rs 0.00% 2 Missing ⚠️
packages/configuration/src/validator.rs 0.00% 1 Missing ⚠️
src/core/mod.rs 94.11% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #988      +/-   ##
===========================================
- Coverage    76.89%   76.77%   -0.13%     
===========================================
  Files          184      185       +1     
  Lines         9916     9959      +43     
===========================================
+ Hits          7625     7646      +21     
- Misses        2291     2313      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@josecelano josecelano requested a review from da2ce7 August 1, 2024 12:53
@josecelano josecelano force-pushed the 978-overhaul-tracker-keys-option-to-disable-auth-key-expiration branch from 258f732 to ed40e4a Compare August 1, 2024 12:54
@josecelano josecelano marked this pull request as ready for review August 1, 2024 12:55
The section [core.provate_mode] can be inlcuded in the configration TOML
file only if the tracker is running in private mode (`private = true`).

This commits adds that validation and makes it possible to add more
semantic validations in the future.

Semantic validations are validations that depend on more than one value.
Like the one added, it could be any other incompatible combination.
@josecelano josecelano force-pushed the 978-overhaul-tracker-keys-option-to-disable-auth-key-expiration branch from ed40e4a to d7dfc3b Compare August 1, 2024 14:19
@josecelano
Copy link
Member Author

ACK d7dfc3b

@josecelano josecelano merged commit e00feef into torrust:develop Aug 1, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overhaul tracker keys: option to disable auth key expiration
1 participant