Skip to content

Commit

Permalink
Increase gpg timeout to give time to developers to interact with Yubi…
Browse files Browse the repository at this point in the history
…keys (#2613)

* increase gpg timeout value for in-toto

* skip flake8 for this module
  • Loading branch information
trishankatdatadog authored and masci committed Nov 22, 2018
1 parent 583f3c3 commit 4186af9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions datadog_checks_dev/datadog_checks/dev/tooling/signing.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
# flake8: noqa
import shutil

# NOTE: Set one minute for any GPG subprocess to timeout in in-toto. Should be
# enough time for developers to find and enter their PIN and / or touch their
# Yubikey. We do this before we load the rest of in-toto, so that this setting
# takes effect.
import in_toto.settings
in_toto.settings.SUBPROCESS_TIMEOUT = 60

from in_toto import runlib
from in_toto.gpg.constants import GPG_COMMAND

Expand Down

0 comments on commit 4186af9

Please sign in to comment.