kuzzle | source Back-end , self-hostable & ready to use - Real-time | Runtime Evironment library
kandi X-RAY | kuzzle Summary
kandi X-RAY | kuzzle Summary
First of all make sure that you have at least 4GB of ram allocated to your vm docker desktop and that it is running.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Extracts the fields from the given document
- no - op .
kuzzle Key Features
kuzzle Examples and Code Snippets
npm install kuzzle-sdk
$ npm install
$ npm run build
// with the classic require...
const { Kuzzle } = require('kuzzle-sdk')
// ... or with the new import directive.
import { Kuzzle } from 'kuzzle-sdk'
const { Kuzzle, WebSocket } = require('kuzzle-sdk');
const kuzzle = new Kuzzle(
new WebSocket('localhost', { port: 7512 })
);
try {
await kuzzle.connect();
const serverTime = await kuzzle.server.now();
console.log(serverTime);
} catch (erro
Community Discussions
Trending Discussions on kuzzle
QUESTION
i set a property called type
in some users with the kuzzle console, now i want to search for user who have the type
set to user
so i use a query for searching user.
Here is my code:
ANSWER
Answered 2022-Feb-16 at 08:33You can only search for properties that have been properly indexed.
You can check the mappings of the internal users collection with the security:getUserMapping API action or with the Admin Console.
Then you need to modify the mappings to include your new property:
QUESTION
Let's imagine this situation Alice and Bob are connected to the same kuzzle server. There is a document structured like this:
...ANSWER
Answered 2021-May-24 at 19:50Kuzzle does not expose Elasticsearch scripting features for security reasons (privilege escalation and heavy scripts that could DOS the server).
You should expose a specific API action to atomically appends new values to an array. This API action should use the Integrated Elasticsearch Client to use a painless script.
You can find more information about how to deal with array in the documentation
QUESTION
I have a kuzzle document with a json like this:
...ANSWER
Answered 2021-Apr-09 at 13:54To update one attribute from a document you can modify the attribute of your document and then send the whole document:
QUESTION
I have a CSV file with:
...ANSWER
Answered 2021-Apr-09 at 07:38You're right, to be able to search on the dob
field as a date you'll need to set the type date
in the mapping.
Concerning the creation of the documents, your data need to fit with the Elasticsearch date type field data model.
However, you might be able to adapt the mapping model using Elasticsearch Multi date format.
QUESTION
What's the best practice of kuzzle.auth.createApiKey usage ?
- Call it outside the app to generate a token then put the token in env variable and use it (kuzzle.jwt = ) inside cade ?
- or, call it in the code after the login to generate a token and set kuzzle.jwt = ?
- Or ?
Does someone have a link to a usage in actual code (the exemple in the documentation does not help me much).
...ANSWER
Answered 2021-Apr-09 at 07:53you may find more information about ApiKeys here
ApiKeys are authentication tokens that will never expire (by default) and will allow you to authenticate users without using an authentication strategy and the auth:login action.
Using an ApiKey following your second point doesn't make sense since calling kuzzle.auth.login
already gives you an authentication token, you will just need to log in again when the previous token expires or the app restarts.
Concerning your first point, if you want the app to always be authenticated until you revoke the ApiKey, yes it seems to be the right way to do it.
Also, to genereate the ApiKey outside your app you should use kourou, as mentionned in the link above.
QUESTION
I have the following Kuzzle S3 Plugin config:
...ANSWER
Answered 2021-Mar-11 at 18:16Ok - so I found a working answer
QUESTION
i am using js sdk of kuzzle, sometimes (after few days of running) all request fails and i get: "Insufficient permissions to execute this action" what's the best method to avoid it ? Should i check the jwt token is still valid before request ? or how to get notified of token expiration (i set it to 1 year) ?
...ANSWER
Answered 2021-Mar-09 at 16:32This error message indicate that your current user does not have the permissions to execute this API action. The error message is different when the anonymous user (default user when you are not authenticated) try to execute an API action that's need to be authenticated.
See the differences between error 401 and 403 here
About your authentication token, it's considered as a bad practice to have an authentication token that last a long period of time. (Even if Kuzzle authentication token can be revoked).
You should rather use the auth:refreshToken method to regularly refresh your authentication token)
Actually Kuzzle send a notification indicating that the current token is expired only when a subscription has been made to the realtime engine. This will certainly be extended to any persistent connection made to Kuzzle in a next release.
Concerning your usecase, you may want to use an API key to authenticate your SDK instance. There are revocable and can have infinite duration.
QUESTION
I'm trying to use Kuzzle with X-pack authentication enabled on Elasticsearch.
I've tried looking through the documentation of Kuzzle and I'm assuming the X-pack password should be stored in the secrets vault and the configuration should be set in the .kuzzlerc
file.
I'd love an explanation of how to setup this. 😊
...ANSWER
Answered 2021-Mar-09 at 13:12To achieve an X-Pack authentication to Elasticsearch you have to pass the credentials to the ES client constructor.
The .kuzzlerc
file can not be used with value from the Vault and you may not want to expose clear credentials here.
The best way to modify the client configuration is to use app.config.set method to inject your custom configuration:
QUESTION
We have kuzzle V2 as a broker, and as a data warehouse. Our android devices will subscribe to a collection record, and get updates in realtime.
but the android version we are supporting is <7, which uses java 7 but there is no kuzzle sdk for java other than java 8
any suggestions on how to make an android device real-time subscribe to a collection record with record id in java 7?
...ANSWER
Answered 2020-Dec-11 at 12:38We just released a JVM SDK, written in Kotlin and compatible with Java 6+ It's very similar with the now deprecated Java SDK, and you can find here how to migrate from it: https://docs.kuzzle.io/sdk/java/3/migration/how-to/
QUESTION
I am using kuzzle (2.6) as a backend to my app. I'd like to encrypt data stored to Kuzzle by the users of the app, and organize encryption keys separate from the database. The key holding entity (keyStore for short) should give keys only to users that are truly registered in the database, without becoming able to access the user data itself.
So I'm trying to pass, from the app, when the user is logged in, a together with a corresponding
obtained e.g. via
kuzzle.auth.login('local', {username: , password: })
to the keyStore via https
. The keyStore should send the information to the Kuzzle database, where a Kuzzle plugin can verify the user exists. If Kuzzle confirms the identity of the user to the keyStore, the keyStore will hand out a key to the user such that the user can encrypt/decrypt its data.
In short:
Is there any way I can let a plugin validate that a given and a given
belong to the same user?
and
would both not be available to the plugin.
ANSWER
Answered 2020-Nov-30 at 13:57Kuzzle core developer here.
Right now we don't have a public API to get the user linked to an authentication token.
Still, you can use the auth:checkToken API action to verify the token validity and the jsonwebtoken package used by Kuzzle to retrieve the user kuid
from the token.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kuzzle
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page