Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

Table of Contents

Cluster administrators inevitably need to cut off some or all access to the hosted domains within a cluster when Gateway is deployed by a managed service provider. This can be due to non-payment or if a client uses too much storage and is required to clean-up space before writing new content.

All access Access to a domain can be is controlled from the root Policy configuration file and from the domain's policy attribute. Updating the policy attribute is often desirable because, unlike an update to the root Policy file, it does not require a Gateway server restart. These examples use the policy attribute of a domain for controlling access. Recall the statements in an access Policy have that has an optional Sid field that can be used in whatever way an application wants. Administrators can use the Sid field to keep track of the statements they added and to identify them for future removal when injecting statements into an existing Policy.

Table of Contents

No Access

In this example, a domain that had allowed access to has “Allow” access for the domain administrator (one of the end-users) now completely cuts off access to all end-users by adding the deny statements. The new statements use the Sid field to identify them for easy removal in the future. Notice the

Info

Note

The statement denies authenticated users as well as anonymous users.

Code Block
languagexml
{
   "Statement": [
      {
         "Resource": "/*",
         "Action": [
            "*"
         ],
         "Principal": {
            "user": [
               "domainadmin"
            ]
         },
         "Effect": "Allow"
      },
      {
         "Resource": "/*",
         "Action": [
            "*"
         ],
         "Principal": {
            "user": [
               ""
            ],
            "anonymous": [
               ""
            ]
         },
         "Effect": "Deny",
         "Sid": "temp-cutoff-noaccess"
      }
   ]
}

...

In this example, a domain is changed to read-only mode to prevent writing, updating, or deleting content by from the end-users. The new policy statement makes use of uses the Sid field to identify it for future removal. This example also makes use of NotAction uses “NotAction” to specify if the deny pertains to any action not listed thus allowing the ones actions that are listed.

Code Block
languagexml
{
   "Statement": [
      {
         "Resource": "/*",
         "Action": [
            "*"
         ],
         "Principal": {
            "user": [
               "domainadmin"
            ]
         },
         "Effect": "Allow"
      },
      {
         "Resource": "/*",
         "NotAction": [
            "GetObject",
            "GetBucket",
            "GetDomain",
            "ListBucket",
            "ListDomain",
            "GetDomainPolicy",
            "GetPolicy",
            "PutPolicy"
         ],
         "Principal": {
            "user": [
               ""
            ],
            "anonymous": [
               ""
            ]
         },
         "Effect": "Deny",
         "Sid": "temp-cutoff-ro"
      }
   ]
}

...

A cluster administrator can set the access control policy on a domain for to read and delete only if a tenant exceeds the quota. By letting the end-users continue to read and delete content, they can use a cluster administrator uses the content they have already written and cleancleans-up content to reduce storage usage. As with the previous example, NotAction is used to specify the if deny pertains to any action not listed.

...