Feature gRPC#47
Merged
Merged
Conversation
arttet
reviewed
Apr 15, 2025
| @@ -0,0 +1,145 @@ | |||
| LOKI_REPO ?= $(shell pwd)/../../loki | |||
There was a problem hiding this comment.
Suggested change
| LOKI_REPO ?= $(shell pwd)/../../loki | |
| LOKI_HOME ?= "" | |
| LOKI_REPO ?= ${LOKI_HOME}/loki |
| DB_HOST = localhost | ||
| DB_PORT = 5432 | ||
|
|
||
| GOOSE_DRIVER = postgres |
There was a problem hiding this comment.
Suggested change
| GOOSE_DRIVER = postgres | |
| GOOSE_DRIVER ?= postgres |
| local uuid = require("uuid") | ||
|
|
||
| uuid.randomseed(os.time()) | ||
|
|
There was a problem hiding this comment.
Please find more suitable package. Not .github
| @@ -0,0 +1,3 @@ | |||
| [submodule "proto"] | |||
| path = proto | |||
| url = git@github.com:tab/loki-proto.git | |||
There was a problem hiding this comment.
- go_package
option go_package = "https://github.com/tab/loki/internal/app/rpcs/proto/sso/v1;ssov1";
| ```sh | ||
| # Generate CA | ||
| openssl genrsa -out certs/ca.key 4096 | ||
| openssl req -new -x509 -key certs/ca.key -sha256 -subj "/CN=Loki CA" -out certs/ca.pem -days 3650 |
There was a problem hiding this comment.
Suggested change
| openssl req -new -x509 -key certs/ca.key -sha256 -subj "/CN=Loki CA" -out certs/ca.pem -days 3650 | |
| openssl req -new -x509 -key certs/ca.key -sha256 -subj '/CN=Loki CA' -out certs/ca.pem -days 3650 |
| }, nil | ||
| } | ||
|
|
||
| func (p *permissionsService) Update(ctx context.Context, req *proto.UpdatePermissionRequest) (*proto.UpdatePermissionResponse, error) { |
There was a problem hiding this comment.
Suggested change
| func (p *permissionsService) Update(ctx context.Context, req *proto.UpdatePermissionRequest) (*proto.UpdatePermissionResponse, error) { | |
| func (p *permissionsService) UpdatePermission(ctx context.Context, req *proto.UpdatePermissionRequest) (*proto.UpdatePermissionResponse, error) { |
Added gRPC authentication interceptor Added permission service with CRUD operations for managing user permissions
Added scope service with CRUD operations for managing application scopes
Added role service with CRUD operations for managing user roles
Added token service with List and Delete operations for managing user JSON web tokens
Added user service with CRUD operations for managing users
Added new error constants for failed record creation, updating, deletion, and not found errors
Updated the JWT implementation to use RSA keys instead of a single secret key for signing
… and mTLS certificates
Deleted the backoffice controllers and tests REST API replaced with gRPC
Added sections for generating JWT signing keys and mTLS certificates Added related repositories section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.