-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
276 changed files
with
50,230 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Keys | ||
# Required keys for platform encryption/decryption ops | ||
PRIVATE_KEY=replace_with_nacl_sk | ||
PUBLIC_KEY=replace_with_nacl_pk | ||
ENCRYPTION_KEY=replace_with_lengthy_secure_hex | ||
|
||
# JWT | ||
# Required secrets to sign JWT tokens | ||
JWT_SIGNUP_SECRET=replace_with_lengthy_secure_hex | ||
JWT_REFRESH_SECRET=replace_with_lengthy_secure_hex | ||
JWT_AUTH_SECRET=replace_with_lengthy_secure_hex | ||
|
||
# JWT lifetime | ||
# Optional lifetimes for JWT tokens expressed in seconds or a string | ||
# describing a time span (e.g. 60, "2 days", "10h", "7d") | ||
JWT_AUTH_LIFETIME= | ||
JWT_REFRESH_LIFETIME= | ||
JWT_SERVICE_SECRET= | ||
JWT_SIGNUP_LIFETIME= | ||
|
||
# Optional lifetimes for OTP expressed in seconds | ||
EMAIL_TOKEN_LIFETIME= | ||
|
||
# MongoDB | ||
# Backend will connect to the MongoDB instance at connection string MONGO_URL which can either be a ref | ||
# to the MongoDB container instance or Mongo Cloud | ||
# Required | ||
MONGO_URL=mongodb://root:example@mongo:27017/?authSource=admin | ||
|
||
# Optional credentials for MongoDB container instance | ||
MONGO_USERNAME=root | ||
MONGO_PASSWORD=example | ||
|
||
# Mongo-Express vars (needed for development only) | ||
ME_CONFIG_MONGODB_ADMINUSERNAME=root | ||
ME_CONFIG_MONGODB_ADMINPASSWORD=example | ||
ME_CONFIG_MONGODB_URL=mongodb://root:example@mongo:27017/ | ||
|
||
# Website URL | ||
# Required | ||
NODE_ENV=development | ||
NEXT_PUBLIC_WEBSITE_URL=http://localhost:8080 | ||
|
||
# Mail/SMTP | ||
# Required to send emails | ||
# By default, SMTP_HOST is set to smtp.gmail.com | ||
SMTP_HOST=smtp.gmail.com | ||
SMTP_NAME=Team | ||
SMTP_USERNAME=[email protected] | ||
SMTP_PASSWORD= | ||
|
||
# Integration | ||
# Optional only if integration is used | ||
OAUTH_CLIENT_SECRET_HEROKU= | ||
OAUTH_TOKEN_URL_HEROKU= | ||
|
||
# Sentry (optional) for monitoring errors | ||
SENTRY_DSN= | ||
|
||
# Infisical Cloud-specific configs | ||
# Ignore - Not applicable for self-hosted version | ||
POSTHOG_HOST= | ||
POSTHOG_PROJECT_API_KEY= | ||
STRIPE_SECRET_KEY= | ||
STRIPE_PUBLISHABLE_KEY= | ||
STRIPE_WEBHOOK_SECRET= | ||
STRIPE_PRODUCT_CARD_AUTH= | ||
STRIPE_PRODUCT_PRO= | ||
STRIPE_PRODUCT_STARTER= | ||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY= |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
# run only against tags | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
# packages: write | ||
# issues: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.19.3' | ||
cache: true | ||
cache-dependency-path: cli/go.sum | ||
# More assembly might be required: Docker logins, GPG, etc. It all depends | ||
# on your needs. | ||
- uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
# either 'goreleaser' (default) or 'goreleaser-pro': | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} | ||
FURY_TOKEN: ${{ secrets.FURYPUSHTOKEN }} | ||
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' | ||
# distribution: | ||
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} |
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,9 +1,51 @@ | ||
# backend | ||
node_modules | ||
.env | ||
.env.dev | ||
.env.prod | ||
.env.infisical | ||
.DS_STORE | ||
|
||
*~ | ||
*.swn | ||
*.swp | ||
*.swo | ||
|
||
.DS_Store | ||
|
||
/dist | ||
|
||
# frontend | ||
|
||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
.env | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.vercel | ||
.env.infisical |
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 |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
# before: | ||
# hooks: | ||
# # You may remove this if you don't use go modules. | ||
# - cd cli && go mod tidy | ||
# # you may remove this if you don't need go generate | ||
# - cd cli && go generate ./... | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
binary: infisical | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
id: infisical | ||
goarch: | ||
- arm | ||
- amd64 | ||
- arm64 | ||
goarm: | ||
- 5 | ||
- 6 | ||
- 7 | ||
dir: ./cli | ||
|
||
release: | ||
replace_existing_draft: true | ||
mode: 'replace' | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
publishers: | ||
- name: fury.io | ||
ids: | ||
- infisical | ||
dir: "{{ dir .ArtifactPath }}" | ||
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/infisical/ | ||
|
||
# publishers: | ||
# - name: fury.io | ||
# ids: | ||
# - infisical | ||
# dir: "{{ dir .ArtifactPath }}" | ||
# cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/infisical/ | ||
brews: | ||
- name: infisical | ||
tap: | ||
owner: Infisical | ||
name: homebrew-get-cli | ||
commit_author: | ||
name: "Infisical" | ||
email: [email protected] | ||
folder: Formula | ||
homepage: "https://infisical.com" | ||
description: "The official Infisical CLI" | ||
nfpms: | ||
- id: infisical | ||
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
package_name: infisical | ||
builds: | ||
- infisical | ||
vendor: Infisical, Inc | ||
homepage: https://infisical.com/ | ||
maintainer: Infisical, Inc | ||
description: The offical Infisical CLI | ||
license: Apache 2.0 | ||
formats: | ||
- rpm | ||
- deb | ||
- apk | ||
bindir: /usr/bin | ||
scoop: | ||
bucket: | ||
owner: Infisical | ||
name: scoop-infisical | ||
commit_author: | ||
name: "Infisical" | ||
email: [email protected] | ||
homepage: "https://infisical.com" | ||
description: "The official Infisical CLI" | ||
license: Apache-2.0 | ||
# dockers: | ||
# - dockerfile: goreleaser.dockerfile | ||
# goos: linux | ||
# goarch: amd64 | ||
# ids: | ||
# - infisical | ||
# image_templates: | ||
# - "infisical/cli:{{ .Version }}" | ||
# - "infisical/cli:{{ .Major }}.{{ .Minor }}" | ||
# - "infisical/cli:{{ .Major }}" | ||
# - "infisical/cli:latest" | ||
# build_flag_templates: | ||
# - "--label=org.label-schema.schema-version=1.0" | ||
# - "--label=org.label-schema.version={{.Version}}" | ||
# - "--label=org.label-schema.name={{.ProjectName}}" | ||
# - "--platform=linux/amd64" |
Oops, something went wrong.