×
Community Blog Nacos 2.2.2: Optimize Startup Experience and Authentication Tips

Nacos 2.2.2: Optimize Startup Experience and Authentication Tips

This article introduces key features of Nacos v2.2.2.

The Nacos community recently released versions 2.2.0 and 2.2.1, which brings significant changes to the default authentication plug-in. However, because the default token.secret.key is used in the default console UI of Nacos, many users who deploy images or use the latest version by default experience a high number of startup failures after the token.secret.key default value is removed. This greatly affects the usability of the users. Therefore, version 2.2.2 is mainly optimized to address this problem.

Nacos 2.2.2

In Nacos 2.2.0 and 2.2.1, three default values related to authentication were removed to avoid the risk of database collision due to unmodified changes during deployment. However, token.secret.key is a mandatory dependency for the landing page of the default console UI of Nacos. As a result, many environments that use the default configuration or have lower security requirements cannot be started and run directly, causing trouble for a large number of users.

Therefore, the main change in version 2.2.2 is the removal of the mandatory dependency on token.secret.key by removing the login requirement in the default console without authentication. If authentication is enabled, users still need to set custom token.secret.key, nacos.core.auth.server.identity.key, and nacos.core.auth.server.identity.value. Otherwise, the node cannot be started and the login and authentication will fail.

For more information about the specific changes in version 2.2.2, please refer to the change log.

## Enhancement&Refactor
[#10153] Close console login page when auth.enabled is false.
[#10276] Default close openssl for client.

## BugFix
[#10208] Remove DefaultSettingPropertySource.java.

Nacos-Go-SDK 2.2.1

Nacos-Go-SDK 2.2.1 mainly addresses a memory usage problem present in version 2.2.0, and also resolves some other usage problems, making it more stable.

* update get cache config log print by @binbin0325 in #594
* fixed memory usage problem caused by maxInt chan by @binbin0325 in #596
* Adjust [INFO] logDir cacheDir log output by @Cotch22 in #590
* Fix the issue of initialization concurrent read and write by @tonglin96 in #591
* grpc default port init by @binbin0325 in #598

Future Plan

Nacos 3.0 is under planning, which will further evolve Nacos' functionality and architecture in the directions of unified control plane, support for localization, and storage-compute separation. You are welcome to join the construction of the new version.

About Nacos

Nacos is committed to helping you discover, configure, and manage microservices. Nacos offers a simple and easy-to-use set of features that enable you to quickly achieve dynamic service discovery, service configuration, service metadata, and traffic management.

With Nacos, you can build, deliver, and manage microservices platforms more agilely and easily. Nacos is a service infrastructure that builds modern application architectures centered around services, such as microservices paradigms and cloud-native paradigms.

Related links

[1] Authentication
https://nacos.io/en-us/docs/v2/guide/user/auth.html

[2] 2.2.4 Release
https://github.com/alibaba/nacos/releases/tag/2.2.4

[3] 2.2.3 Release
https://github.com/alibaba/nacos/releases/tag/2.2.3

[4] 2.2.2 Release
https://github.com/alibaba/nacos/releases/tag/2.2.2

[5] 2.2.1 Release
https://github.com/alibaba/nacos/releases/tag/2.2.1

1 2 1
Share on

You may also like

Comments

Dikky Ryan Pratama July 1, 2023 at 3:50 pm

awesome!

Related Products

  • Function Compute

    Alibaba Cloud Function Compute is a fully-managed event-driven compute service. It allows you to focus on writing and uploading code without the need to manage infrastructure such as servers.

    Learn More
  • Cloud-Native Applications Management Solution

    Accelerate and secure the development, deployment, and management of containerized applications cost-effectively.

    Learn More
  • Lindorm

    Lindorm is an elastic cloud-native database service that supports multiple data models. It is capable of processing various types of data and is compatible with multiple database engine, such as Apache HBase®, Apache Cassandra®, and OpenTSDB.

    Learn More
  • PolarDB for MySQL

    Alibaba Cloud PolarDB for MySQL is a cloud-native relational database service 100% compatible with MySQL.

    Learn More