Merge pull request 'benvin/pre-commit' (#25) from benvin/pre-commit into master
Reviewed-on: #25
This commit is contained in:
commit
c3c1cb660a
12
.pre-commit-config.yaml
Normal file
12
.pre-commit-config.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/gruntwork-io/pre-commit
|
||||||
|
rev: v0.1.30
|
||||||
|
hooks:
|
||||||
|
- id: terraform-fmt
|
||||||
|
- id: terraform-validate
|
||||||
|
- id: tflint
|
||||||
|
- id: terragrunt-hcl-fmt
|
||||||
|
- repo: https://github.com/adrienverge/yamllint.git
|
||||||
|
rev: v1.37.1
|
||||||
|
hooks:
|
||||||
|
- id: yamllint
|
||||||
@ -5,10 +5,10 @@ path "auth/token/lookup-self" {
|
|||||||
|
|
||||||
# Allow tokens to renew themselves
|
# Allow tokens to renew themselves
|
||||||
path "auth/token/renew-self" {
|
path "auth/token/renew-self" {
|
||||||
capabilities = ["update"]
|
capabilities = ["update"]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Allow tokens to revoke themselves
|
# Allow tokens to revoke themselves
|
||||||
path "auth/token/revoke-self" {
|
path "auth/token/revoke-self" {
|
||||||
capabilities = ["update"]
|
capabilities = ["update"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
path "kv/data/service/glauth/services/svc_vault" {
|
path "kv/data/service/glauth/services/svc_vault" {
|
||||||
capabilities = ["list", "read"]
|
capabilities = ["list", "read"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
path "kv/data/service/packer/builder/env" {
|
path "kv/data/service/packer/builder/env" {
|
||||||
capabilities = ["read"]
|
capabilities = ["read"]
|
||||||
}
|
}
|
||||||
path "kv/data/service/packer/builder/docker-incus-client" {
|
path "kv/data/service/packer/builder/docker-incus-client" {
|
||||||
capabilities = ["read"]
|
capabilities = ["read"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
path "kv/data/service/puppet/certificates/terraform" {
|
path "kv/data/service/puppet/certificates/terraform" {
|
||||||
capabilities = ["read"]
|
capabilities = ["read"]
|
||||||
}
|
}
|
||||||
path "kv/data/service/puppet/certificates/ca" {
|
path "kv/data/service/puppet/certificates/ca" {
|
||||||
capabilities = ["read"]
|
capabilities = ["read"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
path "kv/data/service/puppetapi/tokens" {
|
path "kv/data/service/puppetapi/tokens" {
|
||||||
capabilities = ["read"]
|
capabilities = ["read"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
path "kv/data/service/terraform/incus" {
|
path "kv/data/service/terraform/incus" {
|
||||||
capabilities = ["read"]
|
capabilities = ["read"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
path "kv/data/service/terraform/nomad" {
|
path "kv/data/service/terraform/nomad" {
|
||||||
capabilities = ["read"]
|
capabilities = ["read"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
path "ssh-host-signer/sign/hostrole" {
|
path "ssh-host-signer/sign/hostrole" {
|
||||||
capabilities = ["create", "update"]
|
capabilities = ["create", "update"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
path "ssh-host-signer/sign/hostrole" {
|
path "ssh-host-signer/sign/hostrole" {
|
||||||
capabilities = ["create", "update"]
|
capabilities = ["create", "update"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
path "sshca/sign/host" {
|
path "sshca/sign/host" {
|
||||||
capabilities = ["create", "update"]
|
capabilities = ["create", "update"]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user