fluent-plugin-jwt-filter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd7f4b18f42e3405714906fa92d248394ddad883
4
- data.tar.gz: bbe9fa3f847a171bb203d168d58fcd8a154a5739
3
+ metadata.gz: ccd4c3361ee9057943cb13416f9b1b49c6352459
4
+ data.tar.gz: a4f2c7e65261445e954bccd246085967046e34e3
5
5
  SHA512:
6
- metadata.gz: 6b06d05f5e2bba814446fd27dc0f3bd8b1b66f69e403459a983d43bc0cb3cf74abe877c873ce3498676657f8e0fa067a7b78c4d50b044f6d2f45499afd9bfe7f
7
- data.tar.gz: 2ed456eb355b18f882e1e090771daa76c60401194aeb3f276790fc45a39699eea0e0a9b3a7baeea08457598bc3664bdfe3f9b22a25c4d0ccbf3527609ec02615
6
+ metadata.gz: 29713f247c1d5466a98ffb45b0618aaa688d5573e499d11741dd2a2b07ecb033f9118fe691d0d88ff847ab0c53bc86a6f78700b8a79462bc304697a187069291
7
+ data.tar.gz: 922799b2b98ca4fd3680369160d1d3977cb56d40b365e17ca60cc673f7fd28413207ba4b0e30798e8ec17511b492082c481a0146bde71815dd391df63f1fe558
data/README.md CHANGED
@@ -54,7 +54,7 @@ In the following example, input from in_tail plugin is encrypted by jwt-filter a
54
54
 
55
55
  For encryption, the following options are available.
56
56
 
57
- - **jwk_pub_file**: is a file name which records public key of JSON Web Key (JWK). JWK public and private key can be easily generated by [jwk_tool](https://github.com/toyokazu/jwk-tool).
57
+ - **jwk_pub_file**: is a file name which records public key of JSON Web Key (JWK). JWK public and private key can be easily generated by [jwk_tool](https://github.com/toyokazu/jwk-tool) (default name: key.pub).
58
58
  - **block_cipher_alg**: is an algorithm to encrypt the contents. Block cipher is used for encryption and symmetric key of block cipher is encrypted by key encryption algorithm. Currently json-jwt supports A128GCM, A256GCM, A128CBC-HS256 and A256CBC-HS512 (default A128GCM and require "ruby > 2.0.0").
59
59
  - **key_encryption_alg**: is an algorithm to encrypt block cipher encryption key. Basically public key algorithm is assumed. If JWK is created as symmetric key, this option is not required (default RSA1_5).
60
60
 
@@ -87,7 +87,9 @@ In the following example, input from in_forward plugin is decrypted by jwt-filte
87
87
 
88
88
  For decryption, the following options are available.
89
89
 
90
- config_param :method, :string, :default => "encrypt"
91
- config_param :jwk_file, :string, :default => "key"
90
+ - **jwk_file**: is a file name which records private key of JSON Web Key (JWK). As already mentioned in Encryption section, JWK public and private key can be easily generated by [jwk_tool](https://github.com/toyokazu/jwk-tool) (default name: key)
92
91
 
93
- - **jwk_file**: is a file name which records private key of JSON Web Key (JWK). As already mentioned in Encryption section, JWK public and private key can be easily generated by [jwk_tool](https://github.com/toyokazu/jwk-tool).
92
+ <filter test>
93
+ @type jwt
94
+ jwk_file fluent/key
95
+ </filter>
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-jwt-filter"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.3"
8
8
  spec.authors = ["Toyokazu Akiyama"]
9
9
  spec.email = ["toyokazu@gmail.com"]
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-jwt-filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toyokazu Akiyama