summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2016-09-13 07:30:17 -0700
committerToshio Kuratomi <a.badger@gmail.com>2016-09-15 15:22:06 -0700
commite70066a6f72b2d786b2fb782aceedad2a9c3a12e (patch)
treecb5f0bf6a399bffaf0115896c08140a762329acc /CHANGELOG.md
parent0139298786ca2355925d54ad333fa93db976cf04 (diff)
downloadansible-e70066a6f72b2d786b2fb782aceedad2a9c3a12e.tar.gz
Many Cleanups to vault
* Make is_encrypted_file handle both files opened in text and binary mode On python3, by default files are opened in text mode. Since we know the encoding of vault files (and especially the header which is the first set of bytes) we can decide whether the file is an encrypted vault file in either case. * Fix is_encrypted_file not resetting the file position * Update is_encrypted_file to check that all the data in the file is ascii * For is_encrypted_file(), add start_pos and count parameters This allows callers to specify reading vaulttext from the middle of a file if necessary. * Combine VaultLib.encrypt() and VaultLib.encrypt_bytestring() * Change vault's is_encrypted() to take either text or byte strings and to return False if any part of the data is non-ascii. * Remove unnecessary use of six.b * Vault Cipher: mark a few methods as private. * VaultAES256._is_equal throws a TypeError if given non byte strings * Make VaultAES256 methods that don't need self staticmethods and classmethods * Mark VaultAES and is_encrypted as deprecated * Get rid of VaultFile (unused and feature implemented in a different way) * Normalize variable and parameter names on plaintext, ciphertext, vaulttext * Normalize variable and parameter names on "b_" prefix when dealing with bytes * Test changes: * Remove redundant tests( both checking the same byte string) * Fix use of format string without format operator * Enable vault editor tests on python3 * Initialize the vault_cipher for VaultAES256 testing in setUp() * Make assertTrue and assertFalse take the actual method calls for better error messages. * Test that non-ascii byte strings compare correctly. * Test that unicode strings and ints raise TypeError * Test-specific: * Removed test_methods_exist(). We only have one VaultLib so the implementation is the assurance that the methods exist. (Can use an abc for this if it changes). * Add tests for both byte string and text string input where the API takes either. * Convert "assert" to unittest assert functions or add a custom message where that will make failures easier to debug. * Move instantiating the VaultLib into setUp().
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bb2276528f..abd93d9abe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -168,6 +168,22 @@ Ansible Changes By Release
* removed previously deprecated ';' as host list separator.
* Only check if the default ssh client supports ControlPersist once instead of once for each host + task combination.
+
+###For custom front ends using the API:
+* ansible.parsing.vault:
+ * VaultLib.is_encrypted() has been deprecated. It will be removed in 2.4.
+ Use ansible.parsing.vault.is_encrypted() instead
+ * VaultFile has been removed. This unfinished code was never used inside of
+ Ansible. The feature it was intended to support has now been implemented
+ without using this.
+ * VaultAES, the older, insecure encrypted format that debuted in Ansible-1.5
+ and was relaced by VaultAES256 less than a week later, now has a deprecation
+ warning. **It will be removed in 2.3**. In the unlikely event that you
+ wrote a vault file in that 1 week window and have never modified the file
+ since (ansible-vault automatically re-encrypts the file using VaultAES256
+ whenever it is written to but not read), run ``ansible-vault rekey
+ [filename]`` to move to VaultAES256.
+
## 2.1.2 "The Song Remains the Same"
###Deprecations: