Skip to content

Commit

Permalink
Docs update for revisited configuration policy syntax (#254)
Browse files Browse the repository at this point in the history
* Docs update for new policy syntax

* Don't hardcode values in documentation
  • Loading branch information
danielelisi authored Oct 28, 2022
1 parent f07f140 commit dae3146
Show file tree
Hide file tree
Showing 9 changed files with 305 additions and 291 deletions.
215 changes: 0 additions & 215 deletions docs/README.md

This file was deleted.

13 changes: 7 additions & 6 deletions docs/aws_kms.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ Search for IAM and create a user with "Programmatic access" for Signatory to acc

Below are the minimum configuration required.

```sh
awskms:
```yaml
vaults:
aws:
driver: awskms
config:
user_name: sigy-tsty
access_key_id: AKIATXBC6RIH4YZT5U6B
secret_access_key: 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
region: us-west-2
user_name: <iam_username>
access_key_id: <aws_access_key_id>
secret_access_key: <aws_secret_access_key>
region: <aws_region>
```
### Configuration parameters
Expand Down
21 changes: 12 additions & 9 deletions docs/azure_kms.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ Allowed Kinds: [endorsement transaction]
**Update signatory.yaml config with PKH:**

```yaml
server:
address: :6732
utility_address: :9583
vaults:
azure:
driver: azure
Expand All @@ -304,12 +308,11 @@ vaults:
tezos:
tz3d6nYmR1LmSDsgJ463Kgd8EbH53pYnuv8S:
log_payloads: true
allowed_operations:
# List of [generic, block, endorsement]
- generic
- block
- endorsement
allowed_kinds:
# List of [endorsement, ballot, reveal, transaction, origination, delegation, seed_nonce_revelation, activate_account]
- transaction
- endorsement
allow:
block:
endorsement:
preendorsement:
generic:
- transaction
- reveal
- delegation
22 changes: 9 additions & 13 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,15 @@ vaults:
tezos:
tz2***:
log_payloads: true
allowed_operations:
# List of [generic, block, endorsement]
- generic
- block
- endorsement
allowed_kinds:
# List of [endorsement, ballot, reveal, transaction, origination, delegation, seed_nonce_revelation, activate_account]
- transaction
- endorsement
allow:
block:
endorsement:
preendorsement:
generic:
- transaction
tz3***:
log_payloads: true
allowed_operations:
- generic
allowed_kinds:
- transaction
allow:
generic:
- transaction
```
33 changes: 12 additions & 21 deletions docs/gcp_kms.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,37 +77,28 @@ Status: FOUND_NOT_CONFIGURED

**Update signatory.yaml config with PKH:**

```sh
signatory % cat /etc/s.yaml
```yaml
server:
# Address/Port that Signatory listens on
address: :6732
# Address/Port that Signatory serves prometheus metrics on
utility_address: :9583

vaults:
kms:
gcp:
driver: cloudkms
config:
project: signatory-testing
location: europe-south1
key_ring: sigy-key
project: <gcp_project>
location: <gcp_region>
key_ring: <key_ring_name>
application_credentials: <credentials_file_path>
tezos:
# Default policy allows "block" and "endorsement" operations
tz3fK7rVYSg2HTEAmUYdfjJWSDGfsKrxH3xQ:
# Setting `log_payloads` to `true` will cause Signatory to log operation
# payloads to `stdout`. This may be desirable for audit and investigative
# purposes.
log_payloads: true
allowed_operations:
# List of [generic, block, endorsement]
- generic
- block
- endorsement
allowed_kinds:
# List of [endorsement, ballot, reveal, transaction, origination, delegation, seed_nonce_revelation, activate_account]
- transaction
- endorsement
allow:
block:
endorsement:
preendorsement:
generic:
- transaction
```
## **Key Import:**
Expand Down
1 change: 0 additions & 1 deletion docs/ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Examples (equivalent): `bip32-ed25519/m/44'/1729'/0'/0'`,

```yaml
vaults:
# Name of vault
ledger:
driver: ledger
config:
Expand Down
Loading

0 comments on commit dae3146

Please sign in to comment.