Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: c.buhtz@posteo.jp Newsgroups: linux.debian.maint.python Subject: Salsa: Setup tokens Date: Tue, 19 Mar 2024 12:00:04 +0100 Message-ID: X-Original-To: Debian python X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Mar 19 10:55:05 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.408 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Mailing-List: archive/latest/21627 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/039c06a78ebf2e00c9b104de38d0e962@posteo.de Approved: robomod@news.nic.it Lines: 39 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 19 Mar 2024 10:54:43 +0000 X-Original-Message-ID: <039c06a78ebf2e00c9b104de38d0e962@posteo.de> Xref: csiph.com linux.debian.maint.python:15622 Hello, this is not a regular support message. I was not able to find clear information in the wiki or somewhere else. Please point me to it if exist. My intention is to improve the related wiki pages about it. The command "salsa create_repo" do not work because of a missing SALSA_TOKEN. Technically it is clear to me why this happens. My question is how am I supposed to handle that in the context of DPT and its policy. The error message: salsa warn: SALSA_TOKEN not set in configuration files. Some commands may fail salsa warn: Project not created: Error POSTing https://salsa.debian.org/api/v4/projects (HTTP 401): Unauthorized {"message":"401 Unauthorized"} at /usr/share/perl5/Devscripts/Salsa/create_repo.pm line 36. OK, I logged into Salsa and navigated to "User Settings" -> "Access Tokens". I assume I have to create a "Personal Access Tokens" instead of a "Feed Token" or "Incoming mail token"? Are there any suggestions or recommendations from DPT about the "Expiration date"? What is about "select scopes"? I see 10 unchecked items. They are described but it is not totally clear for new users what they are about or what the implications are. Any recommendations from DPT about that? Just select all? A more broad question: I never used tokens before. I do use SSH keys when accessing Codeberg, GitHub or something else. Are this tokens a replacement for SSH keys? Should I prefer one of this two methods? Thanks in advance Christian Buhtz