-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
420 changed files
with
9,482 additions
and
9,433 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ proxies/*.yaml | |
proxies/*.yml | ||
.temp | ||
temp | ||
shield | ||
frontier | ||
config.yaml | ||
config.yml | ||
coverage.txt | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
project_name: shield | ||
project_name: frontier | ||
|
||
release: | ||
prerelease: auto | ||
|
@@ -8,20 +8,20 @@ before: | |
- make test | ||
|
||
builds: | ||
- id: "shield" | ||
- id: "frontier" | ||
goos: [linux, darwin, windows] | ||
goarch: [amd64, arm64] | ||
binary: shield | ||
binary: frontier | ||
main: ./main.go | ||
ldflags: | ||
- -s -w -X github.com/raystack/shield/config.Version={{.Tag}} | ||
- -X github.com/raystack/shield/config.BuildCommit={{.FullCommit}} | ||
- -X github.com/raystack/shield/config.BuildDate={{.Date}} | ||
- -s -w -X github.com/raystack/frontier/config.Version={{.Tag}} | ||
- -X github.com/raystack/frontier/config.BuildCommit={{.FullCommit}} | ||
- -X github.com/raystack/frontier/config.BuildDate={{.Date}} | ||
env: | ||
- CGO_ENABLED=0 | ||
|
||
archives: | ||
- id: "shield-archive" | ||
- id: "frontier-archive" | ||
format: tar.gz | ||
name_template: >- | ||
{{ .ProjectName }}_ | ||
|
@@ -52,7 +52,7 @@ dockers: | |
- goos: linux | ||
goarch: amd64 | ||
ids: | ||
- shield | ||
- frontier | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- "docker.io/raystack/{{.ProjectName}}:latest" | ||
|
@@ -61,31 +61,31 @@ dockers: | |
- goos: linux | ||
goarch: arm64 | ||
ids: | ||
- shield | ||
- frontier | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-arm64" | ||
|
||
nfpms: | ||
- maintainer: Raystack | ||
description: Identity and authorization system | ||
homepage: https://github.com/raystack/shield | ||
homepage: https://github.com/raystack/frontier | ||
license: Apache 2.0 | ||
formats: | ||
- deb | ||
- rpm | ||
|
||
scoops: | ||
- homepage: "https://github.com/raystack/shield" | ||
- homepage: "https://github.com/raystack/frontier" | ||
description: "Identity and authorization system" | ||
license: Apache 2.0 | ||
bucket: | ||
owner: raystack | ||
name: scoop-bucket | ||
|
||
brews: | ||
- name: shield | ||
homepage: "https://github.com/raystack/shield" | ||
- name: frontier | ||
homepage: "https://github.com/raystack/frontier" | ||
description: "Identity and authorization system" | ||
tap: | ||
owner: raystack | ||
|
@@ -95,7 +95,7 @@ brews: | |
dependencies: | ||
- name: git | ||
install: |- | ||
bin.install "shield" | ||
bin.install "frontier" | ||
commit_author: | ||
name: Ravi Suhag | ||
email: [email protected] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM alpine:3.17 | ||
|
||
COPY shield /usr/bin/shield | ||
COPY frontier /usr/bin/frontier | ||
|
||
EXPOSE 8080 | ||
EXPOSE 5556 | ||
ENTRYPOINT ["shield"] | ||
ENTRYPOINT ["frontier"] |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
GOVERSION := $(shell go version | cut -d ' ' -f 3 | cut -d '.' -f 2) | ||
NAME=github.com/raystack/shield | ||
NAME=github.com/raystack/frontier | ||
TAG := $(shell git rev-list --tags --max-count=1) | ||
VERSION := $(shell git describe --tags ${TAG}) | ||
.PHONY: build check fmt lint test test-race vet test-cover-html help install proto ui | ||
.DEFAULT_GOAL := build | ||
PROTON_COMMIT := "7a4fd9e7a6e557aec52f9dafe0c26fa099e54b0b" | ||
PROTON_COMMIT := "6b20a5b1ce9ef3934c816bf9aee38484d8fcc592" | ||
|
||
ui: | ||
@echo " > generating ui build" | ||
|
@@ -16,7 +16,7 @@ install: | |
@go get -d github.com/vektra/mockery/[email protected] | ||
|
||
build: | ||
CGO_ENABLED=0 go build -ldflags "-X ${NAME}/config.Version=${VERSION}" -o shield . | ||
CGO_ENABLED=0 go build -ldflags "-X ${NAME}/config.Version=${VERSION}" -o frontier . | ||
|
||
generate: ## run all go generate in the code base (including generating mock files) | ||
go generate ./... | ||
|
@@ -47,7 +47,7 @@ integration-test: | |
go test -v -race ./test/integration | ||
|
||
benchmark: ## Run benchmarks | ||
go test -run=XX -bench=Benchmark. -count 3 -benchtime=1s github.com/raystack/shield/test/integration | ||
go test -run=XX -bench=Benchmark. -count 3 -benchtime=1s github.com/raystack/frontier/test/integration | ||
|
||
coverage: ## print code coverage | ||
go test -race -coverprofile coverage.out -covermode=atomic ./... -tags=unit_test && go tool cover -html=coverage.txt | ||
|
@@ -58,8 +58,8 @@ clean : | |
proto: ## Generate the protobuf files | ||
@echo " > generating protobuf from raystack/proton" | ||
@echo " > [info] make sure correct version of dependencies are installed using 'make install'" | ||
@buf generate https://github.com/raystack/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path raystack/shield | ||
@cp -R proto/raystack/shield/* proto/ && rm -Rf proto/raystack | ||
@buf generate https://github.com/raystack/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path raystack/frontier | ||
@cp -R proto/raystack/frontier/* proto/ && rm -Rf proto/raystack | ||
@echo " > protobuf compilation finished" | ||
|
||
clean-doc: | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.