Skip to content

Commit

Permalink
Merge pull request #3 from masterpointio/fix/readme_typos
Browse files Browse the repository at this point in the history
fix: readme typos
  • Loading branch information
gberenice authored Mar 6, 2024
2 parents 51186a2 + c1a770c commit 77c3070
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ name: Lint

on: pull_request

permissions: read-all
permissions:
actions: read
checks: write
contents: read
pull-requests: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Trunk Check
uses: trunk-io/trunk-action@v1.1.2
uses: trunk-io/trunk-action@65228585e2c6128315f0f2d5190e2eae7f5c32c6 # v1.1.10
3 changes: 2 additions & 1 deletion .trunk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
tools
tmp
24 changes: 12 additions & 12 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
version: 0.1
cli:
version: 1.13.0
version: 1.20.1
plugins:
sources:
- id: trunk
ref: v1.0.0
ref: v1.4.4
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- actionlint@1.6.25
- checkov@2.3.347
- actionlint@1.6.27
- checkov@3.2.31
- git-diff-check
- markdownlint@0.35.0
- prettier@3.0.0
- terrascan@1.18.2
- tflint@0.47.0
- tfsec@1.28.1
- trivy@0.43.1
- trufflehog@3.45.2
- yamllint@1.32.0
- markdownlint@0.39.0
- prettier@3.2.5
- terrascan@1.18.12
- tflint@0.50.3
- tfsec@1.28.5
- trivy@0.49.1
- trufflehog@3.68.4
- yamllint@1.35.1
ignore:
- linters: [markdownlint]
paths:
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# terraform-secrets-helper [![Latest Release](https://img.shields.io/github/release/masterpointio/terraform-secrets-helper.svg)](https://github.com/masterpointio/terraform-secrets-helper/releases/latest)

This Terraform module provides a standard and extensible way of managing secrets from different sources, making them accessible through local.secrets. It's designed with the aim of creating an abstract interface for dealing with secrets in Terraform, regardless of the source of these secrets.
This Terraform module provides a standard and extensible way of managing secrets from different sources, making them accessible through `local.secrets["<SECRET_NAME>"]`. It's designed to create an abstract interface for dealing with secrets in Terraform, regardless of the source of these secrets.

Our initial version is built to handle [SOPS secrets](https://github.com/getsops/sops), but it is designed in a way that it can be easily extended to support other secret providers like AWS SSM Parameter Store, Vault, and more in the future.

Expand All @@ -15,7 +15,7 @@ It's 100% Open Source and licensed under the [APACHE2](LICENSE).
Copy `exports/secrets.sops.tf` to your project by running the following command:

```sh
curl -sL https://raw.githubusercontent.com/masterpointio/terraform-secrets-helper/main/exports/exports/secrets.sops.tf -o exports/secrets.sops.tf
curl -sL https://raw.githubusercontent.com/masterpointio/terraform-secrets-helper/main/exports/secrets.sops.tf -o secrets.sops.tf
```

The mixin incorporates the invocation of this module, so you simply need to configure the required `secret_mapping` variable and then reference it within your code.
Expand All @@ -29,7 +29,6 @@ secret_mapping = [{
type = "sops"
}]
output "db_password" {
value = jsonencode(local.secrets["db_password"])
sensitive = true
Expand Down

0 comments on commit 77c3070

Please sign in to comment.