Skip to content

Commit

Permalink
doc: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisuhag committed Jun 30, 2023
1 parent 2ba749b commit c6772d0
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 85 deletions.
89 changes: 8 additions & 81 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)
[![Version](https://img.shields.io/github/v/release/raystack/guardian?logo=semantic-release)](Version)

Guardian is a on-demand access management tool. It manages resources from various data providers along with the users’ access. Users required to raise an appeal in order to gain access to a particular resource. The appeal will go through several approvals before it is getting approved and granted the access to the user.
Guardian is a tool for extensible and universal data access with automated access workflows and security controls across data stores, analytical systems, and cloud products.

<p align="center"><img src="./docs/static/assets/overview.svg" /></p>

Expand All @@ -22,14 +22,14 @@ Guardian is a on-demand access management tool. It manages resources from variou

Explore the following resoruces to get started with Guardian:

- [Guides](https://raystack.github.io/guardian/docs/tour/introduction) provides guidance on usage.
- [Concepts](https://raystack.github.io/guardian/docs/concepts/overview) describes all important Guardian concepts including system architecture.
- [Reference](https://raystack.github.io/guardian/docs/reference/api) contains details about configurations and other aspects of Guardian.
- [Contribute](https://raystack.github.io/guardian/docs/contribute/contribution) contains resources for anyone who wants to contribute to Guardian.
- [Guides](https://guardian.vercel.app/docs/tour/introduction) provides guidance on usage.
- [Concepts](https://guardian.vercel.app/docs/concepts/overview) describes all important Guardian concepts including system architecture.
- [Reference](https://guardian.vercel.app/docs/reference/api) contains details about configurations and other aspects of Guardian.
- [Contribute](https://guardian.vercel.app/docs/contribute/contribution) contains resources for anyone who wants to contribute to Guardian.

## Installation

Install Guardian on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine. <br/>Refer this for [installations](https://raystack.github.io/guardian/docs/installation) and [configurations](https://raystack.github.io/guardian/docs/tour/configuration)
Install Guardian on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine. <br/>Refer this for [installations](https://guardian.vercel.app/docs/installation) and [configurations](https://guardian.vercel.app/docs/tour/configuration)

#### Binary (Cross-platform)

Expand All @@ -51,12 +51,6 @@ To upgrade to the latest version:
brew upgrade guardian
```

Check for installed guardian version

```sh
guardian version
```

#### Linux

`guardian` is available as downloadable binaries from the [releases](https://github.com/raystack/guardian/releases/latest) page. Download the `.deb` or `.rpm` from the releases page and install with `sudo dpkg -i` and `sudo rpm -i` respectively.
Expand Down Expand Up @@ -86,7 +80,7 @@ docker pull raystack/guardian:latest
To pull a specific version:

```
docker pull raystack/guardian:v0.3.2
docker pull raystack/guardian:v0.8.0
```

## Usage
Expand All @@ -113,79 +107,12 @@ guardian reference

Guardian provides a fully-featured GRPC and HTTP API to interact with Guardian server. Both APIs adheres to a set of standards that are rigidly followed. Please refer to [proton](https://github.com/raystack/proton/tree/main/raystack/guardian/v1beta1) for GRPC API definitions.

## Running locally

<details>
<summary>Dependencies:</summary>

- Git
- Go 1.18 or above
- PostgreSQL 13.2 or above

</details>

Clone the repo

```
git clone git@github.com:raystack/guardian.git
```

Install all the golang dependencies

```
make setup
```

Build guardian binary file

```
make build
```

Init server config. Customise with your local configurations.

```
make config
```

Run database migrations

```
./guardian server migrate -c config.yaml
```

Start guardian server

```
./guardian server start -c config.yaml
```

Initialise client configurations

```
./guardian config init
```

## Running tests

Running all unit tests

```sh
make test
```

Print code coverage

```
make coverage
```

## Contribute

Development of Guardian happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and
improvements. Read below to learn how you can take part in improving Guardian.

Read our [contributing guide](https://raystack.github.io/guardian/docs/contribute/contribution) to learn about our development process, how to propose
Read our [contributing guide](https://guardian.vercel.app/docs/contribute/contribution) to learn about our development process, how to propose
bugfixes and improvements, and how to build and test your changes to Guardian.

To help you get your feet wet and get you familiar with our contribution process, we have a list of
Expand Down
2 changes: 1 addition & 1 deletion cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func New(cfg *Config) *cobra.Command {
"group": "core",
"help:learn": heredoc.Doc(`
Use 'guardian <command> --help' for info about a command.
Read the manual at https://raystack.github.io/guardian/
Read the manual at https://guardian.vercel.app/
`),
"help:feedback": heredoc.Doc(`
Open an issue here https://github.com/raystack/guardian/issues
Expand Down
68 changes: 68 additions & 0 deletions docs/docs/contribute/development.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,70 @@
# Development Guide

Following are the steps to setup guardian development environment.

## Running locally

<details>
<summary>Dependencies:</summary>

- Git
- Go 1.18 or above
- PostgreSQL 13.2 or above

</details>

Clone the repo

```
git clone git@github.com:raystack/guardian.git
```

Install all the golang dependencies

```
make setup
```

Build guardian binary file

```
make build
```

Init server config. Customise with your local configurations.

```
make config
```

Run database migrations

```
./guardian server migrate -c config.yaml
```

Start guardian server

```
./guardian server start -c config.yaml
```

Initialise client configurations

```
./guardian config init
```

## Running tests

Running all unit tests

```sh
make test
```

Print code coverage

```
make coverage
```
2 changes: 1 addition & 1 deletion docs/docs/guides/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Ensure that the following requirements are met:
Add Raystack chart repository to Helm:

```
helm repo add raystack https://raystack.github.io/charts/
helm repo add raystack https://guardian.vercel.app/charts/
```

You can update the chart repository by running:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ For more information on using the Guardian CLI, see the [CLI Reference](./refere

#### HTTPS API

You can get hands on appeal creation, approval updatation, access revocation and much more by using the Guardian HTTPS API, which lets you issue HTTPS requests directly to the service. When you use the HTTPS API, you must include the username in the request header, which will be used by [Shield](https://raystack.github.io/shield/) for authorization. For more information, see the [API Reference](/reference/api.md) page.
You can get hands on appeal creation, approval updatation, access revocation and much more by using the Guardian HTTPS API, which lets you issue HTTPS requests directly to the service. When you use the HTTPS API, you must include the username in the request header, which will be used by [Shield](https://guardian.vercel.app/shield/) for authorization. For more information, see the [API Reference](/reference/api.md) page.

## Where to go from here

Expand Down
2 changes: 1 addition & 1 deletion docs/static/img/banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c6772d0

Please sign in to comment.