There is a demo plugin that allows the devices to get the server's time. The current date and time is not very convenient for parsing in a microcontroller, and I would like to change the response to a Unix timestamp.
In the documentation it is stated that this is possible, but it not very clear how. Is there a guide on how can I configure the plug-in?
Also, getting the server's time is very important for non-ntp enabled devices (or when inside a VPN, without access to an NTP server). Are there any plans to integrate this functionality to the core of Thingsboard, or it will remain a demo plug-in?
The plugin you talk about is the part of the core now. You can edit plugin output format in the configuration of the plugin. Go to Plugins->your plugin->edit mode
Related
There are so many posts about this, and being inexperienced in Git doesn't help to get a good grip on this.
I just joined a new company that dont have CI at all, so jumped on the opportunity to create a proof of concept (using Jenkins locally on my Windows box for now, until I get a dedicated server for it). I've used and semi-configured Jenkins in the past, using SVN, and it was so simple and fast to get it working. In this company, they don't use SVN, only GitLab (I believe its private - we have our own site, not .gitlab.com), and nothing works for me.
I followed a few turorials, but mainly this seemed like the one that meets my needs. It didn't work (the reasons and symptoms are probably worth a post of its own).
When I look at Gitlab Hook plugin in Jenkins, I see a big red warning saying it is not safe ("Gitlab API token stored and displayed in plain text").
So my question, for this POC that i am working on, how serious is this warning? Should I avoid this plugin and then this method altogether because of this?
And while i'm at it, I might also throw an additional general question to open up my options here ... If I want Jenkins to work with Gitlab (meaning, I checkin something and it triggers a build), do I absolutely need to use the SSH method, or it could work with HTTPS as well?
Thank you.
This is indeed SECURITY-263 / CVE-2018-1000196
Gitlab Hook Plugin does not encrypt the Gitlab API token used to access Gitlab. This can be used by users with master file system access to obtain GitHub credentials.
Additionally, the Gitlab API token round-trips in its plaintext form, and is displayed in a regular text field to users with Overall/Administer permission. This exposes the API token to people viewing a Jenkins administrator’s screen, browser extensions, cross-site scripting vulnerabilities, etc.
As of publication of this advisory, there is no fix.
So:
how serious is this warning?
Serious, but it does require access to the Jenkins server filesystem, or it requires Jenkins administration level. So that risk can be documented, acknowledged and, for now, set aside, provided mitigation steps are in place, ie.:
the access to the Jenkins server is properly monitored
the list of Jenkins admin account is properly and regularly reviewed.
do I absolutely need to use the SSH method, or it could work with HTTPS as well?
You can use https for accessing GitLab repositories in a Jenkins job.
But for the GitLab hook plugin, SSH remains the recommended way, considering you would use a token (instead of a user account name/password), that you can revoke at any time.
I need to check how much response time of a web service .Suppose a web service is being hit by 10000 users at same time so how much time it is taking both on local and production. I need to check for both get and post request.I have look on internet but I am getting jmeter which I think is for java.Can anyone suggest me tools for rails.
Try blazemeter. There are some restrictions on free tests but still it may help. Additionally maybe you can use native ruby benchmark command.
I downloaded Gerrit, unpacked it and started the server with bin/gerrit.sh start. Then I noticed that I cannot log into the web frontend and looked for my options. Since all I would like to do is add a test project and play around with it to explore the features, I would actually like to avoid authentication at all.
Is there a way to get this going without openid or ldap. auth.type=http would be just right, but this again requires an apache in front. Or can I just configure jetty to do it. If so, how?
I'm building a social network, and want to use Couchbase as backend, but if I'll use sync gateway after sometime I'll have a lot of data on device that user doesn't need to use.
How I can get/post/put info to Couchbase Server without sync function or how I can clear local database without deleting information from server?
I didn't have a 100% working solution, but want to share some information that I've got from community and representatives of Couchbase London & California.
First of all you can use CouchCocoa for working directly with SyncGateway, but it doesn't work as you expects, some part of your needs you can resolve using CouchCocoa.
Another way to build your own API proxy, but when you're a mobile developer only, it isn't a great idea. But, it could be created on different languages.
And as the last one thing is using Purge function. There are links to documentation that Couchbase team have now: http://wiki.apache.org/couchdb/Purge_Documents and http://couchbase.github.io/couchbase-lite-ios/docs/html/interfaceCBLDocument.html#a06bf7fd41678953924a56f76a921fe5a
Also you can go to Google Group and see all issues and how to fix/resolve/find workaround. Also, from our discussion with Couchbase representatives there will be a thread about how to get rid of synced info and so on. Link to Google Group https://groups.google.com/forum/#!forum/mobile-couchbase.
if you have any question, ask me, I'll try to help in the information area that I've already discovered.
I'm wanting to test sqlite in dart, however the only implementation that I could find is by Sam McCall on Github, however it's out of date. While I could attempt to bring it up-to-date, I'm not very familiar with Dart yet.
I also read but haven't been able to confirm that sqlite access is provided in the VM, but only for non-html programs. The quote where I read that says "There may be additional problems, because the Dart executable now includes the sqlite library, as part of NSS (Network Security Services, from Mozilla), which is used to implement secure sockets in dart:io.". As I said, I'm not sure if this is correct.
I want to use sqlite with "dart:html", and "dart.io" can't be used with "dart.html", however using it in a console application would be a start.
While dart provides indexed_db, I don't see that as a replacement for sql. Also, while database access may be considered mainly a server-side requirement, there is obviously also the need on the client (eg. when offline etc.).
There would also be the possible problem of conversion to js, but that is not a concern of mine.
Any help with this would be much-appreciated.
As Ladislav mentions, you cannot use sqlite with dart:html, because browser-based apps can only access what the browser platform provides.
WebSQL is basically Sqlite. It still exists, is well supported on mobile, but the spec is dead. It should work fine if that's what you want.
For command-line Dart, you may want to check out SqlJocky, which is MySQL drivers for Dart command-line VM. Check it out here: https://github.com/jamesots/sqljocky
Hope that helps!