Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70F91239594 for ; Wed, 17 Sep 2025 03:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758080166; cv=none; b=PnkixRl7jGhPc61145rLWf1A0rMsA/ShiOhDv1l2TSbQFp+G4hbFb5oFbhwjzQRq4C72LMq1QnKJKqaxTkzMYMEzhkhBnYLDgSPZ0I53Gze/JCLVRlv8f/xdQ+H5gAqBYhwne4CMWnRAFeV5wk8tLFAfvF1QjAK6utkxZo5qXnM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758080166; c=relaxed/simple; bh=cXFrhPQw2nT4bd/FX2zt3WhlC56vDgUXLwPJnUI+alM=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=AtGr8eF/MtirvvbXHfZuX/0xTl2UEkpCC7LfW0IR15Ilw285I8GBdXlx33ydhPActtCClgHAnlxj+aIs1QN+YFgy3RYf2rzNBIlolWskagBsbuOqKaAxsxmaRIPC+Hj6YdXdLRShQVRGxpPV6kL7wCcR6VF8dqh1K3qWpYOF7fs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qGeCXb7r; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qGeCXb7r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2551C4CEEB; Wed, 17 Sep 2025 03:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758080166; bh=cXFrhPQw2nT4bd/FX2zt3WhlC56vDgUXLwPJnUI+alM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=qGeCXb7rr+1SKMdjEgpEcS0Mqbbc4OD52X5PGDifX5kcGp5jxW7sd3fTnrRD/qSko lRQG54Oo15lPlRs6WUgnN03S4s6bn5K+HUB0/ec3udBdjWhLKHOKXJqNN9hmwS1OS3 JkSrggfNfT8o5HUICDWnrN+K5v3Azfjy1TDCUfXwvi6HIpEtN+ROMnwezQdPXz4Hlb Fa4t5gxUCll4gtmvlAeaQCn/gYVk7wUpSTieFIFmHpMBX1vYicFJCfXTCgxwk3b8uM hXRCR6VHnFhYLJHTEpJcLDbxadsV/EdgAV94m8PVj4xYWkzILJBqDSfkcox6z7qd15 Ah/d2wlC33cMw== Message-ID: Date: Tue, 16 Sep 2025 20:36:04 -0700 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/8] aws: prevent SSH key conflicts across multiple kdevops directories To: Luis Chamberlain , Daniel Gomez , kdevops@lists.linux.dev References: <20250917003451.2318229-1-mcgrof@kernel.org> <20250917003451.2318229-2-mcgrof@kernel.org> Content-Language: en-US From: Chuck Lever Organization: kernel.org In-Reply-To: <20250917003451.2318229-2-mcgrof@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/16/25 5:34 PM, Luis Chamberlain wrote: > Benefits: > - Prevents accidental key overwrites in AWS backend > - No more lockouts from existing instances when using multiple directories > - Backward compatible - users can still use shared keys if needed > - Consistent with Lambda Labs implementation pattern > - Each directory's instances are isolated with their own SSH keys > > Example: > Directory: /home/user/projects/kdevops > AWS Key Name: kdevops-aws-projects-kdevops-a8999659 > Local Keys: ~/.ssh/kdevops-aws-projects-kdevops-a8999659[.pub] > > This ensures that running kdevops from different directories will never > conflict, as each gets its own unique key name in both AWS and locally. > > Generated-by: Claude AI > Signed-off-by: Luis Chamberlain I did something like this by hand, using the pathname configured in the existing terraform ssh config menu. It's definitely a problem. But seems like this might be an issue for all the cloud providers, so maybe this idea could be applied in the generic terraform ssh config menu instead of making it specific to AWS and Lambda? But I might be missing something. -- Chuck Lever