# Restricting Resources Access

In certain situations, you may want to restrict access to specific yCrash resources so that only authorized administrators can view them. The Restricting Resources Access feature allows you to protect selected resources by requiring administrator password authentication.

This guide explains how to configure restricted resources, set up the administrator password, and configure password-attempt restrictions.

The feature supports both SSO and non-SSO authentication. The existing non-SSO authentication workflow remains unchanged, while SSO authentication supports additional password-attempt restrictions.

# Step 1: Create 'admin-access-settings.json'

  1. Download admin-access-settings.json from this location (opens new window).
  2. Place the file in the yCrash Server's upload directory.

If you are using remote storage, such as AWS S3 (opens new window) or Google Cloud Storage (opens new window), the application first checks for the configuration file in the local upload directory. If the file is not found locally, it checks the configured remote storage.

# Step 2: Configure 'admin-access-settings.json'

Open the configuration file in a text editor and specify the URLs of the resources you want to restrict.

For example, to restrict access to the Cool Tools page, configure the following:

{
    "urls": [
     	   "/yc-dashboard-tools.jsp"
    ]
}
1
2
3
4
5

You can specify multiple URLs:

{
  "urls": [
    "/yc-dashboard-tools.jsp",
    "/yc-dashboard-upload-incident.jsp",
    "/bundle-upload"
  ]
}
1
2
3
4
5
6
7

# Step 3: Set Up the Administrator Password

To access restricted resources, users must provide the administrator password.

For instructions on configuring the administrator password, refer to the Admin Password Setup guide (opens new window).

To reset the administrator password, update the -DadminPassword property in the launch-yc-server.{sh|bat} file and restart the yCrash application.

# Step 4: Access Restricted Resources

Once the configuration file and administrator password are set up, accessing a restricted resource prompts the user to authenticate.

Only users who successfully authenticate can access the restricted resource.

img

Fig 1: Access to the Cool Tools page is restricted by specifying its URL in `admin-access-settings.json`.

img

Fig 2: Administrator password challenge displayed when accessing a restricted resource

# Password Attempt Restrictions

The Admin Access feature provides an additional layer of security when Single Sign-On (SSO) is integrated with yCrash. It protects restricted administrative resources by limiting the number of consecutive unsuccessful administrator password authentication attempts. Whenever a user attempts to access a protected resource, they must provide the configured administrator password. Each incorrect password entry reduces the remaining number of allowed attempts.

Once the configured maximum number of unsuccessful attempts is reached, further administrator password authentication attempts are temporarily blocked. This helps protect administrative resources against unauthorized access and brute-force password attacks. The account remains locked for the configured auto-unlock duration, during which the user cannot authenticate using the administrator password.

After the configured lockout duration expires, access is automatically unlocked and the password-attempt counter is reset, allowing the user to authenticate again without manual intervention. This mechanism strengthens security while ensuring that legitimate users can regain access automatically. The password-attempt restriction applies only to the SSO-integrated authentication workflow; the existing non-SSO authentication workflow remains unchanged.

# 1. Configure Password Attempt Restrictions

You can configure the following two properties in the admin-access-settings.json file. Both properties are optional. If they are not specified, the application uses the following default values.

Property Description Default
maxAttempts Maximum number of unsuccessful password attempts allowed. 5
autoUnlockHours Duration (in hours) before access is automatically unlocked. 1

For example:

{
  "autoUnlockHours": 2,
  "maxAttempts": 10,
  "urls": [
    "/yc-dashboard-tools.jsp",
    "/yc-dashboard-upload-incident.jsp",
    "/bundle-upload"
  ]
}
1
2
3
4
5
6
7
8
9

# 2. How Password Attempt Restrictions Work

The authentication process works as follows:

  • The user accesses a resource protected by Admin Access.

  • The application prompts the user to enter the administrator password.

  • Each unsuccessful password attempt reduces the remaining attempt count.

  • Once the maximum number of unsuccessful attempts is reached, the user is locked out from further authentication attempts.

  • The application automatically unlocks access after the configured autoUnlockHours duration.

  • After the lock period expires, the password-attempt count is reset, allowing the user to authenticate again.

Suppose the configuration contains:

{
  "maxAttempts": 5,
  "autoUnlockHours": 1
}
1
2
3
4
  1. The user is allowed 5 unsuccessful password attempts.

  2. After the fifth unsuccessful attempt, authentication is locked.

  3. The user cannot attempt authentication again during the next 1 hour.

  4. After 1 hour, the account is automatically unlocked, and the user gets another 5 attempts.

# FAQ

Q: Can I use multiple passwords for different administrators?

A: Currently, the Admin Access feature supports a single administrator password configuration.

Q: How do I reset the administrator password?

A: Update the -DadminPassword property in the launch-yc-server file and restart the yCrash application.

Q: I configured a URL in admin-access-settings.json, but the password challenge is not displayed. What should I check?

A: Verify that the URL is correctly listed in the urls array and that the JSON file contains no syntax errors. Confirm that the file is placed in the correct upload directory or configured remote storage location. Restart the yCrash Server after making configuration changes.

Q: What happens if maxAttempts is not configured?

A: The default maximum of 5 password attempts applies to Single Sign-On authentication.

Q: What happens if autoUnlockHours is not configured?

A: The default automatic unlock duration of 1 hour applies to Single Sign-On authentication.

Q: Can I customize the password-attempt limit and unlock duration?

A: Yes. Specify maxAttempts and autoUnlockHours in admin-access-settings.json. Valid configured values override the defaults.

Q: Does the password-attempt restriction affect non-SSO authentication?

A: No. The new password-attempt restriction applies exclusively to SSO authentication. The existing non-SSO authentication workflow remains unchanged.