feat: move off of using root for deployment

This commit is contained in:
silver 2023-09-30 23:18:14 +01:00
parent c87fec1a65
commit 165c4645bf
14 changed files with 18 additions and 13 deletions

View file

@ -69,6 +69,11 @@ in {
} }
]; ];
nix.settings.trusted-users = [
"root"
"@skynet-admins-linux"
];
# give users a home dir # give users a home dir
security.pam.services.sshd.makeHomeDir = true; security.pam.services.sshd.makeHomeDir = true;

View file

@ -27,7 +27,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
# somehow ssh from runner to this fails # somehow ssh from runner to this fails
tags = ["active-firewall"]; tags = ["active-firewall"];

View file

@ -26,7 +26,7 @@ in {
deployment = { deployment = {
targetHost = ip_pub; targetHost = ip_pub;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active-core"]; tags = ["active-core"];
}; };

View file

@ -27,7 +27,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active"]; tags = ["active"];
}; };

View file

@ -27,7 +27,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active-core"]; tags = ["active-core"];
}; };

View file

@ -27,7 +27,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active-gitlab"]; tags = ["active-gitlab"];
}; };

View file

@ -28,7 +28,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active-core"]; tags = ["active-core"];
}; };

View file

@ -37,7 +37,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active-core"]; tags = ["active-core"];
}; };

View file

@ -27,7 +27,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active"]; tags = ["active"];
}; };

View file

@ -30,7 +30,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
}; };
# these two are to be able to add the rules for firewall and dns # these two are to be able to add the rules for firewall and dns

View file

@ -28,7 +28,7 @@ in {
deployment = { deployment = {
targetHost = ip_pub; targetHost = ip_pub;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
# this one is manually deployed # this one is manually deployed
tags = ["active-ext"]; tags = ["active-ext"];

View file

@ -27,7 +27,7 @@ in {
deployment = { deployment = {
targetHost = ip_pub; targetHost = ip_pub;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active-dns" "dns"]; tags = ["active-dns" "dns"];
}; };

View file

@ -24,7 +24,7 @@ in {
deployment = { deployment = {
targetHost = ip_pub; targetHost = ip_pub;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active-dns" "dns"]; tags = ["active-dns" "dns"];
}; };

View file

@ -26,7 +26,7 @@ in {
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = null;
tags = ["active-gitlab"]; tags = ["active-gitlab"];
}; };