data-minimization-service

command module
v0.0.0-...-5e76e0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

data-minimization-service

Build Status Go Report Card

A simple data minimization microservice wrapped around go-minimizer.

JSON interface

The data minimization service receives a JSON payload indicating the data, the type of data, and the level of minimization to apply. These are written to the /data endpoint. The treated data is then returned directly as result output.

The type here refers to the matching data type in go-minimizer, such as name, email, etc. and is always a named string. level similarly matches the go-minimizer minimization levels as a string representation. There are a number of exceptions to the required inputs based on the minimization level:

  • If anonymize is specified, the input data may be omitted.
  • If tokenize is specified, the input and type can be omitted.
  • If mask is specified, input is required, but type can be omitted. A mask pattern may also be specified via pattern.

Input schema:

{ 
  "input": <input data>,
  "type": "string",
  "level": "fine" | "coarse" | "anonymize" | "tokenize" | "mask",
  "pattern": <optional mask pattern>
}

Output schema:

{
  "result": <output data>
}

Consumers of the JSON response must treat the result as a dynamic data type if they wish to use it generically, as the data type backing the result will vary depending on the type of input data and the minimizer applied. As there is no way to extract data from the service without entering something first, the caller should always know which data type it is working with.

Web Interface

A simplistic web interface is also included, accessible from the top-level index page.

Features and bugs

Please file feature requests and bugs at the issue tracker.

License

Licensed under the terms of the Apache 2.0 license, the full version of which can be found in the LICENSE file included in the distribution.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL