Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos
Commits
910d0862
Commit
910d0862
authored
Jun 04, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos.recipe.random: increase default password size to 16
parent
933d29c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
slapos/recipe/random.py
slapos/recipe/random.py
+2
-2
No files found.
slapos/recipe/random.py
View file @
910d0862
...
...
@@ -119,7 +119,7 @@ class Password(object):
recipes like slapos.recipe.template:jinja2 to safely process the password.
Options:
- bytes: password length (default:
8
characters)
- bytes: password length (default:
16
characters)
- storage-path: plain-text persistent storage for password,
that can only be accessed by the user
(default: ${buildout:parts-directory}/${:_buildout_section_name_})
...
...
@@ -149,7 +149,7 @@ class Password(object):
if
e
.
errno
!=
errno
.
ENOENT
:
raise
if
not
passwd
:
passwd
=
self
.
generatePassword
(
int
(
options
.
get
(
'bytes'
,
'
8
'
)))
passwd
=
self
.
generatePassword
(
int
(
options
.
get
(
'bytes'
,
'
16
'
)))
self
.
update
=
self
.
install
options
[
'passwd'
]
=
passwd
# Password must not go into .installed file, for 2 reasons:
...
...
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