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
25607e5c
Commit
25607e5c
authored
Nov 17, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When run in FIPS mode, allow vault to fail only when using legacy format
parent
4ae2d58d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
lib/ansible/utils/vault.py
+12
-1
No files found.
lib/ansible/utils/vault.py
View file @
25607e5c
...
...
@@ -26,9 +26,18 @@ from io import BytesIO
from
subprocess
import
call
from
ansible
import
errors
from
hashlib
import
sha256
# Note: Only used for loading obsolete VaultAES files. All files are written
# using the newer VaultAES256 which does not require md5
from
hashlib
import
md5
try
:
from
hashlib
import
md5
except
ImportError
:
try
:
from
md5
import
md5
except
ImportError
:
# MD5 unavailable. Possibly FIPS mode
md5
=
None
from
binascii
import
hexlify
from
binascii
import
unhexlify
from
ansible
import
constants
as
C
...
...
@@ -358,6 +367,8 @@ class VaultAES(object):
# http://stackoverflow.com/a/16761459
def
__init__
(
self
):
if
not
md5
:
raise
errors
.
AnsibleError
(
'md5 hash is unavailable (Could be due to FIPS mode). Legacy VaultAES format is unavailable.'
)
if
not
HAS_AES
:
raise
errors
.
AnsibleError
(
CRYPTO_UPGRADE
)
...
...
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