Passwordless access

更新时间:
复制 MD 格式

Memcache supports passwordless logon. When this feature is enabled, applications in the IP whitelist can access the target Memcache instance without a password. This feature simplifies database access and third-party software integration while ensuring data security.

Notes

  • The Memcache instance and the connecting Elastic Compute Service (ECS) instance must be in the same region.

  • The Memcache text protocol does not support password-based access. To access a Memcache instance using the text protocol, you must enable passwordless access for the IP whitelist.

  • Before you enable passwordless access, you must remove 0.0.0.0/0 from the whitelist. Otherwise, the feature does not work.

  • You can enable passwordless logon after you configure the whitelist. For more information, see Set an IP whitelist.

Procedure

  1. Log on to theMemcache Management Console.
  2. In the upper-left corner of the top menu bar, select the region of the target instance.

  3. On the Instance List page, click the target instance ID.

  4. In the navigation pane on the left, click Whitelist Settings.

  5. Click Passwordless Logon.

  6. On the Passwordless Logon tab, click Enable.

    Passwordless logon is now enabled for the Memcache instance. All applications in the IP whitelist can access the instance without a password.

FAQ

  • Q: Why does passwordless access not work after I enable it?

    A: For security reasons, passwordless access is disabled if the whitelist contains 0.0.0.0/0. Check whether the whitelist contains 0.0.0.0/0. If it does, delete this IP address range.

  • Q: Why does passwordless access not work after a minor version upgrade?

    A: For security reasons, new versions disable passwordless access if the whitelist contains 0.0.0.0/0. This restriction does not apply to older versions. Therefore, after you upgrade, check whether the whitelist contains 0.0.0.0/0. If it does, delete this IP address range.