1
0
mirror of https://github.com/bigchaindb/bigchaindb.git synced 2024-06-28 00:27:45 +02:00
Commit Graph

4061 Commits

Author SHA1 Message Date
Ahmed Muawia Khan
3c290d64a5 re-add f-string to web stream 2018-02-26 15:42:17 +01:00
Ahmed Muawia Khan
847183a7d8
Merge pull request #2099 from muawiakh/check-kubectl-installed
Check if kubectl is installed otherwise exit
2018-02-26 15:28:12 +01:00
Ahmed Muawia Khan
d85396b220 Check if kubectl is installed otherwise exit 2018-02-26 15:07:27 +01:00
Troy McConaghy
6d27cbe868
Merge pull request #2095 from muawiakh/automate-mdb-user-creation
Automate MongoDB user creation for prod/test deployments
2018-02-26 14:58:50 +01:00
Ahmed Muawia Khan
3c09de97b0 remove redundant variable assignment 2018-02-26 14:54:34 +01:00
Ahmed Muawia Khan
7cea7298f0 Update mongodb user configuration
- Update docs for azure cluster deployment template
- Update entrypoint for MongoDB to handle user configuration
  more efficiently
- remove `use admin` in js file, that is an invalid format
2018-02-26 14:45:21 +01:00
Ahmed Muawia Khan
d977753831 Automate MongoDB user creation for prod/test deployments
- Currently, we had to manually log into the MongoDB container
  and create users, this change will configure the relevant users
  from a single script `configure_mdb.sh`
- Improvements can be done but keeping it minimal for the workshop
2018-02-26 03:37:43 +01:00
Troy McConaghy
86e7b2a881 Some minor copy-editing 2018-02-25 18:05:18 +01:00
Shahbaz Nazir
0ddfc62e3b
Problem: No authorization mode without threescale (#2088)
Problem
The current production deployment template uses 3scale to ensure that POST requests to the network (from anyone) only get through if they come from a client with an account (app_id and app_key).

A private network wants to launch so that all HTTP requests (POST and GET) sent to the nodes in the network get be dropped unless they come from a small set of known (and unchanging) clients/sources. They don't need 3scale. They will want a modified version of the production deployment template.

Solution
Generate a special HTTP header and share it with all the known clients/sources.
Have a single NGINX in each node which checks for that HTTP header value. If it's present, let the request pass through to the network. (HTTP headers are encrypted if HTTPS is used.)
Are there other simpler or better options?
2018-02-23 16:00:36 +01:00
Ahmed Muawia Khan
8fd50b23c8 Re-add travis changes
- This actually follows one concern on PR.
2018-02-23 15:33:32 +01:00
Ahmed Muawia Khan
8bfb903d4e [Chandler fix]: Bing -> Bind 2018-02-23 15:31:30 +01:00
Ahmed Muawia Khan
624d4e7459 Revert travis changes
- Follow one concern one PR.
2018-02-23 15:28:35 +01:00
Ahmed Muawia Khan
8e8e328205 Migrate CLI documentation
- Remove documentation for CLI commands that are not needed with
  Tendermint integration.
2018-02-23 14:53:28 +01:00
Ahmed Muawia Khan
d0089ca373 Fixing flake8 2018-02-23 14:43:14 +01:00
Vanshdeep Singh
cdec60a7c0 Rollback crash recovery mechanism (#2091) 2018-02-23 14:35:18 +01:00
Ahmed Muawia Khan
5cea9c28bf Migrate CLI for tendermint integration
- Remove commands that were not required.
  - export-my-pubkey
  - set-shards
  - set-replicas
  - add-replicas
  - remove-replicas
- Update bigchaindb --help, usage description
- Re-enable tests
- Update docker-compose.travis.yml and Dockerfile for travis
  because some env variables are not needed
2018-02-22 21:48:42 +01:00
Troy McConaghy
497e1039ef
Merge branch 'tendermint' into text-edits-in-http-api-docs 2018-02-22 21:02:33 +01:00
Ahmed Muawia Khan
ecee564d21 Remove create the node keypair from bigchaindb configure --help 2018-02-22 16:04:43 +01:00
Ahmed Muawia Khan
8ce01bf4ce Update minor formatting 2018-02-22 15:26:15 +01:00
Ahmed Muawia Khan
7f50003303 Update the migrate-cli proposal
- No need to deprecate commands that are not needed because
  tendermint integrated BigchainDB does not overlap with
  BigchainDB(v1.x)
- Update some sets
- Add more commands and usage.
2018-02-22 12:54:26 +01:00
Troy McConaghy
e6c77d5fcd
Merge pull request #2086 from bigchaindb/helpful-response-to-votes-endpoint
Make votes endpoint return 404 and a helpful message
2018-02-22 12:49:27 +01:00
Troy McConaghy
303c951137 Fixed flake8 errors 2018-02-22 12:41:20 +01:00
Ahmed Muawia Khan
96db5b9f12
Merge pull request #2084 from bigchaindb/update-bdb-docker-image-k8s
Update docker images and Dockerfiles
2018-02-22 12:23:31 +01:00
Troy McConaghy
8e4a2398a7 Make votes endpoint return 404 & helpful msg 2018-02-22 12:02:00 +01:00
Ahmed Muawia Khan
93e2b3bb4c Update imagePullPolicy for unstable images
- Update imagePullPolicy from IfNotPresent to Always
  for all unstable images we are using in k8s template,
  because those images are updated regularly, we will
  keep it unstable until the official release.
- Use Tendermint v0.13 as base docker image, since our current
  integration is based out of v0.13
2018-02-22 11:56:58 +01:00
Shahbaz Nazir
a782fa4635
Hardcode static ports for k8s deployment (#2080)
Description
Currently we manually configure ports in deployment and service files for k8s deployment e.g here. Instead these ports should be constant since these are always the same for each deployment

Issues This PR Fixes
Fixes #2077
2018-02-22 11:52:41 +01:00
Troy McConaghy
1aece3c10d
Merge pull request #2068 from bigchaindb/remove-refs-to-whitepaper-in-tendermint-branch
Remove all refs/links to whitepaper in tendermint branch
2018-02-21 22:04:29 +01:00
Troy McConaghy
77b70c3821
Merge pull request #2067 from bigchaindb/remove-refs-to-whitepaper-in-master
Remove whitepaper refs/links from the master branch
2018-02-21 22:04:09 +01:00
Ahmed Muawia Khan
a8a10edf0e Update Dockerfiles and remove tmt references 2018-02-21 20:31:53 +01:00
Ahmed Muawia Khan
8e6b4332b0 Update mongodb base image 2018-02-21 20:22:38 +01:00
Ahmed Muawia Khan
2978caaee6 Update images used by yaml files
- Using tag `unstable` currently, until BDB+Tendermint is released
2018-02-21 20:17:24 +01:00
Ahmed Muawia Khan
13e750705e
Merge pull request #2083 from bigchaindb/cert-gen-script
Certificate generation script for k8s deployment
2018-02-21 20:08:21 +01:00
Ahmed Muawia Khan
53019ff02a
Merge pull request #1992 from bigchaindb/tendermint-docs-k8s-dep
Template for BigchainDB + Tendermint Kubernetes Deployment
2018-02-21 19:23:14 +01:00
Ahmed Muawia Khan
55f212d885 Certificate generation script for k8s deployment 2018-02-21 19:18:24 +01:00
vrde
14d523efd5 Problem: processes don't have an intelligible name (#2078)
Solution: when a process starts, update the "process title" as well.
2018-02-21 17:54:50 +01:00
Ahmed Muawia Khan
5669514ee7 Fix label docs 2018-02-21 12:13:45 +01:00
Ahmed Muawia Khan
d5f45d4094
Merge pull request #1985 from bigchaindb/tendermint-k8s-dep
Deployment of Tendermint + BigchainDB cluster
2018-02-21 11:48:37 +01:00
Ahmed Muawia Khan
669b2d586b Merge branch 'tendermint' into tendermint-docs-k8s-dep 2018-02-21 11:48:02 +01:00
Ahmed Muawia Khan
df485d0983 Rename docker image tags and names 2018-02-21 11:38:24 +01:00
Ahmed Muawia Khan
de05e5bc3e Merge branch 'tendermint' into tendermint-k8s-dep 2018-02-21 11:32:45 +01:00
Vanshdeep Singh
5bfa8e29d8 Crash recovery mechanism (#2045)
* Crash recovery mechanism

* Propogate exception

* Added docs and crash receovery during block write

* Fix flake8 issue

* Remove approach 1 for crash recovery, recover db on 'bigchiandb start'

* Fix CI build issues

* Remove documentation
2018-02-21 10:50:12 +01:00
Troy McConaghy
55c1509362
Merge pull request #2076 from bigchaindb/patch-master-with-pr-2075-commit
Same as PR #2075 but for master branch
2018-02-20 15:03:41 +01:00
Troy McConaghy
15ce6e99f6 Fix the requirements.txt file for docs/server, update README.md 2018-02-20 14:13:28 +01:00
Troy McConaghy
58c5498d35
Merge pull request #2075 from bigchaindb/fix-issue-2072-http-api-examples
Resolve issue #2072
2018-02-20 13:11:07 +01:00
Troy McConaghy
c5fdaf24ad Fix the requirements.txt file for docs/server, update README.md 2018-02-20 12:58:23 +01:00
Troy McConaghy
8fb0682868
Merge pull request #2063 from bigchaindb/fix-common-schema-readme-md
Some edits to common/schema/README.md
2018-02-20 09:37:50 +01:00
Troy McConaghy
5c783be546
Merge branch 'tendermint' into text-edits-in-http-api-docs 2018-02-19 16:45:03 +01:00
Troy McConaghy
e1bdd41030 Copy-edited the HTTP API docs 2018-02-19 16:33:46 +01:00
Troy McConaghy
0ffcb36b7e
Merge pull request #2065 from bigchaindb/rm-docs-about-votes
Updated (almost) all docs regarding "votes" once Tendermint integrated
2018-02-19 15:21:05 +01:00
Troy McConaghy
5af6c7b7a3
Merge pull request #2069 from bigchaindb/remove-all-statuses-endpoints-for-realz
Remove all code for all /statuses endpoints
2018-02-19 12:31:37 +01:00