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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos
Commits
c2bfe70f
Commit
c2bfe70f
authored
Jan 13, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Plain Diff
Resilience fixes and version ups
See merge request
!1320
parents
a729a677
15a65975
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
27 deletions
+14
-27
software/monitor/software.cfg
software/monitor/software.cfg
+0
-1
software/powerdns/software.cfg
software/powerdns/software.cfg
+0
-9
software/rapid-cdn/software.cfg
software/rapid-cdn/software.cfg
+0
-3
software/slaprunner/software.cfg
software/slaprunner/software.cfg
+0
-2
stack/resilient/buildout.hash.cfg
stack/resilient/buildout.hash.cfg
+2
-2
stack/resilient/pbsready-import.cfg.in
stack/resilient/pbsready-import.cfg.in
+0
-1
stack/resilient/resilient-web-takeover-cgi-script.py.in
stack/resilient/resilient-web-takeover-cgi-script.py.in
+2
-4
stack/slapos.cfg
stack/slapos.cfg
+10
-5
No files found.
software/monitor/software.cfg
View file @
c2bfe70f
...
...
@@ -62,7 +62,6 @@ scripts =
surykatka = 0.8.0
# For surykatka 0.7.1
click = 8.0.1
dnspython = 2.1.0
forcediphttpsadapter = 1.0.1
miniupnpc = 2.0.2
...
...
software/powerdns/software.cfg
View file @
c2bfe70f
...
...
@@ -44,12 +44,3 @@ url = ${:_profile_base_location_}/${:_update_hash_filename_}
[template-zones-file]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
[versions]
PyRSS2Gen = 1.1
cns.recipe.symlink = 0.2.3
plone.recipe.command = 1.1
passlib = 1.7.1
GitPython = 2.1.11
feedparser = 5.2.1
atomize = 0.2.0
software/rapid-cdn/software.cfg
View file @
c2bfe70f
...
...
@@ -220,10 +220,7 @@ validators = 0.12.2
PyRSS2Gen = 1.1
cns.recipe.symlink = 0.2.3
ecdsa = 0.13
gitdb = 0.6.4
plone.recipe.command = 1.1
pycrypto = 2.6.1
smmap = 0.9.0
furl = 2.1.0
orderedmultidict = 1.0.1
software/slaprunner/software.cfg
View file @
c2bfe70f
...
...
@@ -146,8 +146,6 @@ scripts =
[versions]
Flask-Auth = 0.85
futures = 3.0.5
gitdb = 0.6.4
gunicorn = 19.10.0
prettytable = 0.7.2
pycurl = 7.43.0
smmap = 0.9.0
stack/resilient/buildout.hash.cfg
View file @
c2bfe70f
...
...
@@ -18,7 +18,7 @@ md5sum = e24d0567cda7c72e39f6c8fcb0ede7ab
[pbsready-import]
filename = pbsready-import.cfg.in
md5sum =
0aa7feb615fc5ac1a132a6d92c80f95
4
md5sum =
da1d3229fe6d3664720d75b2e9d0b8f
4
[pbsready-export]
filename = pbsready-export.cfg.in
...
...
@@ -46,7 +46,7 @@ md5sum = 2c9828b57a65ee1eda62fcc4e9a92714
[resilient-web-takeover-cgi-script-download]
filename = resilient-web-takeover-cgi-script.py.in
md5sum =
4137b7ac6b20a6cd897ad58f51a763b1
md5sum =
8f5c9830f4865265d3477fe51425e71d
[template-wrapper]
filename = templates/wrapper.in
...
...
stack/resilient/pbsready-import.cfg.in
View file @
c2bfe70f
...
...
@@ -105,7 +105,6 @@ takeover-triggered-file-path = $${resiliency-takeover-script:takeover-triggered-
[resilient-web-takeover-password]
recipe = slapos.cookbook:generate.password
storage-path = $${directory:srv}/passwd
bytes = 8
[resilient-web-takeover-cgi-script]
recipe = collective.recipe.template
...
...
stack/resilient/resilient-web-takeover-cgi-script.py.in
View file @
c2bfe70f
...
...
@@ -7,8 +7,8 @@ takeover_script = '${resiliency-takeover-script:wrapper-takeover}'
import atexit
import cgi
import cgitb
import datetime
import hmac
try:
import dbm.gnu as gdbm
except ImportError:
...
...
@@ -25,8 +25,6 @@ if os.path.exists('resilient_software_release_information.py'):
else:
resilient_main = lambda: {}
cgitb.enable()
def deleteTemporaryDirectory(path):
if os.path.exists(path):
shutil.rmtree(path)
...
...
@@ -108,7 +106,7 @@ if "password" not in form:
</html>
""" % (latest_backup_message, isBackupInProgress(), getSoftwareReleaseInformationFormatted()))
sys.exit(0)
if
form['password'].value != '${:password}'
:
if
not hmac.compare_digest(form['password'].value.encode(), b'${:password}')
:
print("
<H1>
Error
</H1>
")
print("Password is invalid.")
sys.exit(1)
...
...
stack/slapos.cfg
View file @
c2bfe70f
...
...
@@ -152,7 +152,7 @@ backports.shutil-get-terminal-size = 1.0.0
bcrypt = 3.1.4
bleach = 5.0.1
CacheControl = 0.12.6:whl
certifi = 2022.
6.15
certifi = 2022.
12.7
cffi = 1.15.0
chardet = 3.0.4
charset-normalizer = 2.1.1
...
...
@@ -184,8 +184,8 @@ funcsigs = 1.0.2
functools32 = 3.2.3.post2
gevent = 20.9.0
geventmp = 0.0.1
gitdb
2 = 2.0.5
GitPython =
2.1.11
gitdb
= 4.0.10
GitPython =
3.1.30
greenlet = 0.4.17
h5py = 2.7.1
h11 = 0.14.0
...
...
@@ -294,7 +294,7 @@ slapos.recipe.cmmi = 0.19
slapos.recipe.template = 5.0
slapos.toolbox = 0.128
statsmodels = 0.11.1
smmap
2 = 2.0.5
smmap
= 5.0.0
sniffio = 1.3.0
sortedcontainers = 2.4.0
stevedore = 1.21.0:whl
...
...
@@ -314,7 +314,7 @@ urllib3 = 1.26.12
wcwidth = 0.2.5
webencodings = 0.5.1
Werkzeug = 2.0.2
wheel = 0.3
5.1
:whl
wheel = 0.3
8.4
:whl
widgetsnbextension = 2.0.0
wsproto = 1.2.0
xml-marshaller = 1.0.2
...
...
@@ -335,11 +335,16 @@ charset-normalizer = 2.0.12
click = 6.7
distro = 1.6.0
feedparser = 5.2.1
gitdb2 = 2.0.5
GitPython = 2.1.11
pyparsing = 2.2.0
pyrsistent = 0.16.1
requests = 2.27.1
smmap = 0.9.0
smmap2 = 2.0.5
traitlets = 4.3.3
Werkzeug = 1.0.1
wheel = 0.35.1:whl
[versions:sys.version_info < (3,8)]
MarkupSafe = 1.0
...
...
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