Using HSQLDB with encryption - encryption

We are creating a self contained system with Spring Boot and for persistence we are using HSQLDB.
Does HSQLDB provide an option to encrypt the data being stored ?
If it does not, is there any other solution to encrypt the data for Spring Boot and HSQLDB combination ?

HSQLDB supports database persistence encryption. See the Guide:
http://www.hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_encrypted_database

Related

ASP.NET Core on AWS Lambda - Data Protection keys store as Env Variable

NET Core web service, hosted on AWS Lambda, which requires built-in Cookie Authentication. I therefore need to share Data Protection key between multiple lambda instances.
I would like to save key either as environment variable in Lambda or through AWS Secrets Manager (or how exactly is it called)
Can I configure Data Protection to read key from Environment Variable? Has anyone done something like this yet?
Thanks!
Have you taken a look at the AWS DataProtection storage provider using SSM Parameter Store? https://github.com/aws/aws-ssm-data-protection-provider-for-aspnet

CosmoDB with Qt

Hello and I am new to developing with Qt for cross platform development. My current goal is to be able to cache data from a CosmosDB with my app that I've developed in Qt. I've had no problem setting up the CosmosDB, but I am confused at what the best way to communicate with the database is.
Do I need to create my own API to talk with the database? Are there libraries out there already do what I want?
You can use either standard HTTP requests, or use SQL API.
Azure Cosmos DB exposes resources through the REST APIs that can be called by HTTP/HTTPS requests. How can I develop apps with the SQL API
Azure Cosmos DB REST API reference
Also Azure Cosmos DB offers a query language as an interface to query JSON documents. The language supports a subset of ANSI SQL grammar and adds deep integration of JavaScript object, arrays, object construction, and function invocation. Microsoft shows exmaples here

How to establish a connection to DynamoDB using python using boto3

I am bit new to AWS and DynamoDB.
My aim is to embed a small piece of code.
The problem I am facing is how to make a connection in python code. I made a connection using AWS cli and then entering access ID and key.
But how to do it in my code as i wish to deploy my code on other systems.
Thanks in advance !!
First of all read documentation for boto3 dynamo, it's pretty simple:
http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html
If you want to provide access keys while connecting to dynamo, you can do the following:
client = boto3.client('dynamodb',aws_access_key_id='yyyy', aws_secret_access_key='xxxx', region_name='***')
But, remember, it is against best practices from security perspective to store such keys within the code.
For best security efforts use IAM roles.
boto3 driver will automatically consume IAM role if it is attached to the instance.
Link to the docs: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
Also, if IAM roles is to complicated, you can install and aws-cli and run aws configure on your server, and boto3 will use the key from here (less secure than a previous approach).
After implementing one of the options, you can connect to DynamoDB without the keys from code:
client = boto3.client('dynamodb', region_name='***')

Log4net log message to Documentdb

I have used relational database with Log4Net to log message using Log4Net Configuration.
I am not sure how to configure and use Document Db ?
You can wrap your log messages as JSON documents and persist. You can use any of the SDK's available in .NET, Java, Node.js or Python or there are REST API's available to perform CRUD operations in DocDB.
https://azure.microsoft.com/en-us/documentation/articles/documentdb-sdk-dotnet/
https://msdn.microsoft.com/en-us/library/azure/dn781481.aspx

OData Service for SQL Azure read only?

according to here: http://watwp.codeplex.com/wikipage?title=Architecture%20Diagrams
The SQL Azure OData Service is a sample WCF Data Service built on top
of a SQL Azure (or SQL Server) database using Entity Framework 4.1
Code First.
The current version of this service only supports Read operations and,
in addition to exposing the SQL Azure database as an OData feed, it
adds a security layer to manage authentication / authorization.
so does it mean the my windows phone app will only be able to read from sql azure and not write to ? or can i do it by creating a data service on the asp.net server ?
i'm a little confused.
What this is saying is that the sample OData service that they provided only implements read operations. If you want read and write, you're going to have to roll that yourself.

Resources