public inbox for gentoo-dev-announce@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: gentoo-dev-announce@lists.gentoo.org
Subject: [gentoo-dev-announce] Signed push & clock drift rejection
Date: Fri, 15 Jul 2016 18:03:30 +0000	[thread overview]
Message-ID: <robbat2-20160715T174905-986981250Z@orbis-terrarum.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

Hi all,

In tracing down problems with the git->rsync path, it has been noticed
that some developers have significant clock drift on their local systems
(up to one case of 14 days wrong), and it's potentially contributing to
problems in generating the rsync tree.

I have implemented a check as part of the hook that validates Git push
certificates (require-signed-push). It looks for clock drift or an
overly long push, and aborts if needed.

The tolerances are presently set to:
- 5 seconds of clock drift.
- 'git push' must be completed in 60 seconds.

The two possible errors you will get during push are:
===
Your system clock is off by 119 seconds (limit 5).
Run NTP, rebase your commits as needed, and push again.
===
Try again! Your push took 80 seconds (limit 60).
===

If you do get the first error, please strongly look at running ntpd,
tlsdate or some other time keeping solution.

This applies to all Git repos that require signed pushes presently:
- data/*
- foundation/*
- infra/*
- proj/portage
- repo/gentoo
- repo/proj/gen-b0rk
(and a few more)

-- 
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation Trustee & Treasurer
E-Mail   : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 445 bytes --]

                 reply	other threads:[~2016-07-15 18:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=robbat2-20160715T174905-986981250Z@orbis-terrarum.net \
    --to=robbat2@gentoo.org \
    --cc=gentoo-dev-announce@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox