Skip to content

Commit f3fee50

Browse files
committed
BREAKING: #1904: Change SSO username: root --> sysadmin
1 parent e5c1a02 commit f3fee50

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

Doc/Release/0.11.0-beta.4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ Release documentation: https://docs.neonforge.com/docs/neonkube
2525
# Details
2626

2727
* **BREAKING:** [#1903: rename root login --> system and save ssh certs locally as sysadmin@CLUSTER](https://github.com/nforgeio/neonKUBE/issues/1903)
28+
* **BREAKING:** [#1904: Change SSO username: root --> sysadmin](https://github.com/nforgeio/neonKUBE/issues/1904)
2829
* **bug** [#1899: [neon-cluster-operator]: MinWorkerNodeVcpuJob shouldn't be disabled](https://github.com/nforgeio/neonKUBE/issues/1899)
2930
* **bug** [#1901: neon-cluster-operator: wrap-up issues](https://github.com/nforgeio/neonKUBE/issues/1901)

Lib/Neon.Kube.Setup/KubeSetup.Operations.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,7 +2528,7 @@ await controlNode.InvokeIdempotentAsync("setup/root-user",
25282528
{
25292529
Metadata = new V1ObjectMeta()
25302530
{
2531-
Name = $"{KubeConst.RootUser}-user",
2531+
Name = $"{KubeConst.SysAdminUser}-user",
25322532
NamespaceProperty = KubeNamespace.KubeSystem
25332533
}
25342534
};
@@ -2539,7 +2539,7 @@ await controlNode.InvokeIdempotentAsync("setup/root-user",
25392539
{
25402540
Metadata = new V1ObjectMeta()
25412541
{
2542-
Name = $"{KubeConst.RootUser}-user",
2542+
Name = $"{KubeConst.SysAdminUser}-user",
25432543
},
25442544
RoleRef = new V1RoleRef()
25452545
{
@@ -2551,7 +2551,7 @@ await controlNode.InvokeIdempotentAsync("setup/root-user",
25512551
{
25522552
new V1Subject()
25532553
{
2554-
Name = $"{KubeConst.RootUser}-user",
2554+
Name = $"{KubeConst.SysAdminUser}-user",
25552555
Kind = "ServiceAccount",
25562556
NamespaceProperty = KubeNamespace.KubeSystem
25572557
},

Lib/Neon.Kube.Setup/KubeSetup.PrepareCluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public static async Task<ISetupController> CreateClusterPrepareControllerAsync(
370370

371371
controller.SetGlobalStepStatus("generate: SSO password");
372372

373-
setupState.SsoUsername = KubeConst.RootUser;
373+
setupState.SsoUsername = KubeConst.SysAdminUser;
374374
setupState.SsoPassword = clusterDefinition.RootPassword ?? NeonHelper.GetCryptoRandomPassword(clusterDefinition.Security.PasswordLength);
375375

376376
setupState.Save();

Lib/Neon.Kube.Setup/Resources/Helm/glauth/templates/users.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ stringData:
8282
name = "root"
8383
givenname="root"
8484
sn=""
85-
mail = "root@{{ $clusterDomain }}"
85+
mail = "sysadmin@{{ $clusterDomain }}"
8686
uidnumber = 5001
8787
primarygroup = 5501
8888
passsha256 = "{{ .Values.users.root.password | sha256sum }}" # {{ .Values.users.root.password }}

Lib/Neon.Kube/KubeConst.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ public static class KubeConst
8383
/// </summary>
8484
public const int MinWorkerNodeNics = 1;
8585

86-
/// <summary>
87-
/// The root Kubernetes context username for provisioned clusters.
88-
/// </summary>
89-
public const string RootUser = "root";
90-
9186
/// <summary>
9287
/// <para>
9388
/// The fixed SSO password for desktop clusters.

0 commit comments

Comments
 (0)