From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: master 55eabe96c9: ; Improve manual for Tramp kubernetes method Date: Tue, 25 Oct 2022 19:48:21 +0200 Message-ID: <87wn8nu74q.fsf@gmx.de> References: <166637666472.14803.2269230477358344016@vcs2.savannah.gnu.org> <20221021182424.F0E84C00B0F@vcs2.savannah.gnu.org> <87tu3w6v74.fsf@gmx.de> <87a65l6z0l.fsf@gmx.de> <875yg96xu8.fsf@gmx.de> <871qqx6oi5.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13826"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 25 19:50:23 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onO4E-0003JJ-QL for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Oct 2022 19:50:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onO2T-00054V-0S; Tue, 25 Oct 2022 13:48:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onO2Q-0004ld-8G for emacs-devel@gnu.org; Tue, 25 Oct 2022 13:48:30 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onO2K-0003pM-O9 for emacs-devel@gnu.org; Tue, 25 Oct 2022 13:48:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666720102; bh=jYLjiglLTiPbuynmxKXEcKeJTN+BEhFZ81wH8BimfMc=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=dsNCWkA4zXdNXNiAX5NzBrnuSymggAklykcOKpYE18WYwpJBNDXY5VSmzE6SW8BKC 6cQ4w5BX3cPMpDkkl2hgQ/qBdU98IE38bBPQB8TgTcntS3eB7FJBinLGQpF/tshChm /1Ky/79+NaSRRDpRQN62p21oVGWECc2FIBBzJhZc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.148.109]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8ykg-1okf0y2Qys-00677n for ; Tue, 25 Oct 2022 19:48:22 +0200 In-Reply-To: (Filipp Gunbin's message of "Tue, 25 Oct 2022 20:29:54 +0300") X-Provags-ID: V03:K1:JUdIrHJtv+JStZkKEk65LtEsIZyWhXP2gTvYxiXEPzm2ip2dERV MawF+VL8pSOJOyu9/4C+o3fh6ciYIPwgnRENwzuPAK3n632cmc10NLt7qF2JitCD4gmTEW/ s2VickVeUAXa9f885PYT5vd24ejqCWWqkcXyKTRpT4NKP9BtxjmXr8G5eT7QIBQbfQFZAcy H6FDivAw3bsYKS0ul8aHA== X-UI-Out-Filterresults: notjunk:1;V03:K0:zQ8RnRGp1Rg=:dKupnH9EELD9RM3Lca7Evg ruV7LOproojrzrwh/lwtY0cX4UJJ7eMahQGuWxVi9cXC+sYel28BQHtEfKRKF+GJX75m4rQ7l vTk0ZhsttTe6aZD/GcdLa4yYP+y+jKtCkaDKBpq6D8nK50Qy0Y3fseMSmdo9Xfmr0rWaLMav1 Ju1fZtiFqZhJga4xM+38yNM3+mZWGIKhzEe4f8/mBh4GleKCTyNm7sWpBbnK97VKq+fu1mpKu Lx+IBVXfwuP3heHnw3/VQC3T7Y4GyAlU01kYvG4OLVtS8q2WgLJSy8mo7nfeu9M7KFYxr3V3q oYFbbgMhS4R68XCQ828AVd+6DpePBuzlPCnFm66Syhm5l7vijQcTprTj7l3xJyT9wCJtcYmTJ gLWYm3+4/XjsrDEUdjOHTpRXZAezXBPW924Cw0X1m0BFXD47pZd1ITAd1QbmCESmepvI16qrN w/hlO1DJ8Lhn+eu6hi/oXT35RQHtSdsBiYFhu2yhgg0nfW3TZxYw2QrsuXuKFBaOnHO+Avqz+ zBqzyhhpPBA7oQTI8tdbBnDdfaOvcKo+4JoyECC0s3f968LRLT4jV/RCAmXv+CIofSs8/3Pyy y3Qe2lFnD9wO3/XiRTUrlZC9Usj9AuTAEGuCiKfuF175UWCzPRIK+yfjhfw15ncRhCW0VNykF RTFD7wnkjqGiKSrsx1UAS6Jux7CN2Uck7tQYYbtktNccbUw0VSsw49QbbSxHfNW8hjZhs1PEl iwAMahkrr2/LlGuMmUk8AdeD7R7YvCSgopnoBNPQPltnBjhQVlE3SXOBuf1kVgmfIwtBiUhq Received-SPF: pass client-ip=212.227.17.22; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298488 Archived-At: Filipp Gunbin writes: > Hi Michael, Hi Filipp, > Something messed up in the mailing list (or in my Gnus config :-), I see > only some messages in this thread from today. I recommend to read such MLs via news.gmane.io (as I do). No problems today. > Anyway: I'll test the new patch a bit later, now just wanted to return > to current-context thing. I'm still sure that we need to cache full > config, because a user may change context as easily as a namespace. In > fact, a context _is_ a namespace, in a sense, just higher-level > namespace. My proposal is to check all fields of current-context. Like this: --8<---------------cut here---------------start------------->8--- # kubectl config view -o jsonpath='{.contexts[?(@.name == "docker-desktop")]}' {"context":{"cluster":"docker-desktop","user":"docker-desktop"},"name":"docker-desktop"} --8<---------------cut here---------------end--------------->8--- This includes the name of the current context ("docker-desktop"), and if the user switches to another context, or changes an attribute of the current context, it will differ. > Also, context refers to "cluster" by name, and cluster config also may > change, etc. Yes, but we cannot check everything. Compare it to an ssh connection, which uses a Host entry in .ssh/config. If a user changes the Hostname part of that Host entry, it isn't detected either by Tramp. The user is responsible for this kind of changes, and the consequences. And remember, this discussion started because you were concerned about a changed namespace, nothing else. > About checksum: it should not be very important to see what changed, > because the user did the change herself. It's more important to avoid > storing sensitive data. My proposal avoids to store sensitive data. The authentication token you've mentioned is part of the Users config. We don't see it anymore according to the latest patch. > Filipp Best regards, Michael.