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

Serve app index with legacy tier policy #3

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Conversation

DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Jan 30, 2024

Implement Nethesis Enterprise / Subscription tier policy for the app index file (repodata.json)

Anonymous / Invalid auth clients access the latest snapshot.

If a client provides valid HTTP Basic authentication it is assigned to a tier (0, 1 or 2).

  • Tier 0 has access to a snapshot with age 3 days or above
  • Tier 1 has access to a snapshot with age 4 days or above
  • Tier 2 has access to a snapshot with age 5 days or above

Snapshot are taken every Friday at 21:00 UTC

The resulting update policy is similar to the NS7 one, and is valid for DNF/RPM contents too.

See NethServer/dev#6835

The "default" repository with the index of NS8 applications is added to
the snapshot contents, together with Rocky Linux RPMs and DNF metadata.
Three tiers, with a weighted distribution of systems (10%, 20%, 70%)
based on a systemd_id hashing function.

Systems must provide their credentials with HTTP Basic authentication.

Serve the /distfeed/repodata.json file.
@DavidePrincipi DavidePrincipi self-assigned this Jan 30, 2024
@DavidePrincipi DavidePrincipi marked this pull request as ready for review January 31, 2024 18:20
@DavidePrincipi DavidePrincipi merged commit 651bf79 into main Feb 1, 2024
1 check passed
@DavidePrincipi DavidePrincipi deleted the feat-6835 branch February 1, 2024 09:47
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