Authentication
Ignite 3 provides basic Authentication capabilities.
Basic Authentication
To start using basic authentication on the cluster, you need to enable it and create an initial administrator user. By default, the role that grants administrator permissions is called admin
, but you can change it in cluster configuration. Here is an example of configuration that initializes the cluster and enables security on it:
cluster init --name=sampleCluster --config=ignite{security{enabled:true,authentication.providers:[{name:default,type:basic,users:[{username:ignite,displayName:administrator,password:ignite,roles:["system"]}]}]}}
When cluster has been initialized, it has basic authorization configured for ignite
user name and ignite
password with system level access. However, by default security is disabled. To enable it:
cluster config update ignite.security.enabled=true
Warning
|
If you lose access to all accounts with system role, you will lose administrator access to the cluster. |
After authorization is enabled, you will be disconnected from the cluster and must reconnect to the cluster:
connect http://127.0.0.1:10300 --username ignite --password ignite
You can change the password for the default user by updating cluster configuration, for example:
cluster config update ignite.security.authentication.providers.default.users.ignite.password=myPass ---
Apache, Apache Ignite, the Apache feather and the Apache Ignite logo are either registered trademarks or trademarks of The Apache Software Foundation.