Skip to content

Commit

Permalink
refactor: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Sopena Ballesteros committed Jul 3, 2024
1 parent 43296c4 commit c8befc5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
9 changes: 9 additions & 0 deletions docs/audit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Audit

Manta can log user's operations in `/var/log/manta/` (Linux) or `${PWD}` (MacOS), please make sure this folder exists and the current user has `rwx` access to it

```bash
mkdir /var/log/manta
chmod 777 -R /var/log/manta
```

14 changes: 5 additions & 9 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

## Configuration

Manta follows the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) ([folder mapping per OS](https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c#correlations)) to find files. The configuration file needs to be under `$XDG_CONFIG_HOME/manta/` folder.
By default, Manta follows the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) ([folder mapping per OS](https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c#correlations)) to find files. The configuration file needs to be under `$XDG_CONFIG_HOME/manta/` folder.

Manta configuration file can be found under one of the following locations:
By default, Manta configuration file can be found under one of the following locations:

> - Linux: $HOME/.config/manta/config.toml
> - MacOS: $HOME/Library/Application Support/manta/config.toml
```bash
mkdir -p ~/.config/manta
mkdir -p /home/msopena/.config/manta

cat >> ~/.config/manta/config.toml <<EOF
log = "info"
Expand All @@ -32,17 +32,13 @@ root_ca_cert_file = "alps_root_cert.pem"
EOF
```

Manta can log user's operations in `/var/log/manta/` (Linux) or `${PWD}` (MacOS), please make sure this folder exists and the current user has `rwx` access to it

```bash
mkdir /var/log/manta
chmod 777 -R /var/log/manta
```
Alternatively, an environment variable could be used to tell Manta where to find the configuration file `MANTA_CONFIG=/home/msopena/my_config.toml manta config show`

## Legend:

| Name | mandatory | Type | Description | Example |
| ----------------------------------- | ----------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| MANTA_CONFIG | no | env | path to manta configuration file. If missing, then `$XDG_CONFIG/manta/confog.toml` will be used | $HOME/my_confog.toml |
| MANTA_CSM_TOKEN | no | env | CSM authentication token, if this env var is missing, then manta will prompt use for credentials against CSM keycloak | |
| log | no | config file | log details/verbosity | off/error/warn/info/debug/trace |
| hsm_group | no | config | If exists, then it will filter/restrict the hsm groups and/or xnames targeted by the cli command | psi-dev |
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ nav:
- Basic Operations: basic_operations.md
- Cluster mgmt with SAT file: cluster_mgmt_with_sat_file.md
- Cluster migration: cluster_migration.md
- Audit: audit.md
- Security: security.md
- FAQ: faq.md

Expand Down

0 comments on commit c8befc5

Please sign in to comment.