How to create chef databags with chef-vault - json

I want to create a databag with credentials of servers which needs to be encrypted.
Do I need to create chef-vault first ?

I hope this https://blog.chef.io/2016/01/21/chef-vault-what-is-it-and-what-can-it-do-for-you/ will help you. When it comes to editing a vault, I would rather delete and recreate a vault than edit it as it's easy to do.

Related

Display form using extension in magento

I am a novice to magento.
Task at Hand
I need to create the extensions for magento.Now i need to create an extension that is used to display the form. The form values are needed to be stored in the database and to be mailed to the admin.
Any suggestions in this regard will be appreciated.
I am giving you one link will same as your requirements and it will totally free so you can use it for the reference.
http://www.magestore.com/magento-product-questions-extension.html
Thanks
Hi you can download extensions from magento connect according to your need, you can try this this

Yii2 Advance not update data after save file to remote server

I'm used Yii2 Advance to develop system via remote server. When I save file editor will upload it to server automatic. After save I refresh browser. It's still show old data not update from new file. And about 1 min it will up to date.
I test the different folder on server It's work find, Update when save file.
Please help me.
Thanks and best regards,
Woody
Well, Now I can solve this problem by myself.
This effect is PHP function "OPCache" it come with PHP 5.5 or higher.
We can disable OPCache by many way but I used this solution.
Open autoload.php from /yii2project/vender/autoload.php and add this code.
opcache_reset();
I don't know what the best way in Yii2 for reset opcache like this. If it has please reply this post.
Thank you everyone and to think this topic will help you.

Yii2 Structure for Multitenancy System?

I am using Yii2 advanced structure, but I need a "Second" backend that is going to control the tenant users.
I just copy the backend folder and change the configuration for the cookies and the User Model. I don't know if this will be enough.
I just want some advice on how to do it, if someone already did it.
Thanks !
I have done something similar some time ago. Besides what you have done I have also changed the User component too to log in a different kind of user.
You should also add more folders in the tests so you can test that part too.
Anyway that should be enough yes.

Add data to database from VB program -> safe way?

I have developed a little VB program. I want the user to have the option to submit certain usage statistics/data (like some basic info about their system etc) to me. I want this data to end up in MySql db, so I can create queries/reports.
But what is the best/safest way to accomplish this? Of course, I could use the MySQL client, and just insert the data in the database. But is this a safe way? Using reverse engineering tools you could easily discover the database credentials, and add rubbish to the database (of course I would create a user that only can do inserts).
So, what would be a good approach for this?
Thanks
I think store-procedure is good solution.
link must use with class w

Cleaning a Production Database for use in Testing

I'm building a local vm for doing web dev rather than using our on site development. I need a database locally, but I don't want to just pull down a production db and use that as it has information that, while not protected by HIPAA or anything, should not be available in the case of laptop theft. Are there any apps or recommended practices to sanitize this data so that I am able to pull down a db, clean it, and install it in my vm?
Clarification: What I'm really looking for is an app that would allow me to mark the specific columns as sensitive and whack those ones whenever I imported a new copy of the DB.
Sounds like what you need is a data generator, one that will populate your database with bogus data. Redgate has a good one, but I don't know if it will work with mysql. Maybe this will help you out?
TRUNCATE table;
or
DELETE FROM table WHERE true;
on any table that you don't want to keep the data of, and then either set dummy values for any sensitive user data, or delete all user data and just turn a few accounts into local testing accounts (user 'testadmin', password 'password', etc).
The more interesting question that you should be asking yourself is: Why does my database not already have skeleton sql migrations that I can run to create a clean database? What happens when you need to create a separate production instance on another server?