Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
017566a2
Commit
017566a2
authored
Aug 25, 2015
by
Abhijit Menon-Sen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use AES256 if the cipher is not write-whitelisted
parent
47bcdf59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/parsing/vault/__init__.py
+2
-2
No files found.
lib/ansible/parsing/vault/__init__.py
View file @
017566a2
...
...
@@ -132,11 +132,11 @@ class VaultLib:
if
self
.
is_encrypted
(
b_data
):
raise
AnsibleError
(
"data is already encrypted"
)
if
not
self
.
cipher_name
:
if
not
self
.
cipher_name
or
self
.
cipher_name
not
in
CIPHER_WRITE_WHITELIST
:
self
.
cipher_name
=
u"AES256"
cipher_class_name
=
u'Vault{0}'
.
format
(
self
.
cipher_name
)
if
cipher_class_name
in
globals
()
and
self
.
cipher_name
in
CIPHER_WHITELIST
:
if
cipher_class_name
in
globals
():
Cipher
=
globals
()[
cipher_class_name
]
this_cipher
=
Cipher
()
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment