Skip to content

Commit

Permalink
Update config to use sms instead of ekss
Browse files Browse the repository at this point in the history
  • Loading branch information
TheByronHimes committed Oct 28, 2024
1 parent 2588e66 commit 20d6b26
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/.dev_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ token_hashes:
- 7ad83b6b9183c91674eec897935bc154ba9ff9704f8be0840e77f476b5062b6e
vault_token: "dev-token"
vault_url: "http://vault:8200"
vault_path: "ekss"
vault_path: sms
db_connection_str: mongodb://mongodb:27017
db_prefix: "test_"
db_permissions:
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ The service requires the following configuration parameters:

Examples:

```json
"sms"
```


```json
"ekss"
```
Expand Down
1 change: 1 addition & 0 deletions config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
"vault_path": {
"description": "Path for the Vault",
"examples": [
"sms",
"ekss"
],
"title": "Vault Path",
Expand Down
2 changes: 1 addition & 1 deletion example_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ service_instance_id: '1'
service_name: sms
token_hashes:
- 7ad83b6b9183c91674eec897935bc154ba9ff9704f8be0840e77f476b5062b6e
vault_path: ekss
vault_path: sms
vault_token: dev-token
vault_url: http://vault:8200
workers: 1
3 changes: 2 additions & 1 deletion src/sms/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
from hexkit.log import LoggingConfig
from hexkit.providers.akafka import KafkaConfig
from pydantic import Field, SecretStr, field_validator, model_validator
from tests.fixtures.vault import VaultConfig

from sms.core.secrets_handler import VaultConfig

SERVICE_NAME: str = "sms"

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/test_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ token_hashes:
- 7ad83b6b9183c91674eec897935bc154ba9ff9704f8be0840e77f476b5062b6e
vault_token: "dev-token"
vault_url: "http://vault:8200"
vault_path: "ekss"
vault_path: sms
db_connection_str: mongodb://mongodb:27017
db_prefix: "test_"
db_permissions:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def vault_container_fixture() -> Generator[VaultContainerFixture, None, None]:
port = vault_container.get_exposed_port(DEFAULT_PORT)
vault_container.config = VaultConfig(
vault_url=f"http://{host}:{port}",
vault_path="ekss",
vault_path="sms",
vault_token=DEFAULT_TOKEN,
)

Expand Down

0 comments on commit 20d6b26

Please sign in to comment.