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
Xavier Thompson
slapos
Commits
ff5f9dec
Commit
ff5f9dec
authored
Oct 04, 2024
by
Paul Graydon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/ors-amarisoft: Fix potential buildout code injection
See merge request
nexedi/slapos!1650
parent
b742fb8e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+2
-2
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+2
-1
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+1
-1
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
ff5f9dec
...
...
@@ -16,7 +16,7 @@
[template]
filename = instance.cfg
md5sum =
711d90973a5cfb2f61d3a3a53c07c64c
md5sum =
f1b9ae02222c020c89d1a3fa75475826
[template-ors]
filename = instance-ors.cfg
...
...
@@ -60,7 +60,7 @@ md5sum = 52da9fe3a569199e35ad89ae1a44c30e
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
7e7a0443f42c033285eb6871f6083ffb
md5sum =
2294f837e8dc6666d7aabfa186ebd175
[template-ors-enb]
_update_hash_filename_ = instance-ors-enb.jinja2.cfg
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
ff5f9dec
...
...
@@ -16,6 +16,7 @@
{%- for k,v in enb_defaults|dictsort %}
{%- do slapparameter_dict.setdefault(k, v) %}
{%- endfor %}
{%- set B = xbuildout.encode %}
[buildout]
...
...
@@ -178,7 +179,7 @@ logfile = ${xamari-xlog-script:logfile}
forward-host = {{ slapparameter_dict.xlog_fluentbit_forward_host }}
forward-port = {{ slapparameter_dict.xlog_fluentbit_forward_port }}
forward-shared-key = {{ slapparameter_dict.get('xlog_fluentbit_forward_shared_key', '') }}
forward-self-hostname = {{
comp_id['comp-id']
}}
forward-self-hostname = {{
B(comp_id['comp-id'])
}}
inline =
[SERVICE]
flush 5
...
...
software/ors-amarisoft/instance.cfg
View file @
ff5f9dec
...
...
@@ -127,7 +127,7 @@ title = $${slap-configuration:root-instance-title}
init =
import socket
options['hostname'] = socket.gethostname()
comp_id = '_
_
'.join(options[x] for x in ('hostname', 'computer', 'title'))
comp_id = '_'.join(options[x] for x in ('hostname', 'computer', 'title'))
options['comp-id'] = comp_id
[switch-softwaretype]
...
...
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