diff --git a/README.md b/README.md index 7545eb158..4a1e915c0 100644 --- a/README.md +++ b/README.md @@ -116,14 +116,14 @@ $ git clone git@github.com:odpf/guardian.git # Install all the golang dependencies $ make install -# Check all build comamnds available +# Check all build commands available $ make help # Build meteor binary file $ make build # Init config -$ cp app/config.yaml config.yaml +$ cp internal/server/config.yaml config.yaml $ ./guardian config init # Run database migrations diff --git a/docs/docs/concepts/architecture.md b/docs/docs/concepts/architecture.md index 396b6bd15..aff10fc88 100644 --- a/docs/docs/concepts/architecture.md +++ b/docs/docs/concepts/architecture.md @@ -14,7 +14,7 @@ Guardian CLI will be able to can start a service that controls all that Guardian #### Guardian Service -Guardian service exposes few REST endpoints that can be used with simple curl request for registering or updaing a provider, creating and granting/revoking appeals or checking the status of a appeal, creating policies etc. +Guardian service exposes few REST endpoints that can be used with simple curl request for registering or updating a provider, creating and granting/revoking appeals or checking the status of a appeal, creating policies etc. #### Guardian Scheduler @@ -28,8 +28,8 @@ Provider once registered needs to be stored somewhere as a source of truth. Guar Guardian itself doesn't govern how a appeal will be executed. It only provides the building blocks. A provider for any resource type needs to be build and integrated with Guardian in order to support it's access flow. Any provider has 4 components -- Config - This defines the permisions and credential configuartion of a resource. -- Client - This defines the client configuartions and methods. +- Config - This defines the permissions and credential configuration of a resource. +- Client - This defines the client configurations and methods. - Provider - This deals with the interaction with a provider. - Resource - This defines all the resources and functions associated with them. diff --git a/docs/docs/contribute/contribution.md b/docs/docs/contribute/contribution.md index 7ea2bdf1e..a7dc3ffbc 100644 --- a/docs/docs/contribute/contribution.md +++ b/docs/docs/contribute/contribution.md @@ -24,7 +24,7 @@ We are always interested in adding new maintainers. What we look for is a series * Maintainers will have write access to the Guardian repository. * There is no strict protocol for becoming a maintainer. Candidates for new maintainers are typically people that are active contributors and community members. * Candidates for new maintainers can also be suggested by current maintainers. -* If you would like to become a maintainer, you should start contributing to Guardian in any of the ways mentioned. Youc might also want to talk to other maintainers and ask for their advice and guidance. +* If you would like to become a maintainer, you should start contributing to Guardian in any of the ways mentioned. You might also want to talk to other maintainers and ask for their advice and guidance. ## Guidelines diff --git a/docs/docs/guides/cli.md b/docs/docs/guides/cli.md index 507ff36bc..3fc54e284 100644 --- a/docs/docs/guides/cli.md +++ b/docs/docs/guides/cli.md @@ -288,7 +288,7 @@ provider updated ## Resources command -Resources command allows us to list and set metadat of resoirces. +Resources command allows us to list and set metadata of resources. * **What is inside?** diff --git a/docs/docs/introduction.md b/docs/docs/introduction.md index 0edde1df1..146212f25 100644 --- a/docs/docs/introduction.md +++ b/docs/docs/introduction.md @@ -22,7 +22,7 @@ Users are required to raise an appeal in order to gain access to a particular re Explore the following resoruces to get started with Guardian: -- [Guides](https://odpf.gitbook.io/guardian/guides/overview) provides guidance on usage. -- [Concepts](https://odpf.gitbook.io/guardian/concepts/architecture) describes all important Guardian concepts including system architecture. -- [Reference](https://odpf.gitbook.io/guardian/reference/overview) contains details about configurations and other aspects of Guardian. -- [Contribute](https://odpf.gitbook.io/guardian/contribute/contribution) contains resources for anyone who wants to contribute to Guardian. +- [Guides](https://odpf.github.io/guardian/docs/guides/overview) provides guidance on usage. +- [Concepts](https://odpf.github.io/guardian/docs/concepts/architecture) describes all important Guardian concepts including system architecture. +- [Reference](https://odpf.github.io/guardian/docs/reference/glossary) contains details about configurations and other aspects of Guardian. +- [Contribute](https://odpf.github.io/guardian/docs/contribute/contribution) contains resources for anyone who wants to contribute to Guardian. diff --git a/internal/server/server.go b/internal/server/server.go index 9e254ef21..e55321a69 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -36,6 +36,10 @@ var ( ConfigFileName = "config" ) +const ( + GRPCMaxClientSendSize = 32 << 20 +) + // RunServer runs the application server func RunServer(config *Config) error { logger := log.NewLogrus(log.LogrusWithLevel(config.LogLevel)) @@ -132,7 +136,15 @@ func RunServer(config *Config) error { }), ) address := fmt.Sprintf(":%d", config.Port) - grpcConn, err := grpc.DialContext(timeoutGrpcDialCtx, address, grpc.WithInsecure()) + grpcConn, err := grpc.DialContext( + timeoutGrpcDialCtx, + address, + grpc.WithInsecure(), + grpc.WithDefaultCallOptions( + grpc.MaxCallRecvMsgSize(GRPCMaxClientSendSize), + grpc.MaxCallSendMsgSize(GRPCMaxClientSendSize), + ), + ) if err != nil { return err }