Skip to content

Commit ffc6386

Browse files
Kakulukianjulien-cpcuencaPierrci
authored
Deprecation of Git Authentication using password (#1393)
* Draft: blog post about password git deprecation * Update password-git-deprecation.md * Apply suggestions from code review Co-authored-by: Julien Chaumond <[email protected]> * Update password-git-deprecation.md * Add thumb * Apply suggestions from code review Co-authored-by: Pedro Cuenca <[email protected]> * Update password-git-deprecation.md * Apply suggestions from code review Co-authored-by: Pierric Cistac <[email protected]> * Update password-git-deprecation.md * Update password-git-deprecation.md Co-authored-by: Julien Chaumond <[email protected]> * Adding a sentence about ssh and token advantage, add in blog * Apply suggestions from code review Co-authored-by: Pierric Cistac <[email protected]> * Update _blog.yml --------- Co-authored-by: Julien Chaumond <[email protected]> Co-authored-by: Pedro Cuenca <[email protected]> Co-authored-by: Pierric Cistac <[email protected]>
1 parent 818ae84 commit ffc6386

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

_blog.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2722,4 +2722,13 @@
27222722
tags:
27232723
- llm
27242724
- optimization
2725-
- quantization
2725+
- quantization
2726+
2727+
- local: password-git-deprecation
2728+
title: "Deprecation of Git Authentication using password"
2729+
author: Sylvestre
2730+
thumbnail: /blog/assets/password-git-deprecation/thumbnail.png
2731+
date: August 25, 2023
2732+
tags:
2733+
- announcement
2734+
- security
159 KB
Loading

password-git-deprecation.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Deprecation of Git Authentication using password
3+
thumbnail: /blog/assets/password-git-deprecation/thumbnail.png
4+
authors:
5+
- user: Sylvestre
6+
- user: pierric
7+
- user: sbrandeis
8+
9+
---
10+
11+
# Hugging Face Hub: Important Git Authentication Changes
12+
13+
<!-- {blog_metadata} -->
14+
<!-- {authors} -->
15+
16+
Because we are committed to improving the security of our services, we are making changes to the way you authenticate when interacting with the Hugging Face Hub through Git.
17+
Starting from **October 1st, 2023**, we will no longer accept passwords as a way to authenticate your command-line Git operations. Instead, we recommend using more secure authentication methods, such as replacing the password with a personal access token or using an SSH key.
18+
19+
## Background
20+
21+
In recent months, we have implemented various security enhancements, including sign-in alerts and support for SSH keys in Git. However, users have still been able to authenticate Git operations using their username and password. To further improve security, we are now transitioning to token-based or SSH key authentication.
22+
Token-based and SSH key authentication offer several advantages over traditional password authentication, including unique, revocable, and random features that enhance security and control.
23+
## Action Required Today
24+
25+
If you currently use your HF account password to authenticate with Git, please switch to using a personal access token or SSH keys before **October 1st, 2023**.
26+
27+
### Switching to personal access token
28+
You will need to generate an access token for your account; you can follow https://huggingface.co/docs/hub/security-tokens#user-access-tokens to generate one.
29+
30+
After generating your access token, you can update your Git repository using the following commands:
31+
32+
```bash
33+
$: git remote set-url origin https://<user_name>:<token>@huggingface.co/<user_name>/<repo_name>
34+
$: git pull origin
35+
```
36+
or if you clone a new repo, you can just input a token in place of your password when your Git credential manager asks you for your authentication credentials.
37+
38+
### Switching to SSH keys
39+
40+
Follow our guide to generate an SSH key and add it to your account: https://huggingface.co/docs/hub/security-git-ssh
41+
42+
Then you'll be able to update your Git repository using:
43+
44+
```bash
45+
$: git remote set-url origin [email protected]:<user_name>/<repo_name>
46+
```
47+
48+
## Timeline
49+
50+
Here's what you can expect in the coming weeks:
51+
52+
- Today: Users relying on passwords for Git authentication may receive emails urging them to update their authentication method.
53+
- October 1st: Personal access tokens or SSH keys will be mandatory for all Git operations.
54+
55+
For more details, reach out to HF Support to address any questions or concerns at [email protected]

0 commit comments

Comments
 (0)