no log passwords (#21229)

* no log passwords

* removed unneeded no_log
This commit is contained in:
Brian Coca 2017-02-10 15:13:59 -05:00 committed by GitHub
parent 2f6966965e
commit 74e8aa22af
30 changed files with 36 additions and 43 deletions

View file

@ -487,7 +487,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
short_hostname=dict(type='str'), short_hostname=dict(type='str'),
vm_size=dict(type='str', choices=[], default='Standard_D1'), vm_size=dict(type='str', choices=[], default='Standard_D1'),
admin_username=dict(type='str'), admin_username=dict(type='str'),
admin_password=dict(type='str', ), admin_password=dict(type='str', no_log=True),
ssh_password_enabled=dict(type='bool', default=True), ssh_password_enabled=dict(type='bool', default=True),
ssh_public_keys=dict(type='list'), ssh_public_keys=dict(type='list'),
image=dict(type='dict'), image=dict(type='dict'),

View file

@ -613,7 +613,7 @@ class ClcServer:
ttl=dict(default=None), ttl=dict(default=None),
managed_os=dict(type='bool', default=False), managed_os=dict(type='bool', default=False),
description=dict(default=None), description=dict(default=None),
source_server_password=dict(default=None), source_server_password=dict(default=None, no_log=True),
cpu_autoscale_policy_id=dict(default=None), cpu_autoscale_policy_id=dict(default=None),
anti_affinity_policy_id=dict(default=None), anti_affinity_policy_id=dict(default=None),
anti_affinity_policy_name=dict(default=None), anti_affinity_policy_name=dict(default=None),

View file

@ -505,7 +505,7 @@ def main():
argument_spec = cs_argument_spec() argument_spec = cs_argument_spec()
argument_spec.update(dict( argument_spec.update(dict(
name=dict(required=True, aliases=['url']), name=dict(required=True, aliases=['url']),
password=dict(default=None, not_log=True), password=dict(default=None, no_log=True),
username=dict(default=None), username=dict(default=None),
hypervisor=dict(choices=CS_HYPERVISORS, default=None), hypervisor=dict(choices=CS_HYPERVISORS, default=None),
allocation_state=dict(default=None), allocation_state=dict(default=None),

View file

@ -599,9 +599,7 @@ def main():
type='str', type='str',
default='{}/.config/lxc/client.crt'.format(os.environ['HOME']) default='{}/.config/lxc/client.crt'.format(os.environ['HOME'])
), ),
trust_password=dict( trust_password=dict( type='str', no_log=True )
type='str',
)
), ),
supports_check_mode=False, supports_check_mode=False,
) )

View file

@ -362,9 +362,7 @@ def main():
type='str', type='str',
default='{}/.config/lxc/client.crt'.format(os.environ['HOME']) default='{}/.config/lxc/client.crt'.format(os.environ['HOME'])
), ),
trust_password=dict( trust_password=dict( type='str', no_log=True)
type='str',
)
), ),
supports_check_mode=False, supports_check_mode=False,
) )

View file

@ -1485,7 +1485,7 @@ def main():
argument_spec = dict( argument_spec = dict(
state = dict(default='present', choices=['ping', 'present', 'absent', 'up', 'down', 'restarted', 'cd', 'info']), state = dict(default='present', choices=['ping', 'present', 'absent', 'up', 'down', 'restarted', 'cd', 'info']),
user = dict(default="admin@internal"), user = dict(default="admin@internal"),
password = dict(required=True), password = dict(required=True, no_log=True),
server = dict(default="127.0.0.1"), server = dict(default="127.0.0.1"),
port = dict(default="443"), port = dict(default="443"),
insecure_api = dict(default=False, type='bool'), insecure_api = dict(default=False, type='bool'),

View file

@ -182,7 +182,7 @@ def main():
argument_spec = openstack_full_argument_spec( argument_spec = openstack_full_argument_spec(
name=dict(required=True), name=dict(required=True),
password=dict(required=False, default=None), password=dict(required=False, default=None, no_log=True),
email=dict(required=False, default=None), email=dict(required=False, default=None),
default_project=dict(required=False, default=None), default_project=dict(required=False, default=None),
domain=dict(required=False, default=None), domain=dict(required=False, default=None),

View file

@ -182,7 +182,7 @@ def main():
name=dict(default=None, required=True, aliases=['host']), name=dict(default=None, required=True, aliases=['host']),
address=dict(default=None), address=dict(default=None),
username=dict(default=None), username=dict(default=None),
password=dict(default=None), password=dict(default=None, no_log=True),
type=dict(default=None), type=dict(default=None),
port=dict(default=None, type='int'), port=dict(default=None, type='int'),
slot=dict(default=None), slot=dict(default=None),

View file

@ -316,7 +316,7 @@ def main():
comment=dict(default=None), comment=dict(default=None),
cluster=dict(default=None), cluster=dict(default=None),
address=dict(default=None), address=dict(default=None),
password=dict(default=None), password=dict(default=None, no_log=True),
public_key=dict(default=False, type='bool', aliases=['ssh_public_key']), public_key=dict(default=False, type='bool', aliases=['ssh_public_key']),
kdump_integration=dict(default=None, choices=['enabled', 'disabled']), kdump_integration=dict(default=None, choices=['enabled', 'disabled']),
spm_priority=dict(default=None, type='int'), spm_priority=dict(default=None, type='int'),

View file

@ -598,7 +598,7 @@ def main():
default='AMD_OPTERON'), default='AMD_OPTERON'),
volume_size=dict(type='int', default=10), volume_size=dict(type='int', default=10),
disk_type=dict(choices=['HDD', 'SSD'], default='HDD'), disk_type=dict(choices=['HDD', 'SSD'], default='HDD'),
image_password=dict(default=None), image_password=dict(default=None, no_log=True),
ssh_keys=dict(type='list', default=[]), ssh_keys=dict(type='list', default=[]),
bus=dict(choices=['VIRTIO', 'IDE'], default='VIRTIO'), bus=dict(choices=['VIRTIO', 'IDE'], default='VIRTIO'),
lan=dict(type='int', default=1), lan=dict(type='int', default=1),
@ -606,7 +606,7 @@ def main():
auto_increment=dict(type='bool', default=True), auto_increment=dict(type='bool', default=True),
instance_ids=dict(type='list', default=[]), instance_ids=dict(type='list', default=[]),
subscription_user=dict(), subscription_user=dict(),
subscription_password=dict(), subscription_password=dict(no_log=True),
location=dict(choices=LOCATIONS, default='us/las'), location=dict(choices=LOCATIONS, default='us/las'),
assign_public_ip=dict(type='bool', default=False), assign_public_ip=dict(type='bool', default=False),
wait=dict(type='bool', default=True), wait=dict(type='bool', default=True),

View file

@ -212,7 +212,7 @@ def main():
description=dict(), description=dict(),
location=dict(choices=LOCATIONS, default='us/las'), location=dict(choices=LOCATIONS, default='us/las'),
subscription_user=dict(), subscription_user=dict(),
subscription_password=dict(), subscription_password=dict(no_log=True),
wait=dict(type='bool', default=True), wait=dict(type='bool', default=True),
wait_timeout=dict(default=600), wait_timeout=dict(default=600),
state=dict(default='present'), state=dict(default='present'),

View file

@ -241,7 +241,7 @@ def main():
name=dict(default=str(uuid.uuid4()).replace('-','')[:10]), name=dict(default=str(uuid.uuid4()).replace('-','')[:10]),
lan=dict(), lan=dict(),
subscription_user=dict(), subscription_user=dict(),
subscription_password=dict(), subscription_password=dict(no_log=True),
wait=dict(type='bool', default=True), wait=dict(type='bool', default=True),
wait_timeout=dict(type='int', default=600), wait_timeout=dict(type='int', default=600),
state=dict(default='present'), state=dict(default='present'),

View file

@ -377,7 +377,7 @@ def main():
size=dict(type='int', default=10), size=dict(type='int', default=10),
bus=dict(choices=['VIRTIO', 'IDE'], default='VIRTIO'), bus=dict(choices=['VIRTIO', 'IDE'], default='VIRTIO'),
image=dict(), image=dict(),
image_password=dict(default=None), image_password=dict(default=None, no_log=True),
ssh_keys=dict(type='list', default=[]), ssh_keys=dict(type='list', default=[]),
disk_type=dict(choices=['HDD', 'SSD'], default='HDD'), disk_type=dict(choices=['HDD', 'SSD'], default='HDD'),
licence_type=dict(default='UNKNOWN'), licence_type=dict(default='UNKNOWN'),
@ -385,7 +385,7 @@ def main():
auto_increment=dict(type='bool', default=True), auto_increment=dict(type='bool', default=True),
instance_ids=dict(type='list', default=[]), instance_ids=dict(type='list', default=[]),
subscription_user=dict(), subscription_user=dict(),
subscription_password=dict(), subscription_password=dict(no_log=True),
wait=dict(type='bool', default=True), wait=dict(type='bool', default=True),
wait_timeout=dict(type='int', default=600), wait_timeout=dict(type='int', default=600),
state=dict(default='present'), state=dict(default='present'),

View file

@ -219,7 +219,7 @@ def main():
server=dict(), server=dict(),
volume=dict(), volume=dict(),
subscription_user=dict(), subscription_user=dict(),
subscription_password=dict(), subscription_password=dict(no_log=True),
wait=dict(type='bool', default=True), wait=dict(type='bool', default=True),
wait_timeout=dict(type='int', default=600), wait_timeout=dict(type='int', default=600),
state=dict(default='present'), state=dict(default='present'),

View file

@ -112,7 +112,7 @@ def main():
state = dict(required=False, choices=['present', 'absent'], default='present'), state = dict(required=False, choices=['present', 'absent'], default='present'),
# You can specify an IP address or hostname. # You can specify an IP address or hostname.
type = dict(required=True), type = dict(required=True),
password = dict(required=False, default=None), password = dict(required=False, default=None, no_log=True),
login_name = dict(required=True), login_name = dict(required=True),
login_password = dict(required=True, no_log=True), login_password = dict(required=True, no_log=True),
machine = dict(required=False, default=False), machine = dict(required=False, default=False),

View file

@ -87,7 +87,7 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
mailbox_name=dict(required=True), mailbox_name=dict(required=True),
mailbox_password=dict(required=True), mailbox_password=dict(required=True, no_log=True),
state=dict(required=False, choices=['present', 'absent'], default='present'), state=dict(required=False, choices=['present', 'absent'], default='present'),
login_name=dict(required=True), login_name=dict(required=True),
login_password=dict(required=True, no_log=True), login_password=dict(required=True, no_log=True),

View file

@ -352,7 +352,7 @@ def main():
replica_set=dict(default=None), replica_set=dict(default=None),
database=dict(required=True, aliases=['db']), database=dict(required=True, aliases=['db']),
name=dict(required=True, aliases=['user']), name=dict(required=True, aliases=['user']),
password=dict(aliases=['pass']), password=dict(aliases=['pass'], no_log=True),
ssl=dict(default=False, type='bool'), ssl=dict(default=False, type='bool'),
roles=dict(default=None, type='list'), roles=dict(default=None, type='list'),
state=dict(default='present', choices=['absent', 'present']), state=dict(default='present', choices=['absent', 'present']),

View file

@ -306,7 +306,7 @@ def main():
user=dict(required=True, aliases=['name']), user=dict(required=True, aliases=['name']),
profile=dict(default=None), profile=dict(default=None),
resource_pool=dict(default=None), resource_pool=dict(default=None),
password=dict(default=None), password=dict(default=None, no_log=True),
expired=dict(type='bool', default=None), expired=dict(type='bool', default=None),
ldap=dict(type='bool', default=None), ldap=dict(type='bool', default=None),
roles=dict(default=None, aliases=['role']), roles=dict(default=None, aliases=['role']),

View file

@ -238,7 +238,7 @@ class RabbitMqUser(object):
def main(): def main():
arg_spec = dict( arg_spec = dict(
user=dict(required=True, aliases=['username', 'name']), user=dict(required=True, aliases=['username', 'name']),
password=dict(default=None), password=dict(default=None, no_log=True),
tags=dict(default=None), tags=dict(default=None),
permissions=dict(default=list(), type='list'), permissions=dict(default=list(), type='list'),
vhost=dict(default='/'), vhost=dict(default='/'),

View file

@ -262,8 +262,8 @@ def main():
state=dict(required=True, choices=['running', 'started', 'ongoing', 'absent']), state=dict(required=True, choices=['running', 'started', 'ongoing', 'absent']),
name=dict(required=True), name=dict(required=True),
user=dict(required=False), user=dict(required=False),
passwd=dict(required=False), passwd=dict(required=False, no_log=True),
token=dict(required=False), token=dict(required=False, no_log=True),
service=dict(required=False, type='list', aliases=["services"]), service=dict(required=False, type='list', aliases=["services"]),
requester_id=dict(required=False), requester_id=dict(required=False),
hours=dict(default='1', required=False), hours=dict(default='1', required=False),

View file

@ -128,7 +128,7 @@ def main():
state=dict(required=True, choices=['running', 'paused', 'started', 'stopped']), state=dict(required=True, choices=['running', 'paused', 'started', 'stopped']),
checkid=dict(required=True), checkid=dict(required=True),
uid=dict(required=True), uid=dict(required=True),
passwd=dict(required=True), passwd=dict(required=True, no_log=True),
key=dict(required=True) key=dict(required=True)
) )
) )

View file

@ -179,7 +179,7 @@ def main():
nsc_host = dict(required=True), nsc_host = dict(required=True),
nsc_protocol = dict(default='https'), nsc_protocol = dict(default='https'),
user = dict(required=True), user = dict(required=True),
password = dict(required=True), password = dict(required=True, no_log=True),
action = dict(default='enable', choices=['enable','disable']), action = dict(default='enable', choices=['enable','disable']),
name = dict(default=socket.gethostname()), name = dict(default=socket.gethostname()),
type = dict(default='server', choices=['service', 'server']), type = dict(default='server', choices=['service', 'server']),

View file

@ -589,13 +589,10 @@ def main():
passive_interface=dict(required=False, type='bool'), passive_interface=dict(required=False, type='bool'),
message_digest=dict(required=False, type='bool'), message_digest=dict(required=False, type='bool'),
message_digest_key_id=dict(required=False, type='str'), message_digest_key_id=dict(required=False, type='str'),
message_digest_algorithm_type=dict(required=False, type='str', message_digest_algorithm_type=dict(required=False, type='str', choices=['md5']),
choices=['md5']), message_digest_encryption_type=dict(required=False, type='str', choices=['cisco_type_7','3des']),
message_digest_encryption_type=dict(required=False, type='str', message_digest_password=dict(required=False, type='str', no_log=True),
choices=['cisco_type_7','3des']), state=dict(choices=['present', 'absent'], default='present', required=False),
message_digest_password=dict(required=False, type='str'),
state=dict(choices=['present', 'absent'], default='present',
required=False),
include_defaults=dict(default=True), include_defaults=dict(default=True),
config=dict(), config=dict(),
save=dict(type='bool', default=False) save=dict(type='bool', default=False)

View file

@ -119,7 +119,7 @@ def add_dag(xapi, dag_name, dag_filter):
def main(): def main():
argument_spec = dict( argument_spec = dict(
ip_address=dict(required=True), ip_address=dict(required=True),
password=dict(required=True), password=dict(required=True, no_log=True),
username=dict(default='admin'), username=dict(default='admin'),
dag_name=dict(required=True), dag_name=dict(required=True),
dag_filter=dict(required=True), dag_filter=dict(required=True),

View file

@ -133,7 +133,7 @@ def main():
sysname = dict(required=True), sysname = dict(required=True),
url = dict(required=True), url = dict(required=True),
user = dict(required=True), user = dict(required=True),
password = dict(required=True, aliases=['pwd']), password = dict(required=True, aliases=['pwd'], no_log=True),
) )
# supports_check_mode=True # supports_check_mode=True
) )

View file

@ -233,7 +233,7 @@ class NetAppESeriesVolume(object):
log_path=dict(type='str'), log_path=dict(type='str'),
api_url=dict(type='str'), api_url=dict(type='str'),
api_username=dict(type='str'), api_username=dict(type='str'),
api_password=dict(type='str'), api_password=dict(type='str', no_log=True),
validate_certs=dict(type='bool'), validate_certs=dict(type='bool'),
)) ))

View file

@ -276,7 +276,7 @@ def main():
target = dict(required=False, aliases=['name', 'targetname']), target = dict(required=False, aliases=['name', 'targetname']),
node_auth = dict(required=False, default='CHAP'), node_auth = dict(required=False, default='CHAP'),
node_user = dict(required=False), node_user = dict(required=False),
node_pass = dict(required=False), node_pass = dict(required=False, no_log=True),
# actions # actions
login = dict(type='bool', aliases=['state']), login = dict(type='bool', aliases=['state']),

View file

@ -663,7 +663,7 @@ def main():
ipv6=dict(required=False, default=False, type='bool'), ipv6=dict(required=False, default=False, type='bool'),
multi_key=dict(required=False, default=False, type='bool'), multi_key=dict(required=False, default=False, type='bool'),
timeout=dict(required=False, default=300), timeout=dict(required=False, default=300),
password=dict(required=True), password=dict(required=True, no_log=True),
minutes=dict(required=False, default=30), minutes=dict(required=False, default=30),
debug=dict(required=False, default=0, type='int') debug=dict(required=False, default=0, type='int')
), ),

View file

@ -185,7 +185,7 @@ def main():
argument_spec = dict( argument_spec = dict(
host=dict(default=None, type='str'), host=dict(default=None, type='str'),
username=dict(default=None, type='str'), username=dict(default=None, type='str'),
password=dict(default=None, type='str'), password=dict(default=None, type='str', no_log=True),
state=dict(default='present', choices=['present', 'absent']), state=dict(default='present', choices=['present', 'absent']),
logging=dict(default=False, type='bool') logging=dict(default=False, type='bool')
), ),

View file

@ -377,7 +377,7 @@ def main():
operation=dict(choices=['create', 'comment', 'edit', 'fetch', 'transition', 'link'], operation=dict(choices=['create', 'comment', 'edit', 'fetch', 'transition', 'link'],
aliases=['command'], required=True), aliases=['command'], required=True),
username=dict(required=True), username=dict(required=True),
password=dict(required=True), password=dict(required=True, no_log=True),
project=dict(), project=dict(),
summary=dict(), summary=dict(),
description=dict(), description=dict(),