Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update pnzr configuration v1.0. #81

Closed
wants to merge 31 commits into from
Closed

update pnzr configuration v1.0. #81

wants to merge 31 commits into from

Conversation

ieee0824
Copy link
Contributor

@ieee0824 ieee0824 commented Oct 13, 2017

Update pnzr configuration.
The old configuration version is prototype and new configuration is 1.0 .
Leave prototype configuration for compatibility.

format

Prototype configuration was like json format.
Sometimes there are times when it is not it.
For example, when you embed variables.

prototype-base.json

{
    "foo": $bar,
    "num": 1,
    "name": "john doe"
}

V1 configuration change to a format conforming to json format.
Adhere fundamentally to prototype configuration.
But it makes the variable part a string type.

v1-base.json

{
    "Version: 1.0,
    "foo": "$bar",
    "num": 1,
    "name": "john doe"
}

encryption

Prototype configuration encrypted all file.
Although confidentiality is guaranteed, it is inconvenient in operation.
We hope that key is plaintext, and val is ciphertext.
v1 configuration is support encryption only value.

plain.json

{
    "array": [
        "foo",
        "bar",
        "baz"
    ],  
    "count": 1,
    "object": {
        "age": 35, 
        "name": "john doe"
    }   
}

encrypt.json

{
    "encryption_type": "kms",
    "values": {
        "array": "AQECAHh5q0tFgkoZemC6czjL/QJ6+DlDwjLL6N3YmGIcYUKyuwAAAHcwdQYJKoZIhvcNAQcGoGgwZgIBADBhBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDIRK2VGDrLTD4ekYwQIBEIA0nQWhWUh5k3yNgT3rbpep3y/MdaKiR91dELsq7sGn6VURTXom7VCfWnjqKGgRXLQblyiDNg==",
        "count": "AQECAHh5q0tFgkoZemC6czjL/QJ6+DlDwjLL6N3YmGIcYUKyuwAAAGcwZQYJKoZIhvcNAQcGoFgwVgIBADBRBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDKEwXYjUdAZtncBUWAIBEIAkVL9SjUKh/y1Z9uyN4AVVxdKvozyPhDKRSVcCgvwt6AXDstRF",
        "object": {
            "age": "AQECAHh5q0tFgkoZemC6czjL/QJ6+DlDwjLL6N3YmGIcYUKyuwAAAGgwZgYJKoZIhvcNAQcGoFkwVwIBADBSBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDBltg9ZakwuhxsVk3gIBEIAlwhwmso+P7r3IHYNY9I8S4p108rdTtk+RlA22bRb3S43iWWVeQA==",
            "name": "AQECAHh5q0tFgkoZemC6czjL/QJ6+DlDwjLL6N3YmGIcYUKyuwAAAG4wbAYJKoZIhvcNAQcGoF8wXQIBADBYBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDFgicHKmWFkGYRThOgIBEIArtJLcB4IyCkk09vseFE+Hfepcmk+ASMhazPisGGLQF/HteOE+MTFSH1jxGQ=="
        }
    }
}

@ieee0824 ieee0824 requested a review from na-o-ys October 13, 2017 07:17
@ieee0824 ieee0824 closed this Oct 13, 2017
@ieee0824 ieee0824 deleted the conf2 branch October 13, 2017 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant