You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hub/enterprise-hub-network-security.md
+25-14Lines changed: 25 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,15 @@ You can set multiple ranges, one per line.
16
16
</div>
17
17
18
18
19
-
## Higher Rate Limits
19
+
## Higher Hub rate limits
20
20
21
21
Apply for higher rate-limits for your organization.
22
22
23
23
Most of the actions on the Hub have limits, for example, users are limited to creating a certain number of repositories per day. This option allows your organization to apply for higher limits for your organization members. This also enables higher HTTP rate limits on the Hub API, to unlock large volumes of model or dataset downloads.
24
24
25
-
To activate this option,
25
+
To activate this option:
26
26
27
-
1. Toggle on the "Higher Hub rate-limits" option
27
+
1. Toggle on the "Higher Hub ratelimits" option
28
28
29
29
<divclass="flex justify-center">
30
30
<imgclass="block dark:hidden"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-rate-limit.png"alt="Screenshot of the toggle to enable High rate-limits."/>
@@ -38,32 +38,43 @@ You need to have a valid Enterprise Plus subscription for this option to take ef
38
38
Once defined, higher rate limits will apply to members of your organization whose IPs match the defined ranges.
39
39
40
40
41
-
## Enforce authenticated access to the Hugging Face Hub
41
+
## Restrict organization access to your IP ranges only
42
42
43
-
This option will ensure that, when browsing from your corporate network, only authenticated users belonging to your organization are able to access the Hugging Face Hub. All public pages will show the following message if access is unauthenticated:
43
+
This option restricts access to your organization's resources to only those coming from your defined IP ranges. No one can access your organization resources outside your IP ranges. The rules also apply to access tokens.
44
44
45
-
<divclass="flex justify-center">
46
-
<imgclass="block dark:hidden"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-restricted-url.png"alt="Screenshot of restricted pages on the Hub."/>
47
-
<imgclass="hidden dark:block"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-network-sec-restricted-url.png"alt="Screenshot of restricted pages on the Hub."/>
48
-
</div>
45
+
To activate this option:
49
46
50
-
1. Toggle on the "Enforce authenticated access to the Hub" option
47
+
1. Toggle on the "Restrict organization access to your IP ranges only" option
51
48
52
49
<divclass="flex justify-center">
53
-
<imgclass="block dark:hidden"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-enforce-auth.png"alt="Screenshot of the toggle to enable Enforced authenticated access to the Hub."/>
54
-
<imgclass="hidden dark:block"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-network-sec-enforce-auth.png"alt="Screenshot of the toggle to enable Enforced authenticated access to the Hub."/>
50
+
<imgclass="block dark:hidden"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-enforce-auth.png"alt="Screenshot of the toggle to restrict organization access to IP ranges."/>
51
+
<imgclass="hidden dark:block"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-network-sec-enforce-auth.png"alt="Screenshot of the toggle to restrict organization access to IP ranges."/>
55
52
</div>
56
53
57
54
You need to have a valid Enterprise Plus subscription for this option to take effect.
58
55
59
56
2. Ensure the Organization IP Ranges are defined
60
57
61
58
59
+
### Require login for users in your IP ranges
60
+
61
+
When this nested option is enabled, anyone visiting Hugging Face from your corporate network must be logged in and belong to your organization (requires a manual verification when IP ranges have changed). If enabled, you can optionally define a content access policy.
62
+
63
+
All public pages will show the following message if access is unauthenticated:
64
+
65
+
<divclass="flex justify-center">
66
+
<imgclass="block dark:hidden"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-restricted-url.png"alt="Screenshot of restricted pages on the Hub."/>
67
+
<imgclass="hidden dark:block"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-network-sec-restricted-url.png"alt="Screenshot of restricted pages on the Hub."/>
68
+
</div>
69
+
70
+
1. Toggle on the "Require login for users in your IP ranges" option (this option appears when "Restrict organization access to your IP ranges only" is enabled)
71
+
72
+
62
73
### Content Access Policy
63
74
64
-
You can also define a finegrained Content Access Policy by blocking some section of the Hugging Face Hub.
75
+
You can also define a fine-grained Content Access Policy by blocking certain sections of the Hugging Face Hub.
65
76
66
-
For example, you can block your organization's members to access Spaces, by adding `/spaces/*` to the blocked URLs. When users of your organization navigate to a page that matches the URL pattern, they'll be presented the following page:
77
+
For example, you can block your organization's members from accessing Spaces by adding `/spaces/*` to the blocked URLs. When users of your organization navigate to a page that matches the URL pattern, they'll be presented the following page:
67
78
68
79
<divclass="flex justify-center">
69
80
<imgclass="block dark:hidden"src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-blocked-url.png"alt="Screenshot of blocked pages on the Hub."/>
0 commit comments