Skip to content
Snippets Groups Projects
Commit e1885656 authored by Magnus Svensson's avatar Magnus Svensson
Browse files

Merge branch 'devel' into 'test'

Updated the configuration file for the AUTH server.

See merge request !8
parents 6187cd98 7f0fbb70
No related branches found
No related tags found
2 merge requests!9Test,!8Updated the configuration file for the AUTH server.
Pipeline #54521 passed
# EditorConfig is awesome: https://EditorConfig.org ; EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file ;top-most EditorConfig file
root = true root = true
# Unix-style newlines with a newline ending every file ; Ruby style as default
; UTF-8 charset
; Unix-style newlines with a newline ending every file
; 2 space indent
; Trim trailing whitespace
[*] [*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
; Markdown
; 4 space indent
; Trailing whitespace is potentially meaningful, leave it
[*.md]
indent_size = 4
trim_trailing_whitespace = false
# The JSON files contain newlines inconsistently ; Shell scripts & Python
; 4 space indent
[*.{sh,py}]
indent_size = 4
[Makefile]
indent_style = tab
; The JSON files contain newlines inconsistently
[*.json] [*.json]
indent_size = 2
insert_final_newline = ignore insert_final_newline = ignore
[*.{ps1,psm1}] [*.{ps1,psm1}]
......
...@@ -3,3 +3,11 @@ ...@@ -3,3 +3,11 @@
*.pp eol=lf *.pp eol=lf
*.sh eol=lf *.sh eol=lf
*.epp eol=lf *.epp eol=lf
.editorconfig eol=lf
.gitattributes eol=lf
.gitignore eol=lf
.gitlab-ci.yml eol=lf
.pdkignore eol=lf
.vscode/* eol=lf
Gemfile eol=lf
metadata.json eol=lf
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
.project .project
.envrc .envrc
/inventory.yaml /inventory.yaml
/spec/fixtures/litmus_inventory.yaml
*~ *~
\#*\# \#*\#
.\#* .\#*
...@@ -25,10 +25,12 @@ ...@@ -25,10 +25,12 @@
.project .project
.envrc .envrc
/inventory.yaml /inventory.yaml
/spec/fixtures/litmus_inventory.yaml
*~ *~
\#*\# \#*\#
.\#* .\#*
/appveyor.yml /appveyor.yml
/.editorconfig
/.fixtures.yml /.fixtures.yml
/Gemfile /Gemfile
/.gitattributes /.gitattributes
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
"puppet.puppet-vscode", "puppet.puppet-vscode",
"rebornix.Ruby", "rebornix.Ruby",
"ms-vscode.powershell", "ms-vscode.powershell",
"EditorConfig.EditorConfig" "EditorConfig.EditorConfig",
"glenbuktenica.unicode-substitutions"
] ]
} }
...@@ -24,13 +24,13 @@ group :development do ...@@ -24,13 +24,13 @@ group :development do
gem "puppet-module-posix-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby] gem "puppet-module-posix-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw] gem "puppet-module-win-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-win-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw] gem "puppet-module-win-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-lint-absolute_classname-check", '3.0.0', require: false gem "puppet-lint-absolute_classname-check", '3.0.1', require: false
gem "puppet-lint-absolute_template_path", '1.0.1', require: false gem "puppet-lint-absolute_template_path", '1.0.1', require: false
gem "puppet-lint-empty_trailing_lines", '0.0.1', require: false gem "puppet-lint-empty_trailing_lines", '0.0.1', require: false
gem "puppet-lint-file_ensure-check", '0.3.1', require: false gem "puppet-lint-file_ensure-check", '1.0.0', require: false
gem "puppet-lint-strict_indent-check", '2.0.7', require: false gem "puppet-lint-strict_indent-check", '2.0.8', require: false
gem "puppet-lint-trailing_comma-check", '0.4.2', require: false gem "puppet-lint-trailing_comma-check", '0.4.2', require: false
gem "puppet-lint-unquoted_string-check", '2.0.0', require: false gem "puppet-lint-unquoted_string-check", '2.1.0', require: false
end end
group :system_tests do group :system_tests do
gem "puppet-module-posix-system-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby] gem "puppet-module-posix-system-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
......
...@@ -59,6 +59,19 @@ ...@@ -59,6 +59,19 @@
"DB" : { "DB" : {
"message_size" : 1024000, "message_size" : 1024000,
"groups" : [ "", "ADMC", "MS", "AUTH" ] "groups" : [ "", "ADMC", "MS", "AUTH" ]
},
// The sandbox server.
// Note: The auth server needs to be able to talk to the sandbox server when authenticating (anonymous) students.
"SAND" : {
"message_size" : 102400,
"groups" : [ "AUTH", "ADMC", "DB", "SAcl" ]
},
// Command-line tool for sandbox management.
"SAcl" : {
"message_size" : 102400,
"groups" : [ "SAND" ]
} }
}, },
...@@ -81,7 +94,8 @@ ...@@ -81,7 +94,8 @@
"ADMC" : [ "admin" ], "ADMC" : [ "admin" ],
// Note: This might not be a good idea in the long run. We should at least // Note: This might not be a good idea in the long run. We should at least
// put "admin" here instead of "staff". // put "admin" here instead of "staff".
"KMGR" : [ "staff" ] "KMGR" : [ "staff" ],
"SAcl" : [ "staff" ]
} }
}, },
...@@ -92,7 +106,7 @@ ...@@ -92,7 +106,7 @@
{ {
// A list of groups that we allow authenticating using this method. This is mandatory // A list of groups that we allow authenticating using this method. This is mandatory
// for all elements in here. // for all elements in here.
"allow" : [ "TEST", "EC", "SC", "MS" ], "allow" : [ "TEST", "EC", "SC", "MS", "ADMC", "DB", "SAND" ],
// The debug auth is the simplest. It just allows whatever the connected client // The debug auth is the simplest. It just allows whatever the connected client
// claimed. It is not good to use in production, and is always disabled unless the // claimed. It is not good to use in production, and is always disabled unless the
...@@ -100,7 +114,7 @@ ...@@ -100,7 +114,7 @@
"type" : "debug" "type" : "debug"
}, },
{ {
"allow" : [ "DB", "MS", "KDB" ], "allow" : [ "DB", "MS", "KDB", "SAND" ],
// File system authentication. This works for clients on the same system as the // File system authentication. This works for clients on the same system as the
// authentication server (e.g. DB, ARLA, etc.), and relies on UNIX permissions. This // authentication server (e.g. DB, ARLA, etc.), and relies on UNIX permissions. This
...@@ -118,7 +132,7 @@ ...@@ -118,7 +132,7 @@
}, },
{ {
// Slightly different requirements for ADMC and the Key manager. // Slightly different requirements for ADMC and the Key manager.
"allow" : [ "ADMC", "KMGR" ], "allow" : [ "ADMC", "KMGR", "SAcl" ],
"type" : "fs", "type" : "fs",
"path" : "/tmp", "path" : "/tmp",
"permissions" : "0777", "permissions" : "0777",
...@@ -134,12 +148,12 @@ ...@@ -134,12 +148,12 @@
}, },
{ {
// Allow authenticating SC, EC and AdmC with Kerberos. // Allow authenticating SC, EC and AdmC with Kerberos.
"allow" : [ "EC", "SC", "ADMC" ], "allow" : [ "EC", "SC", "ADMC", "KMGR", "SAcl" ],
"type" : "kerberos" "type" : "kerberos"
}, },
{ {
// Allow TEST, EC, SC, and KMGR with SSH. // Allow TEST, EC, SC, and KMGR with SSH.
"allow" : [ "TEST", "EC", "SC", "KMGR" ], "allow" : [ "TEST", "EC", "SC", "KMGR", "SAcl" ],
"type" : "ssh", "type" : "ssh",
"identity_db" : { "identity_db" : {
......
...@@ -10,6 +10,10 @@ ExecStart=/srv/broker/bin/broker --ssl ssl/cert.pem ssl/key.pem file:ssl/passwor ...@@ -10,6 +10,10 @@ ExecStart=/srv/broker/bin/broker --ssl ssl/cert.pem ssl/key.pem file:ssl/passwor
Restart=on-failure Restart=on-failure
RestartSec=10 RestartSec=10
# Increase the number of fds available to the broker. The default max is 4096, which should be enough,
# but a large margin is good here.
LimitNOFILE=10000
# No limit. We won't overload the system anyway. # No limit. We won't overload the system anyway.
StartLimitInterval=0 StartLimitInterval=0
......
...@@ -19,6 +19,11 @@ ...@@ -19,6 +19,11 @@
# http://tentix.ida.liu.se:3128/squid-internal-mgr/info # http://tentix.ida.liu.se:3128/squid-internal-mgr/info
# #
# Yearly update of certificate: # Yearly update of certificate:
# run make_certificate.sh
# restart squid service
# update dotfiles
#
# OLD
# 1. Generate certificate: # 1. Generate certificate:
# openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout myCA.pem -out myCA.pem # openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout myCA.pem -out myCA.pem
# openssl x509 -in myCA.pem -outform DER -out myCA.der # openssl x509 -in myCA.pem -outform DER -out myCA.der
...@@ -35,7 +40,7 @@ ...@@ -35,7 +40,7 @@
# certutil -d sql:./.pki/nssdb -D -n "exam.ida.liu.se - Linkoping university" # certutil -d sql:./.pki/nssdb -D -n "exam.ida.liu.se - Linkoping university"
# certutil -d sql:./.pki/nssdb -L # certutil -d sql:./.pki/nssdb -L
# OLD. Change in exam environment, (after added in Chromium myCA.der end up "somewhere" in ~/.pki/* # OLDER: Change in exam environment, (after added in Chromium myCA.der end up "somewhere" in ~/.pki/*
# Use this command to edit chrome exam template settings: # Use this command to edit chrome exam template settings:
# env -i XAUTHORITY=/home/examadm/.Xauthority DISPLAY=$DISPLAY HOME=/home/examadm/Version-3.1/sea/env/courses/template_student_home_files/owned_by_uid chromium-browser --proxy-server="exam.ida.liu.se:3128" --temp-profile # env -i XAUTHORITY=/home/examadm/.Xauthority DISPLAY=$DISPLAY HOME=/home/examadm/Version-3.1/sea/env/courses/template_student_home_files/owned_by_uid chromium-browser --proxy-server="exam.ida.liu.se:3128" --temp-profile
...@@ -121,7 +126,7 @@ http_access deny all ...@@ -121,7 +126,7 @@ http_access deny all
# Squid normally listens to port 3128 # Squid normally listens to port 3128
# http_port 3128 # http_port 3128
http_port 3128 ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/ssl/certs/squid/Oct20-Oct21/myCA.pem http_port 3128 ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/pki/tls/certs/squid/current/exam.crt
always_direct allow all always_direct allow all
ssl_bump server-first all ssl_bump server-first all
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
"version_requirement": ">= 6.21.0 < 8.0.0" "version_requirement": ">= 6.21.0 < 8.0.0"
} }
], ],
"pdk-version": "2.1.0", "pdk-version": "2.2.0",
"template-url": "https://gitlab.it.liu.se/puppet-infra/pdk-templates.git#liu", "template-url": "https://gitlab.it.liu.se/puppet-infra/pdk-templates.git#liu",
"template-ref": "heads/liu-0-g8fb0f81" "template-ref": "heads/liu-0-gd8925d4"
} }
---
ignore: []
...@@ -51,6 +51,18 @@ RSpec.configure do |c| ...@@ -51,6 +51,18 @@ RSpec.configure do |c|
c.after(:suite) do c.after(:suite) do
RSpec::Puppet::Coverage.report!(0) RSpec::Puppet::Coverage.report!(0)
end end
# Filter backtrace noise
backtrace_exclusion_patterns = [
%r{spec_helper},
%r{gems},
]
if c.respond_to?(:backtrace_exclusion_patterns)
c.backtrace_exclusion_patterns = backtrace_exclusion_patterns
elsif c.respond_to?(:backtrace_clean_patterns)
c.backtrace_clean_patterns = backtrace_exclusion_patterns
end
end end
# Ensures that a module is defined # Ensures that a module is defined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment