Snap security
Snap packages are sandboxed and therefore they are not by default allowed to access the password service.
For example: When you choose “Store in keychain” MySQLWorkbench is blocked by AppArmor. To fix
this, you need to execute a command similar to the following (which is to allow MySQLWorkbench access
to the password manager service)
sudo snap connect mysql-workbench-community:password-manager-service :password-manager-service
References: