Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverside verification + docs revised #426

Merged
merged 119 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
104119b
Update README.md
sprotest Dec 16, 2022
1d4d920
Alternative chains support (#281)
tafonina Dec 16, 2022
5dccd27
update readme with chains list
tafonina Dec 16, 2022
c82051f
test negative scenario
tafonina Dec 16, 2022
1f20476
return goerli cobfig
tafonina Dec 16, 2022
3f3d883
remove console metamask error (#286)
tafonina Dec 19, 2022
c029847
Merge branch 'develop' into preprod
tafonina Jan 25, 2023
eb2d4a0
Merge pull request #1 from ProxeusApp/preprod
sprotest Jan 25, 2023
33f810e
Update README.md
sprotest Jan 31, 2023
a890af1
add console logs on default accounts setup and on sign request
Feb 3, 2023
42938d9
Merge pull request #3 from sprotest/feature/test-autodeploy
tafonina Feb 3, 2023
3edb833
Test autodeploy flow (#290)
tafonina Feb 3, 2023
eb86793
add more static js to Cache-Control
epadalkin Feb 21, 2023
20e0707
Merge pull request #4 from epadalkin/feature/fix_load_preview
tafonina Feb 22, 2023
e84518f
Merge pull request #5 from ProxeusApp/preprod
tafonina Feb 22, 2023
942a06b
Fix preview document bug (#295)
tafonina Feb 22, 2023
e5ad6bc
fix open prevuew
epadalkin Feb 23, 2023
1d5722f
Merge pull request #6 from epadalkin/feature/fix_load_preview
tafonina Feb 23, 2023
8a26ab7
Update docker-compose-cloud.override.yml
sprotest Feb 24, 2023
5fe455a
Merge pull request #7 from ProxeusApp/preprod
tafonina Feb 24, 2023
b4a3e86
Update docker-compose-cloud.override.yml
sprotest Feb 24, 2023
cbfc147
The Watchtower service will never be used (#296)
sprotest Feb 24, 2023
2cd2ee7
back merge master to preprod
Mar 31, 2023
7513ff3
Merge pull request #8 from ProxeusApp/preprod
tafonina Mar 31, 2023
17eca00
add configuration for polygon and update addresses
Mar 31, 2023
448e920
Merge pull request #9 from sprotest/feature/polygon
tafonina Mar 31, 2023
045c662
update configs atrribute for polygon
Mar 31, 2023
82d3a82
Merge pull request #10 from sprotest/feature/polygon
tafonina Mar 31, 2023
5e6e35f
Add polygon configs (#301)
tafonina Apr 3, 2023
454630d
Yarn update
loleg Apr 5, 2023
4471579
Deployment doc update
loleg Apr 5, 2023
8b61084
Better enc key generation
loleg Apr 17, 2023
9112e52
Merge branch 'main' of https://github.com/ProxeusApp/proxeus-core
loleg Apr 17, 2023
1b405ea
Go 1.18 in CircleCI
loleg May 22, 2023
ea29cb3
Go 1.18
loleg May 22, 2023
dd814e1
Go update
loleg May 23, 2023
9cd9639
Go update
loleg May 23, 2023
5dcc6b8
Vue-cli pinned to 4.x
loleg May 23, 2023
1bc53f6
CircleCI builder
loleg May 23, 2023
6456ccb
Add go-bindata install
loleg May 23, 2023
f175b54
Add gopath to CircleCI
loleg May 24, 2023
dfd80a6
CircleCI config, go install
loleg May 25, 2023
318346e
Go update, go-ethereum Azimir
loleg May 25, 2023
f26ef03
Go 1.20
loleg May 25, 2023
3d8255f
make fmt
loleg May 25, 2023
5361e88
Go-bindata again
loleg May 25, 2023
e9ac427
README
loleg May 25, 2023
3d8141b
Image based test-ui
loleg May 25, 2023
c2bbde4
Sync nodejs ver in test-ui
loleg May 25, 2023
1fb7c0d
Add libxtst6 library for Cypress
loleg May 25, 2023
30ffe0d
Add full deps for Cypress
loleg May 25, 2023
bbed874
Quickstart docs
loleg Jun 8, 2023
6691fb5
Documentation changes, Yarn update (#303)
loleg Jun 8, 2023
0d6bccc
update support for sopelia network in the code and docs
Jun 9, 2023
0d70290
Merge pull request #11 from sprotest/feature/sepolia-support
tafonina Jun 9, 2023
a24335a
Merge branch 'develop' into preprod
tafonina Jun 9, 2023
c7d7858
Merge branch 'main' into preprod
tafonina Jun 9, 2023
f7ab5b0
update go mod
Jun 9, 2023
6547457
Light script for Docker
loleg Jun 13, 2023
07edf75
Network usage notes
loleg Jun 13, 2023
31d7c8a
Go modules updated
loleg Jun 13, 2023
6482176
Feature/fix web3 method from ascii (#312)
tafonina Jun 13, 2023
b183b2a
Update from ascii call in web3 (#313)
tafonina Jun 13, 2023
f83ddf7
Update CircleCI build config
loleg Jun 14, 2023
5d9ec48
Merge branch 'preprod' of github.com:proxeusapp/proxeus-core into pre…
loleg Jun 14, 2023
4ec79e7
Merged
loleg Jun 26, 2023
74abc91
Cleaned up CircleCI, added version release
loleg Jun 26, 2023
25bf7b0
Yarn upgrade
loleg Jul 3, 2023
efabceb
Go update #316
loleg Jul 3, 2023
52ccbcb
Merged
loleg Jul 3, 2023
82beac2
Go modules
loleg Jul 3, 2023
578f756
Removed demo and staging from workflow
loleg Jul 3, 2023
9df4364
yarn lock conflicts resolve
Jul 20, 2023
e83e04a
Merged branch 318
loleg Aug 11, 2023
f317ceb
Updated Go mods, downgrading x/exp due to go-ethereum/issues/27894
loleg Aug 11, 2023
baf7ada
Merged main
loleg Aug 11, 2023
f0b5a60
Merge branch 'main' into preprod
loleg Aug 11, 2023
7885682
Go fix, Yarn upgrade
loleg Aug 11, 2023
5ebcb29
Revert to Debian Slim in Dockerfile
loleg Aug 11, 2023
d740ae9
Update Go modules (#323)
loleg Aug 18, 2023
0a7f154
Merge branch 'preprod' of github.com:proxeusapp/proxeus-core into pre…
loleg Aug 18, 2023
36e4d81
Merge branch 'main' into preprod
tafonina Aug 18, 2023
65cffa5
Merged
loleg Aug 21, 2023
db0d76b
Create dependabot.yml (#324)
loleg Aug 23, 2023
5745a6b
Merge branch 'main' into preprod
loleg Aug 24, 2023
7714089
Merged preprod
loleg Aug 24, 2023
f470d53
Database command
loleg Aug 28, 2023
5d0f59b
Added Handbook
loleg Aug 31, 2023
40f2c5c
Contributing and about
loleg Aug 31, 2023
7d77520
Handbook
loleg Aug 31, 2023
b005d9f
Improve getting started for users (#340)
Ibrahim-Halil-Kuray Sep 5, 2023
6e1842a
Fixes from s-pro (#349)
slavas490 Sep 13, 2023
90898b7
Merged
loleg Sep 20, 2023
6989dcf
Package updates
loleg Sep 21, 2023
2622438
Refreshing the Docker Compose set up
loleg Sep 21, 2023
0e39f90
Update quickstart.md (#365)
Ibrahim-Halil-Kuray Sep 21, 2023
5357911
Merge branch 'preprod' of github.com:ProxeusApp/proxeus-core into pre…
loleg Sep 21, 2023
ec25faf
Merged
loleg Sep 21, 2023
378ceb9
Merge branch 'main' of github.com:ProxeusApp/proxeus-core
loleg Sep 21, 2023
585bcca
Merged
loleg Sep 21, 2023
ce56d35
Fixed lint errors
loleg Sep 21, 2023
e1c3b7e
Add extra to Makefile in tests
loleg Sep 21, 2023
f9b8b2e
Oops mis-copied HTML code in SignatureRequest
loleg Sep 21, 2023
f24883d
Move forex-rates to cnode.override, Docs wording
loleg Sep 21, 2023
559cdcb
Order of chapters in Handbook (#387)
loleg Oct 18, 2023
a347dbe
Bump sass from 1.68.0 to 1.69.4 in /ui (#390)
dependabot[bot] Oct 20, 2023
ed674dd
Bump eslint-plugin-standard from 4.1.0 to 5.0.0 in /ui (#391)
dependabot[bot] Oct 20, 2023
9351241
Bump async from 2.6.4 to 3.2.4 in /ui (#394)
dependabot[bot] Oct 20, 2023
b382555
Installation guide (#396)
loleg Oct 20, 2023
51dbfe8
Bump @vue/eslint-config-standard from 4.0.0 to 5.1.2 in /ui (#400)
dependabot[bot] Oct 26, 2023
571c94a
Bump tippy.js from 2.6.0 to 6.3.7 in /ui (#399)
dependabot[bot] Oct 26, 2023
7e3d3e8
Bump ethereumjs-util from 5.2.1 to 7.1.5 in /ui (#398)
dependabot[bot] Oct 26, 2023
3b472cf
Bump eslint-plugin-vue from 9.17.0 to 9.18.1 in /ui (#408)
dependabot[bot] Nov 1, 2023
abcf6f3
Bump sass from 1.69.4 to 1.69.5 in /ui (#407)
dependabot[bot] Nov 1, 2023
9a5c09e
Server-side Verification of documents (#412)
tafonina Nov 3, 2023
b8295ab
fix invalid character, updates in BN lib (#413)
tafonina Nov 6, 2023
c9556f0
Bump @cypress/webpack-preprocessor from 3.0.1 to 4.1.5 in /ui (#417)
dependabot[bot] Nov 6, 2023
0dafa99
Go library updates (#427)
loleg Nov 16, 2023
662ab77
Merge branch 'main' into preprod
loleg Nov 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PROXEUS_EMAIL_FROM=<Your valid Sender Email Address>

PROXEUS_INFURA_API_KEY=<Your Infura project ID>

PROXEUS_SPARKPOST_API_KEY=<Your SparkPost API Key>

PROXEUS_ENCRYPTION_SECRET_KEY=<A 32-character random string>

# Sepolia test-net
PROXEUS_BLOCKCHAIN_CONTRACT_ADDRESS=0x9bc518Fd070BE3DBB07399261688015744a7FB02

# For a local development environment without SSL
PROXEUS_ALLOW_HTTP=true

# To see additional debugging information
PROXEUS_TEST_MODE=true
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ all: ui server
init:
@for d in $(dependencies); do (echo "Checking $$d is installed... " && which $$d ) || ( echo "Please install $$d before continuing" && exit 1 ); done
@go version
go install github.com/go-bindata/go-bindata/...
go install github.com/golang/mock/mockgen
go install github.com/wadey/gocovmerge
go install golang.org/x/tools/...
go install golang.org/x/tools/cmd/goimports
go install golang.org/x/tools/cmd/godoc
go install github.com/go-bindata/go-bindata/...@latest
go install github.com/golang/mock/mockgen@latest
go install github.com/wadey/gocovmerge@latest
go install golang.org/x/tools/...@latest
go install golang.org/x/tools/cmd/goimports@latest
go install golang.org/x/tools/cmd/godoc@latest

.PHONY: update
update:
Expand Down
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,6 @@ If you wish to build the project form the source code, follow the instructions i

Please read the [Developer Manual](https://doc.proxeus.com) to learn more about the Proxeus platform.

### Infura and SparkPost

The Proxeus platform currently depends on [Infura](https://infura.io/) for blockchain services. Supported chains include:

- ethereum: sepolia
- ethereum: goerli
- ethereum: mainnet
- polygon: mumbai
- polygon: mainnet

Create an account to get an API Keys. These keys need to be added to corresponding environment variables, or entered when deploying a "one-click" instance.

Proxeus works best with [SparkPost](https://www.sparkpost.com/) for email integration.

Please note that the domain you set up on SparkPost MUST match the **reply-to** e-mail address that you configure in the next step in order to create accounts and receive e-mails on your instance.

If all goes well, Proxeus should be available at http://localhost:1323. The next step will be to [configure](docs/configure.md) your instance for the first time.

## Contributing

As an open-source project, we welcome any kind of community involvement, whether that is by contributing code, reporting issues or
Expand Down
7 changes: 7 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Security Policy

## Reporting a Vulnerability

Please use our public [Issue Tracker](https://github.com/ProxeusApp/proxeus-core/issues) to open improvement and bug tickets.

If you find a **Security Issue** - a vulnerability that may affect live or testnet deployments please send your report privately to [email protected] - Please DO NOT file a public issue in this case.
21 changes: 21 additions & 0 deletions docker-compose-example.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# This file is an override and needs to be used like this:
#
# docker-compose -f docker-compose.yml -f docker-compose-example.override.yml up

version: '3.7'

services:
node-crypto-forex-rates:
networks:
- reverse-proxy
labels:
com.centurylinklabs.watchtower.enable: "true"
environment:
# Replace values for reverse-proxy
VIRTUAL_HOST: ${NODE_CRYPTO_FOREX_RATES_VIRTUAL_HOST:-proxeus.example.com}
VIRTUAL_PORT: 8011
# Replace values for letsencrypt
LETSENCRYPT_HOST: ${NODE_CRYPTO_FOREX_RATES_VIRTUAL_HOST:-proxeus.example.com}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL:[email protected]}
restart: unless-stopped
23 changes: 7 additions & 16 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,26 @@

- [Quick start](quickstart.md)
- [User handbook](handbook.md)
- [Formulas guide](formulas.md)
- [F.A.Q.](faq.md)

- Build and Run

- [Docker](build_docker.md)
- [Build All](build_all.md)
- [Configure Sever](configure.md)
- [Test](test.md)
- [Front End Only](build_frontend.md)
- [Back End Only](build_backend.md)
- [Docker](build_docker.md)
- [Test](test.md)

- Development

- [Software Architecture](architecture.md)
- [Components](components.md)
- [Back End](backend.md)
- [Front End](frontend.md)

- Deployment

- [Components](components.md)
- [Docker](docker.md)
- [Smart Contract](contract_deployment.md)
- [Database](database.md)
- [Smart Contracts](contract_deployment.md)

- API

Expand All @@ -33,18 +32,10 @@
- [List All Workflows](api_list_all_workflows.md)
- [Get Workflow Schema](api_get_workflow_schema.md)
- [Execute Workflow](api_execute_workflow.md)


- Workflow Extension

- [External Workflow Nodes](external_workflow_nodes.md)

- [Database](database.md)

- [Contributing](contributing.md)
- [Code of Conduct](code_of_conduct.md)
- [Coding Style](coding_style.md)

- [FAQ](faq.md)

- [License](license.md)
44 changes: 41 additions & 3 deletions docs/build_docker.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Docker

Please make sure that you always pull Docker images from the official `proxeus` DockerHub repository and that you are using the latest version.

## Start Proxeus

Run the following command in the directory containing your `docker-compose.yml` file (Linux and OSX):
```
export PROXEUS_EMAIL_FROM=<Your valid Sender Email Address>
export PROXEUS_INFURA_API_KEY=<Your Infura project ID>
export PROXEUS_SPARKPOST_API_KEY=<Your SparkPost API Key>
export PROXEUS_ENCRYPTION_SECRET_KEY=<A 32-character random string>
export PROXEUS_BLOCKCHAIN_CONTRACT_ADDRESS=0x1d3e5c81bf4bc60d41a8fbbb3d1bae6f03a75f71
export PROXEUS_ALLOW_HTTP=true
docker-compose up
```

You can also put these settings into an `.env` file in the same folder as the application.

See [Configuration settings](configure.md) for more details.

## Tweak your Docker setup

Besides the basic Docker Compose configuration, you can extend your installation as follows:

- `docker-compose-cloud.override` for cloud installations, which includes Nginx and Let's Encrypt
- `docker-compose-example.override` shows how to add another Proxeus Node to your installation
- `docker-compose-extra.override` includes all officially supported Proxeus Nodes
- `docker-compose-local.override` if you want to use your local Docker image (details below)

To use one or more of these overrides, start Proxeus as follows:

`docker-compose -f docker-compose.yml -f docker-compose-example.override.yml up`

(you always have to first include `docker-compose.yml`)

## Build a Docker image

Expand Down Expand Up @@ -42,7 +75,11 @@ docker-compose restart
This will build the proxeus-core image based on your current project and use a deployed image
for the document service.

## Using Docker for the build
## Tips

Having an issue with Go? Make sure it's in your path, e.g.:

`export PATH=$PATH:/usr/local/go/bin`

If you're having trouble, try a clean full Docker build, specifying each of the configuration files:

Expand All @@ -60,10 +97,11 @@ For deployment, a `docker-compose-cloud.override.yml` file is provided which inc
docker-compose -f docker-compose.yml -f docker-compose-cloud.override.yml up
```

You may also want to include custom nodes. There is a sample configuration which can be started like this:
You may also want to include custom nodes. There is a sample configuration which can be started like this (also possibly in combination with `docker-compose-cloud`):

```
docker-compose -f docker-compose.yml -f docker-compose-cloud.override.yml -f docker-compose-cnode.override.yml up
docker-compose -f docker-compose.yml -f docker-compose-example.override.yml up

```

See `docker-compose-extra.override.yml` for examples with several other nodes.
22 changes: 15 additions & 7 deletions docs/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ When starting the server for the first time, you will need to configure it.
Open http://localhost:1323/init to configure your server. Use the
configuration below as an example.

## Document Service URL
```
https://dev-ds.proxeus.com/
```
**Note:** that your system configuration at this point will be reflected in the local configuration database under `data/proxeus-platform/settings/main.json`. Any future changes to the configuration must be made here - the environment variables will not be propagated, unless you delete this file to reset the deployment.

## Infura API Key
Generate a [infura API Key](https://infura.io)

Generate an [Infura API Key](https://infura.io)

## Blockchain File Storage contract address

You can switch between the networks using the environment configuration `PROXEUS_BLOCKCHAIN_NET`.
For your convenience, a smart contract is deployed on several networks at the following addresses:

### Sepolia
```
0x9bc518Fd070BE3DBB07399261688015744a7FB02
Expand Down Expand Up @@ -46,15 +48,15 @@ Generate a [infura API Key](https://infura.io)
```
[Verify on Etherscan](https://polygonscan.com/address/0x60970BeFda93464A105DD21Dc6a30B69C5B5c6e4)



Alternatively: deploy your own smart contract from [ProxeusFS.sol](https://github.com/ProxeusApp/storage-app/blob/master/spp/eth/solidity/ProxeusFS.sol)


## Email from

```
[email protected]
```

## Sparkpost API Key

Set up a free account on [SparkPost](https://www.sparkpost.com)
Expand All @@ -70,6 +72,12 @@ [email protected]

This is a salt to hash your user's passwords in the database. You can use any value, with preference to hard generated strings. Make sure that it is exactly 32 characters long. Do not change the key on a running instance. This can only be set using an environment variable.

## Document Service URL

This only needs to be changed if you are running the service on a separate machine. See the documentation at https://github.com/ProxeusApp/document-service

---

# Full Configuration

You can get the full list of configuration parameters using the `-h` parameter:
Expand Down
13 changes: 8 additions & 5 deletions docs/faq.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# FAQ
# Frequently Asked Questions

To see new tips from the community, or if you have other questions, please visit our [Community Discussions](https://github.com/orgs/ProxeusApp/discussions).

Expand All @@ -7,12 +7,14 @@ To see new tips from the community, or if you have other questions, please visit
**Q:** Can I build it on on Windows?

**A:** There's no support for Windows yet; the whole init, build system has been tested on Linux and Mac only.
##

---

**Q:** I'm getting an error when trying to run the frontend.

**A:** Make sure you have NodeJS v8 and yarn 1.12. It hasn't been tested with superior versions yet.
##

---

## Settings

Expand All @@ -21,11 +23,12 @@ To see new tips from the community, or if you have other questions, please visit
**A:** Yes, pretty much all the are changeable through the Internationalization settings. A SUPERADMIN or higher user can change that.
That menu item should be shown on the sidebar in the backend or under `/admin/i18n`

##
---

## Forms

**Q:** Why the name field is red?

**A:** Components need to be unique and only a-z, A-Z, 0-9 is allowed. Do not use special characters and spaces for the naming of components.
##

---
Loading