From e1e2515c97bff7cfda6f1344cdb04fcf501caef4 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 5 May 2026 22:08:34 +0200 Subject: [PATCH 01/10] WIP: Start implementing the internal auth Signed-off-by: Nikolai Rodionov --- proto/accounts/v1/accounts_v1.proto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/proto/accounts/v1/accounts_v1.proto b/proto/accounts/v1/accounts_v1.proto index af1ef9a..200ac3b 100644 --- a/proto/accounts/v1/accounts_v1.proto +++ b/proto/accounts/v1/accounts_v1.proto @@ -10,6 +10,8 @@ option go_package = "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg service AccountsNoAuthService { // Sing in into an existing account rpc SignIn (SignInRequest) returns (google.protobuf.Empty) {} + // Create a new account + rpc SignUp (SignUpRequest) returns (google.protobuf.Empty) {} } /** @@ -32,8 +34,8 @@ message AccountData { } message SignUpRequest { - AccountData data = 1; - AccountPassword password = 2; + string email = 1; + string password = 2; } message SignInRequest { -- 2.49.1 From bdd97c01635081acffc9452ecd3c68a6b7a02b26 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 5 May 2026 22:10:17 +0200 Subject: [PATCH 02/10] WIP: Start implementing the internal auth Signed-off-by: Nikolai Rodionov --- proto/applications/v1/applications_v1.proto | 4 ++-- proto/email/v1/email_v1.proto | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/proto/applications/v1/applications_v1.proto b/proto/applications/v1/applications_v1.proto index 0972545..d663279 100644 --- a/proto/applications/v1/applications_v1.proto +++ b/proto/applications/v1/applications_v1.proto @@ -74,7 +74,7 @@ message ApplicationId { } message ApplicationMetadata { - string name = 1; + string name = 1; string description = 2; } @@ -82,7 +82,7 @@ message ApplicationSpec { string application = 1; string version = 2; string environemnt_id = 3; - map config = 4; + map config = 4; string raw_config = 5; } diff --git a/proto/email/v1/email_v1.proto b/proto/email/v1/email_v1.proto index 41e78a4..0e7c13f 100644 --- a/proto/email/v1/email_v1.proto +++ b/proto/email/v1/email_v1.proto @@ -3,7 +3,7 @@ package email; import "google/protobuf/empty.proto"; option go_package = "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/email"; -/* +/* * A service that should handle email validation */ service EmailValidation { @@ -19,4 +19,3 @@ message ConfirmValidation { string user_id = 1; int32 code = 2; } - -- 2.49.1 From 9d5d53b6964bc8bc05f03d05564aec2e04c8f9c6 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 19:16:49 +0200 Subject: [PATCH 03/10] Move refresh token to noAuth services Signed-off-by: Nikolai Rodionov --- proto/accounts/v1/accounts_v1.proto | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proto/accounts/v1/accounts_v1.proto b/proto/accounts/v1/accounts_v1.proto index 200ac3b..27c0349 100644 --- a/proto/accounts/v1/accounts_v1.proto +++ b/proto/accounts/v1/accounts_v1.proto @@ -12,6 +12,8 @@ service AccountsNoAuthService { rpc SignIn (SignInRequest) returns (google.protobuf.Empty) {} // Create a new account rpc SignUp (SignUpRequest) returns (google.protobuf.Empty) {} + // RefreshToken doesn't use regular auth methods + rpc RefreshToken (RefreshTokenRequest) returns (google.protobuf.Empty) {} } /** @@ -21,7 +23,6 @@ service AccountsNoAuthService { service AccountsAuthService { // Is email for the current account verified rpc IsEmailVerified (IsEmailVerifiedRequest) returns (IsEmailVerifiedResponse) {} - rpc RefreshToken (google.protobuf.Empty) returns (google.protobuf.Empty) {} } message AccountPassword { @@ -60,3 +61,7 @@ message IsEmailVerifiedRequest { message IsEmailVerifiedResponse { bool verified = 1; } + +message RefreshTokenRequest { + string session_id = 1; +} -- 2.49.1 From 58ba0dc21450c7d2461ff2b1f3da3b0d8901269d Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 19:17:13 +0200 Subject: [PATCH 04/10] Working on it -- 2.49.1 From cfbe2271fe8c567139c4fc96e34b92ab78e5cbf5 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 19:17:22 +0200 Subject: [PATCH 05/10] Working on it -- 2.49.1 From e9fe803c35832f16541b1ce5e6e2974c3e2606e1 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 22:23:37 +0200 Subject: [PATCH 06/10] Password and username for signin Signed-off-by: Nikolai Rodionov --- proto/accounts/v1/accounts_v1.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto/accounts/v1/accounts_v1.proto b/proto/accounts/v1/accounts_v1.proto index 27c0349..1d38bdb 100644 --- a/proto/accounts/v1/accounts_v1.proto +++ b/proto/accounts/v1/accounts_v1.proto @@ -40,8 +40,8 @@ message SignUpRequest { } message SignInRequest { - string code = 1; - string verifier = 2; + string email = 1; + string password = 2; }; message ResetPasswordRequest { -- 2.49.1 From 9f0dc7c3a6c9582dcfa05b5728d0f835523daa84 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 22:23:48 +0200 Subject: [PATCH 07/10] Trigger build -- 2.49.1 From 26d53931f3afb9eb9b4c14db24d9463e3bf7598d Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 22:23:53 +0200 Subject: [PATCH 08/10] Trigger build -- 2.49.1 From 71b3485d5d03476eee0ec111cfc9a98a9441b6ef Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 22:23:54 +0200 Subject: [PATCH 09/10] Trigger build -- 2.49.1 From dd1905cef4491958b67de174f4f68deb8270aa9c Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 22:24:11 +0200 Subject: [PATCH 10/10] Trigger build -- 2.49.1