生产部署整改阶段检查点
This commit is contained in:
1 parent
f3348cf95d
commit
92d4b3d398
56 files changed
+4178
-240
No files matched your search
@@ -38,6 +38,12 @@ func TestLinuxInstallerPolicy(t *testing.T) {
|
||||
`/scert|/scert/*`,
|
||||
`chown -R -h "$SERVICE_USER:$SERVICE_GROUP"`,
|
||||
`write_install_metadata`,
|
||||
`load_existing_certificate_dir`,
|
||||
`certificate_dir_explicit=true`,
|
||||
`file -b -- "$source_dir/$artifact"`,
|
||||
`systemctl is-active --quiet Scert.service`,
|
||||
`systemctl is-active --quiet Scert-admin.service`,
|
||||
`pwd -P`,
|
||||
`10-certificate-path.conf`,
|
||||
`"$INSTALL_DIR/conf"`,
|
||||
`"$INSTALL_DIR/data"`,
|
||||
|
||||
@@ -26,6 +26,23 @@ func TestScertSystemdUnitPolicy(t *testing.T) {
|
||||
"ExecStart=/scert/scert --config /scert/conf/scert.json serve",
|
||||
"Restart=on-failure",
|
||||
"UMask=0077",
|
||||
"CapabilityBoundingSet=",
|
||||
"AmbientCapabilities=",
|
||||
"PrivateDevices=yes",
|
||||
"ProtectSystem=strict",
|
||||
"ProtectHostname=yes",
|
||||
"ProtectClock=yes",
|
||||
"ProtectKernelTunables=yes",
|
||||
"ProtectKernelModules=yes",
|
||||
"ProtectControlGroups=yes",
|
||||
"ProtectKernelLogs=yes",
|
||||
"LockPersonality=yes",
|
||||
"MemoryDenyWriteExecute=yes",
|
||||
"RestrictNamespaces=yes",
|
||||
"RestrictRealtime=yes",
|
||||
"RestrictSUIDSGID=yes",
|
||||
"RemoveIPC=yes",
|
||||
"SystemCallArchitectures=native",
|
||||
"ReadWritePaths=/ssl /scert/conf /scert/data /scert/log /scert/backups",
|
||||
"[Install]",
|
||||
"WantedBy=multi-user.target",
|
||||
|
||||
Reference in new issue
Block a user