Skip to content

Commit

Permalink
Prepare new release
Browse files Browse the repository at this point in the history
  • Loading branch information
cavemandaveman committed Jun 20, 2018
1 parent 1a16af0 commit 70c394f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nifi-encrypt-value-bundle

NiFi processor to encrypt JSON values
NiFi processor to encrypt JSON values. Encrypts the values of the given fields of a FlowFile. The original value is replaced with the hashed one.

## Deploy Bundle

Expand Down Expand Up @@ -32,6 +32,6 @@ $NIFI_HOME/bin/nifi.sh start

### TODO

- Add support for Avro files
- ~~Add support for Avro files~~
- Support multi-level JSON
- ~~Add support for more hashing algorithms~~
6 changes: 3 additions & 3 deletions nifi-encrypt-value-nar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<parent>
<groupId>com.nineteen04labs</groupId>
<artifactId>nifi-encrypt-value-bundle</artifactId>
<version>18.06.1</version>
<version>18.06.2</version>
</parent>

<artifactId>nifi-encrypt-value-nar</artifactId>
<version>18.06.1</version>
<version>18.06.2</version>
<packaging>nar</packaging>
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
Expand All @@ -34,7 +34,7 @@
<dependency>
<groupId>com.nineteen04labs</groupId>
<artifactId>nifi-encrypt-value-processors</artifactId>
<version>18.06.1</version>
<version>18.06.2</version>
</dependency>
</dependencies>

Expand Down
7 changes: 1 addition & 6 deletions nifi-encrypt-value-processors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.nineteen04labs</groupId>
<artifactId>nifi-encrypt-value-bundle</artifactId>
<version>18.06.1</version>
<version>18.06.2</version>
</parent>

<artifactId>nifi-encrypt-value-processors</artifactId>
Expand Down Expand Up @@ -50,11 +50,6 @@
<artifactId>jackson-databind</artifactId>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-avro</artifactId>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-mock</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public class EncryptValue extends AbstractProcessor {
.displayName("FlowFile Format")
.description("Specify the format of the incoming FlowFile")
.required(true)
// TODO: Use a Set with at least JSON and AVRO as allowable values
.allowableValues("JSON", "AVRO")
.defaultValue("JSON")
.build();
Expand Down Expand Up @@ -172,6 +171,7 @@ private static String avroToJsonString(InputStream input, Schema schema) throws
for (GenericRecord datum : streamReader) {
writer.write(datum, encoder);
}
streamReader.close();
encoder.flush();
output.flush();
return new String(output.toByteArray());
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<groupId>com.nineteen04labs</groupId>
<artifactId>nifi-encrypt-value-bundle</artifactId>
<version>18.06.1</version>
<version>18.06.2</version>
<packaging>pom</packaging>

<modules>
Expand Down

0 comments on commit 70c394f

Please sign in to comment.