diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index dabcdaa..c98e87a 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,4 +1,4 @@ -name: Build KYC service docker image +name: Build Humanornot service docker image on: workflow_dispatch: diff --git a/.github/workflows/actions_onlymain.yml b/.github/workflows/actions_onlymain.yml index 4c9e864..0aa9c2a 100644 --- a/.github/workflows/actions_onlymain.yml +++ b/.github/workflows/actions_onlymain.yml @@ -1,4 +1,4 @@ -name: Build KYC service docker image +name: Build Humanornot service docker image on: push: branches: diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 04c50b5..500bb60 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -1,4 +1,4 @@ -name: Build KYC service docker image +name: Build Humanornot service docker image on: push: tags: diff --git a/Dockerfile b/Dockerfile index c4ff946..46657f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,16 @@ FROM golang:1.19-alpine as buildbase RUN apk add git build-base -WORKDIR /go/src/github.com/rarimo/kyc-service +WORKDIR /go/src/github.com/rarimo/humanornot-svc COPY vendor . COPY . . -RUN GOOS=linux go build -o /usr/local/bin/kyc-service /go/src/github.com/rarimo/kyc-service +RUN GOOS=linux go build -o /usr/local/bin/humanornot-svc /go/src/github.com/rarimo/humanornot-svc FROM alpine:3.9 -COPY --from=buildbase /usr/local/bin/kyc-service /usr/local/bin/kyc-service +COPY --from=buildbase /usr/local/bin/humanornot-svc /usr/local/bin/humanornot-svc RUN apk add --no-cache ca-certificates -ENTRYPOINT ["kyc-service"] +ENTRYPOINT ["humanornot-svc"] diff --git a/README.md b/README.md index dcf6f6f..b28db0b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# kyc-service +# humanornot-svc ## Description @@ -15,8 +15,8 @@ Integrated identity provider: ## Install ``` - git clone github.com/rarimo/kyc-service - cd kyc-service + git clone github.com/rarimo/humanornot-svc + cd humanornot-svc go build main.go export KV_VIPER_FILE=./config.yaml ./main migrate up @@ -47,8 +47,8 @@ Make sure that docker installed. use `docker run ` with `-p 8080:80` to expose port 80 to 8080 ``` - docker build -t github.com/rarimo/kyc-service . - docker run -e KV_VIPER_FILE=/config.yaml github.com/rarimo/kyc-service + docker build -t github.com/rarimo/humanornot-svc . + docker run -e KV_VIPER_FILE=/config.yaml github.com/rarimo/humanornot-svc ``` ## Running from Source diff --git a/config.yaml b/config.yaml index 7c0860b..bc3fab3 100644 --- a/config.yaml +++ b/config.yaml @@ -46,12 +46,12 @@ kleros: eth_rpc_url: proof_of_humanity_contract: -kyc_service: +humanornot_svc: nonce_life_time: 30m cop: disabled: true endpoint: "http://..." upstream: "http://..." - service_name: kyc-service + service_name: humanornot-svc service_port: 80 diff --git a/docs/.redoclyrc b/docs/.redoclyrc index 4c9462e..90d55f9 100644 --- a/docs/.redoclyrc +++ b/docs/.redoclyrc @@ -1,5 +1,5 @@ -apiTitle: kyc-service +apiTitle: humanornot-svc splitSpec: true codeSamples: false swaggerUI: true diff --git a/docs/package-lock.json b/docs/package-lock.json index 77875e5..bffafe1 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -1,11 +1,11 @@ { - "name": "kyc-service", + "name": "humanornot-svc", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "kyc-service", + "name": "humanornot-svc", "version": "1.0.0", "dependencies": { "@tokend/redoc-cli": "^0.9.9", diff --git a/docs/package.json b/docs/package.json index 23151f7..926e5fb 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,5 +1,5 @@ { - "name": "kyc-service", + "name": "humanornot-svc", "version": "1.0.0", "dependencies": { "@tokend/redoc-cli": "^0.9.9", diff --git a/docs/spec/components/schemas/VerifyStatus.yaml b/docs/spec/components/schemas/VerifyStatus.yaml index 628c46f..b62bbfd 100644 --- a/docs/spec/components/schemas/VerifyStatus.yaml +++ b/docs/spec/components/schemas/VerifyStatus.yaml @@ -21,4 +21,4 @@ allOf: description: Verification status of the account. claim_id: type: string - description: KYC claim ID. + description: Humanornot claim ID. diff --git a/docs/spec/openapi.yaml b/docs/spec/openapi.yaml index af80ded..cb66f30 100644 --- a/docs/spec/openapi.yaml +++ b/docs/spec/openapi.yaml @@ -1,5 +1,5 @@ openapi: 3.0.0 info: version: 1.0.0 - title: kyc-service + title: humanornot-svc description: '' diff --git a/docs/spec/paths/integrations@kyc-service@v1@public@nonce.yaml b/docs/spec/paths/integrations@humanornot-svc@v1@public@nonce.yaml similarity index 100% rename from docs/spec/paths/integrations@kyc-service@v1@public@nonce.yaml rename to docs/spec/paths/integrations@humanornot-svc@v1@public@nonce.yaml diff --git a/docs/spec/paths/integrations@kyc-service@v1@public@status@{verification-id}.yaml b/docs/spec/paths/integrations@humanornot-svc@v1@public@status@{verification-id}.yaml similarity index 100% rename from docs/spec/paths/integrations@kyc-service@v1@public@status@{verification-id}.yaml rename to docs/spec/paths/integrations@humanornot-svc@v1@public@status@{verification-id}.yaml diff --git a/docs/spec/paths/integrations@kyc-service@v1@public@verify@{identity-provider}.yaml b/docs/spec/paths/integrations@humanornot-svc@v1@public@verify@{identity-provider}.yaml similarity index 95% rename from docs/spec/paths/integrations@kyc-service@v1@public@verify@{identity-provider}.yaml rename to docs/spec/paths/integrations@humanornot-svc@v1@public@verify@{identity-provider}.yaml index c604d32..8077f79 100644 --- a/docs/spec/paths/integrations@kyc-service@v1@public@verify@{identity-provider}.yaml +++ b/docs/spec/paths/integrations@humanornot-svc@v1@public@verify@{identity-provider}.yaml @@ -34,7 +34,7 @@ post: '400': description: Bad request '401': - description: Unauthorized. KYC failed + description: Unauthorized. Humanornot failed to check humanity. content: application/json: schema: diff --git a/docs/spec/paths/integrations@kyc-service@v1@public@{identity-id}@provider.yaml b/docs/spec/paths/integrations@humanornot-svc@v1@public@{identity-id}@provider.yaml similarity index 100% rename from docs/spec/paths/integrations@kyc-service@v1@public@{identity-id}@provider.yaml rename to docs/spec/paths/integrations@humanornot-svc@v1@public@{identity-id}@provider.yaml diff --git a/docs/web/index.hbs b/docs/web/index.hbs index 600fc50..c0c8144 100644 --- a/docs/web/index.hbs +++ b/docs/web/index.hbs @@ -3,7 +3,7 @@ - kyc-service Service Documentation + humanornot-svc Service Documentation