mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-26 19:46:27 -08:00
upki (github.com/rustls/upki, shipping in Ubuntu 26.10+) keeps a local CRLite revocation cache that "upki fetch" refreshes on a timer. Add an omittable "upki" feature that, after tlsdial's x509 verification succeeds, checks the leaf against that cache if one is present and rejects it if revoked. Missing caches, uncovered certs, and cache read errors all fail open. The cache is read with github.com/cpu/go-upki, the prototype for the built-in crypto/tls support proposed in golang/go#82402. That built-in check wouldn't cover us even once it ships, because crypto/tls skips it when InsecureSkipVerify is set, and tlsdial always sets that so it can do its own verification in VerifyConnection. Updates #22680 Signed-off-by: Brad Fitzpatrick <[email protected]> Change-Id: Idfa75794cbba9c90039355ffaeb21b5d5824a5fe
20 lines
788 B
Nix
20 lines
788 B
Nix
# This is a shell.nix file used to describe the environment that
|
|
# tailscale needs for development.
|
|
#
|
|
# For more information about this and why this file is useful, see here:
|
|
# https://nixos.org/guides/nix-pills/developing-with-nix-shell.html
|
|
#
|
|
# Also look into direnv: https://direnv.net/, this can make it so that you can
|
|
# automatically get your environment set up when you change folders into the
|
|
# project.
|
|
(import (
|
|
let
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
in fetchTarball {
|
|
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
|
sha256 = lock.nodes.flake-compat.locked.narHash; }
|
|
) {
|
|
src = ./.;
|
|
}).shellNix
|
|
# nix-direnv cache busting line: sha256-EUjRAWRCI6FfXRis4AyX4+9EPDrWPpVk6eYQKAwJ+H8=
|