Compare commits
2 commits
28ee268329
...
0ea238f22d
Author | SHA1 | Date | |
---|---|---|---|
0ea238f22d | |||
af5d544ca4 |
3 changed files with 42 additions and 14 deletions
31
.forgejo/workflows/test.yaml
Normal file
31
.forgejo/workflows/test.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Go
|
||||||
|
run: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.22.3'
|
||||||
|
- name: Output File
|
||||||
|
run: |
|
||||||
|
echo "
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: dnsimple-api-token
|
||||||
|
namespace: basic-present-record
|
||||||
|
stringData:
|
||||||
|
api-token: $API_TOKEN" > testdata/dnsimple/dnsimple-secret.yaml
|
||||||
|
env:
|
||||||
|
API_TOKEN: ${{ secrets.API_TOKEN }}
|
||||||
|
- name: Test
|
||||||
|
run: make test TEST_ZONE_NAME={{ secrets.TEST_ZONE_NAME }}
|
||||||
|
- name: Clean up
|
||||||
|
run: rm -f testdata/dnsimple/dnsimple-secret.yaml
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: testdata/dnsimple/.*\.sops\.ya?ml
|
- path_regex: testdata/.*\.sops\.ya?ml
|
||||||
encrypted_regex: "^(data|stringData)$"
|
encrypted_regex: "^(data|stringData)$"
|
||||||
# Cert-Manager-Test
|
# Cert-Manager-Test
|
||||||
age: >-
|
age: >-
|
||||||
age10z089ltez8yuerju86k6aqd9vrmecm5gyn6gxmj68em0ztnyj46sd9840z
|
age18kj3xhlvgjeg2awwku3r8d95w360uysu0w5ejghnp4kh8qmtge5qwa2vjp
|
||||||
|
|
21
testdata/dnsimple-secret.sops.yaml
vendored
21
testdata/dnsimple-secret.sops.yaml
vendored
|
@ -4,27 +4,24 @@ metadata:
|
||||||
name: dnsimple-api-token
|
name: dnsimple-api-token
|
||||||
namespace: basic-present-record
|
namespace: basic-present-record
|
||||||
stringData:
|
stringData:
|
||||||
#ENC[AES256_GCM,data:s6XpXBkiPEb3n+pqCz7bSJQ=,iv:TlPSJXxh/At1vaDJKdXGSImv8/UqUSPauSfh7z4Z8uU=,tag:bW+URfs7HbgPmVlp4Z+/fw==,type:comment]
|
api-token: ENC[AES256_GCM,data:f1s9tQVLIZIYD4pgA1RLUh54oG2ffFF9LUcrUT0GGrmMKUEQuMX3YJJesQ==,iv:3i4Y//FvBNTspXhh//wsXvwca7P+YammbDy8VlCtDVM=,tag:m2+PojxxkJuUTY9ojW6IKg==,type:str]
|
||||||
#ENC[AES256_GCM,data:J/fjzPD0Rj84GdxOvTopvaEeDLquugLVCezxjiMHhJA5W3k/KbCcycJNOJaj6BKf3L8jJTMAMc6NDMr5Ng==,iv:5bPxLXiDuOlSSPOdztgwedtvxv0odq0+kTODjWPFyX8=,tag:o7EnpU4tHBxy1HaHBAl5bg==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:OJnwJTuX2olquBix8IY=,iv:TVGNA76LYAPDcZtkkiKIWIEZ+6w4ga4MGhqyTOO8Tuk=,tag:DoCsETByFWw2P4yqcfKLow==,type:comment]
|
|
||||||
api-token: ENC[AES256_GCM,data:akxH4nXY3l8UJ90VW0Pk0sfAYeEO+34WJ+y/KaR6lI+Ny93ksfhh5YvDzA==,iv:+30VKChTo3HHedN0Ltf395J3p4JaoPzWYbyRXzmv0Ek=,tag:8KLJYev9BKWLwu0cAkZq6Q==,type:str]
|
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
azure_kv: []
|
azure_kv: []
|
||||||
hc_vault: []
|
hc_vault: []
|
||||||
age:
|
age:
|
||||||
- recipient: age10z089ltez8yuerju86k6aqd9vrmecm5gyn6gxmj68em0ztnyj46sd9840z
|
- recipient: age18kj3xhlvgjeg2awwku3r8d95w360uysu0w5ejghnp4kh8qmtge5qwa2vjp
|
||||||
enc: |
|
enc: |
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBHbWc1anVLelZKa3FKTXVW
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSByZWRHNlBRUGdaT2RLL0t6
|
||||||
eDQ1WGpzZkVFK1FMaGk1MmhPclE3d0h6bkRnCmF4U0dnandmdTRuN085WUpKQTFZ
|
MFhXZDQrOThqZC96S2VUeDlhUXdreldLQ2hBCmVtOVdSMFBCamZnUGdUMjQ4K0Nk
|
||||||
NHorRW1mVXhtUStUaWh1QTFKZlRaZG8KLS0tIHVmZkg5SnMrWVRCRlRlaTU3bDd2
|
MjB1ZytGT1NzRHlGdm9rOElYT2NBblUKLS0tIDdjQm9zbHZPaGtOUGowckVNdkN1
|
||||||
d1pyanBkYWk4Q25UL1JwWFlTRTZlWkUKDwfj4bVfu6OSJGP9GePhTQZ5HzjG+0It
|
Q01EdjhPaWcrZWg1QW5OYnVEMGRMcTgK8Pbn8JLKKfIJgFyOvfTkSlHWd4+g8b3r
|
||||||
ndxQHaRurb28g63JK0KVKlIOzxrZqijlmAaCtdK25WXEV77vS9rqWg==
|
nEzKfF77Cjne1ppAr4MPdBZO7xIXq0BE3iOhdp5T+uCOGxAyqkadow==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-04-02T18:25:19Z"
|
lastmodified: "2024-05-15T15:49:24Z"
|
||||||
mac: ENC[AES256_GCM,data:GHUNQNN7811QEJ94IPRTopWLxJJMtMx3SQ5bGwMf5AWv6Xd5t7hqgsnzobGWHQv36iWfs2HkhH8muzm0XRHWnMIe1a6gvW2ZfkiEaoldKMYzX2/KjZ9YYsg7RzTAiat/rJlp4iaPJAmP4r6RqqWXe5QMJRorAFSAqhQAYr/oB+g=,iv:AkKILisDDsQZCOTg7hwUDnSOq60sgOOoR4exWUBR8rU=,tag:qomsH2u4ZSeCO5iHa/7Bqg==,type:str]
|
mac: ENC[AES256_GCM,data:cE7z9aAHzx3n1UJU0ZgSIw7Rzp20W/V9WNnZxRmswX4i0WPq58IX1Sg24745V/xh/KrCTQdlQWEBpxlHQ6O/jtK78n+XvNo6JFFZ51FXxjQRWPQPw7HMU5ULOJw90Y8hpZ6mSjMa593ZtLzTumlKt/LcFcMt/XKq2vL0zYuswpM=,iv:XKLHE4xEAHcv4jZPXOC4c6iOOIlKcCTfFgfdorW3nFA=,tag:Qp6eRqHnzWIPWVR8YMD6ng==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
version: 3.8.1
|
version: 3.8.1
|
||||||
|
|
Loading…
Reference in a new issue