Skip to content

Latest commit

 

History

History
206 lines (152 loc) · 5.95 KB

CHANGELOG.md

File metadata and controls

206 lines (152 loc) · 5.95 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

0.9.2 - 2018-08-10

Fixed

  • Error message shown in case missing "Application Default Credentials" (#14).

0.9.1 - 2018-08-09

Fixed

  • Failed to base64-decode _ on kubesec edit -if (#15).

0.9.0 - 2018-06-25

Added

  • stringData support (--string-data/-s) (#11). e.g.

    $ kubesec create secret-name -s k=v
    
    apiVersion: v1
    kind: Secret
    metadata:
      name: secret-name
    stringData:
       k: PYsYSsk...
    type: Opaque
    # kubesec:v:4
    # ...
  • Alpine Linux support (binaries are now statically-linked) (#10).

0.8.0 - 2018-05-06

Changed

0.7.0 - 2018-04-14

Added

  • Ability to specify --annotation/-as and --label/-ls when createing/patching secrets. e.g.

    $ kubesec create secret-name \
        -a origin=https://... \
        -a version=0.1.0+$(date -u +%Y%m%dT%H%M%SZ).$(git rev-parse --short HEAD) \
        -l release=canary
        -d k=v
    
    apiVersion: v1
    data: 
       k: PYsYSsk...
    kind: Secret
    metadata:
      annotations:
        origin: https://...
        version: 0.1.0+20180415T040932Z.a9070e4
      labels:
        release: canary
      name: secret-name
    type: Opaque
    # kubesec:v:3
    # ...
  • kubesec encrypt secret.yml --parent=path/to/secret.enc.yml
    (encrypts secret.yml using keys & DEK (preserving IVs in case of "no change") from secret.enc.yml).

    Useful in "decrypt, modify, re-encrypt-preserving-DEK" scenarios.

  • -x shorthand for --cleartext.

  • A guard against failed to base64-decode <key>
    ("data" values are now checked to be base64-encoded before being encrypted).

Deprecated

  • kubesec merge.

0.6.2 - 2018-04-12

Fixed

  • unknown shorthand flag: 'i' in -i / unknown flag: --in-place
    (in case of kubesec patch -i/--in-place)

0.6.1 - 2018-04-06

Fixed

  • invalid argument "k=\"" for "-d, --data" flag: line 1, column 2: bare " in non-quoted-field
    (" inside -d/--data value handling)

0.6.0 - 2018-03-01

Added

  • --metadata namespace=... support (#5).

0.5.0 - 2018-02-03

Added

  • kubesec create for Secret bootstraping (from a set of key=value pairs / files):

    $ kubesec create secret-name \
        --data key=value \
        --data file:pki/ca.crt \
        --data file:key.pem=pki/private/server.key

(kubesec create --help for more).

  • kubesec patch for batch Secret editing:

    $ kubesec patch secret.enc.yml --data key=value --data file:ta.key

(kubesec patch --help for more).

0.4.2 - 2017-12-27

Fixed

  • Error reported by kubesec decrypt --template=... when data cannot be decrypted.

0.4.1 - 2017-11-29

Fixed

  • --template rendering (html-significant characters are no longer escaped).

0.4.0 - 2017-11-29

Added

  • kubesec decrypt --template <go-template-string> option. e.g.

    $ kubesec decrypt --cleartext \
        --template=$'USERNAME={{ .data.USERNAME }}\nPASSWORD={{ .data.PASSWORD }}' \
        k8s/staging.secret.enc.yml > .env
    
    $ cat .env
    
    USERNAME=username
    PASSWORD=password    

0.3.1 - 2017-09-29

Fixed

  • MAC mismatch warning when kubesec editing unencrypted Secret.
  • List of keys reported when kubesec editing with --key option provided.

0.3.0 - 2017-09-16

Added

  • MAC (AES-GMAC, covering both "data" and --key(s)).

  • --cleartext flag (available for encrypt & decrypt commands). e.g.

    $ kubesec decrypt k8s/staging.secret.enc.yml
    
    data:
      key: dmFsdWU= 
    ...
    
    $ kubesec decrypt --cleartext k8s/staging.secret.enc.yml
    
    data:
      key: value
    ...

Fixed

  • edit --rotate having no effect unless "data" is modified.

Changed

  • "" (empty string) encryption to produce an opaque value.

0.2.0 - 2017-08-29

Added

  • Google Cloud KMS and AWS KMS backends.
  • --key=pgp:default alias.
  • Ability to specify a different set of keys for data encryption when kubesec editing (using --key=...).

0.1.1 - 2017-08-15

Fixed

  • gpg lookup on macOS (#2)

0.1.0 - 2017-08-11