Skip to content

Commit e05e0e4

Browse files
fix: artefacts uploading (#33)
* fix: artefacts uploading * feat: changes package to DevLabFoundry * fix: fixes checks write
1 parent f217ff8 commit e05e0e4

39 files changed

+141
-138
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ master, main ]
88

9+
permissions:
10+
checks: write
11+
912
jobs:
1013
set-version:
1114
runs-on: ubuntu-latest

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Config Manager
22

3-
[![Go Reference](https://pkg.go.dev/badge/github.com/dnitsch/configmanager.svg)](https://pkg.go.dev/github.com/dnitsch/configmanager)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/dnitsch/configmanager)](https://goreportcard.com/report/github.com/dnitsch/configmanager)
3+
[![Go Reference](https://pkg.go.dev/badge/github.com/DevLabFoundry/configmanager.svg)](https://pkg.go.dev/github.com/DevLabFoundry/configmanager)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/DevLabFoundry/configmanager)](https://goreportcard.com/report/github.com/DevLabFoundry/configmanager)
55
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_configmanager&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dnitsch_configmanager)
66
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_configmanager&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=dnitsch_configmanager)
77
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_configmanager&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=dnitsch_configmanager)
@@ -11,7 +11,7 @@
1111
Package used for retrieving application settings from various sources.
1212

1313
Currently supported variable and secrets implementations:
14-
<!--
14+
<!--
1515
"AWSSECRETS"
1616
// AWS Parameter Store prefix
1717
ParamStorePrefix ImplementationPrefix = "AWSPARAMSTR"
@@ -43,7 +43,7 @@ Currently supported variable and secrets implementations:
4343

4444
The main driver is to use component level configuration objects, if stored in a `"namespaced"` manner e.g. in AWS ParamStore as `/nonprod/component-service-a/configVar`, however this is not a requirement and the param name can be whatever. Though whilst using some sort of a organised manner it will be more straight forward to allow other services to consume certain secrets/params based on resource/access policies.
4545

46-
> Beware size limitation with certain config/vault implementations. In which case it's best to split certain items up e.g. TLS certs `/nonprod/component-service-a/pub-cert`, `/nonprod/component-service-a/private-cert`, `/nonprod/component-service-a/chain1-cert`, etc...
46+
> Beware size limitation with certain config/vault implementations. In which case it's best to split certain items up e.g. TLS certs `/nonprod/component-service-a/pub-cert`, `/nonprod/component-service-a/private-cert`, `/nonprod/component-service-a/chain1-cert`, etc...
4747
4848
Where `configVar` can be either a parseable string `'som3#!S$CRet'` or a number `3306` or a parseable single level JSON object like `{host: ..., pass: ...., port: ...}` which can be returned whole or accessed via a key separator for a specific value.
4949

@@ -92,7 +92,7 @@ _An example token would look like this_
9292

9393
The `AWSSECRETS` the strategy identifier to choose the correct provider at runtime. Multiple providers can be referenced in a single run via a CLI or with the API.
9494

95-
This is not overrideable and must be exactly as it is in the provided list of providers.
95+
This is not overrideable and must be exactly as it is in the provided list of providers.
9696

9797
### __Token Separator__
9898

@@ -106,7 +106,7 @@ cnf := generator.NewConfig().WithTokenSeparator("://")
106106

107107
### __Provider Secret/Config Path__
108108

109-
The `/path/to/my/key` part from the [example token](#awssecretspathtomykeylookupinsideobjectmetadata) is the actual path to the item in the backing store.
109+
The `/path/to/my/key` part from the [example token](#awssecretspathtomykeylookupinsideobjectmetadata) is the actual path to the item in the backing store.
110110

111111
See the different special considerations per provider as it different providers will require different implementations.
112112

@@ -116,7 +116,7 @@ __THIS IS OPTIONAL__
116116

117117
The `|` symbol from the [example token](#awssecretspathtomykeylookupinsideobjectmetadata) is used to specify the key seperator.
118118

119-
If an item retrieved from a store is JSON parseable map it can be interrogated for further properties inside.
119+
If an item retrieved from a store is JSON parseable map it can be interrogated for further properties inside.
120120

121121
### __Look up key__
122122

@@ -154,7 +154,7 @@ See [examples of working with files](docs/examples.md#working-with-files) for mo
154154

155155
### Token Metadata Config
156156

157-
The `[meta=data]` from the [example token](#awssecretspathtomykeylookupinsideobjectmetadata) - is the optional metadata about the target in the backing provider
157+
The `[meta=data]` from the [example token](#awssecretspathtomykeylookupinsideobjectmetadata) - is the optional metadata about the target in the backing provider
158158

159159
IT must have this format `[key=value]` - IT IS OPTIONAL
160160

@@ -199,7 +199,7 @@ The token itself must contain all of the following properties, so that it would
199199

200200
- Storage account name [`STORAGE_ACCOUNT_NAME`]
201201
- Table Name [`TABLE_NAME`]
202-
- > It might make sense to make this table global to the domain or project
202+
- > It might make sense to make this table global to the domain or project
203203
- Partition Key [`PARTITION_KEY`]
204204
- > This could correspond to the component/service name
205205
- Row Key [`ROW_KEY`]
@@ -230,7 +230,7 @@ when using Vault in AWS - you can set the value of the `VAULT_TOKEN=aws_iam` thi
230230

231231
The Hashicorp Vault functions in the same exact way as the other implementations. It will retrieve the JSON object and can be looked up within it by using a key separator.
232232

233-
## [Go API](https://pkg.go.dev/github.com/dnitsch/configmanager)
233+
## [Go API](https://pkg.go.dev/github.com/DevLabFoundry/configmanager)
234234

235235
## [Examples](docs/examples.md)
236236

cmd/configmanager/configmanager.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"fmt"
66
"io"
77

8-
"github.com/dnitsch/configmanager"
9-
"github.com/dnitsch/configmanager/internal/cmdutils"
10-
"github.com/dnitsch/configmanager/internal/config"
11-
"github.com/dnitsch/configmanager/pkg/generator"
12-
"github.com/dnitsch/configmanager/pkg/log"
8+
"github.com/DevLabFoundry/configmanager"
9+
"github.com/DevLabFoundry/configmanager/internal/cmdutils"
10+
"github.com/DevLabFoundry/configmanager/internal/config"
11+
"github.com/DevLabFoundry/configmanager/pkg/generator"
12+
"github.com/DevLabFoundry/configmanager/pkg/log"
1313
"github.com/spf13/cobra"
1414
)
1515

cmd/configmanager/configmanager_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"strings"
99
"testing"
1010

11-
cmd "github.com/dnitsch/configmanager/cmd/configmanager"
12-
"github.com/dnitsch/configmanager/pkg/log"
11+
cmd "github.com/DevLabFoundry/configmanager/cmd/configmanager"
12+
"github.com/DevLabFoundry/configmanager/pkg/log"
1313
)
1414

1515
type cmdTestInput struct {

cmd/configmanager/fromfileinput.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cmd
33
import (
44
"fmt"
55

6-
"github.com/dnitsch/configmanager/internal/cmdutils"
6+
"github.com/DevLabFoundry/configmanager/internal/cmdutils"
77
"github.com/spf13/cobra"
88
)
99

@@ -42,13 +42,13 @@ func newFromStrCmd(rootCmd *Root) {
4242
},
4343
}
4444

45-
fromstrCmd.PersistentFlags().StringVarP(&f.input, "input", "i", "", `Path to file which contents will be read in or the contents of a string
46-
inside a variable to be searched for tokens.
47-
If value is a valid path it will open it if not it will accept the string as an input.
45+
fromstrCmd.PersistentFlags().StringVarP(&f.input, "input", "i", "", `Path to file which contents will be read in or the contents of a string
46+
inside a variable to be searched for tokens.
47+
If value is a valid path it will open it if not it will accept the string as an input.
4848
e.g. -i /some/file or -i $"(cat /som/file)", are both valid input values`)
4949
fromstrCmd.MarkPersistentFlagRequired("input")
50-
fromstrCmd.PersistentFlags().StringVarP(&f.path, "path", "p", "./app.env", `Path where to write out the
51-
replaced a config/secret variables. Special value of stdout can be used to return the output to stdout e.g. -p stdout,
50+
fromstrCmd.PersistentFlags().StringVarP(&f.path, "path", "p", "./app.env", `Path where to write out the
51+
replaced a config/secret variables. Special value of stdout can be used to return the output to stdout e.g. -p stdout,
5252
unix style output only`)
5353
rootCmd.Cmd.AddCommand(fromstrCmd)
5454
}

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"os"
66

7-
cfgmgr "github.com/dnitsch/configmanager/cmd/configmanager"
8-
"github.com/dnitsch/configmanager/pkg/log"
7+
cfgmgr "github.com/DevLabFoundry/configmanager/cmd/configmanager"
8+
"github.com/DevLabFoundry/configmanager/pkg/log"
99
)
1010

1111
func main() {

configmanager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"slices"
99
"strings"
1010

11-
"github.com/dnitsch/configmanager/internal/config"
12-
"github.com/dnitsch/configmanager/pkg/generator"
11+
"github.com/DevLabFoundry/configmanager/internal/config"
12+
"github.com/DevLabFoundry/configmanager/pkg/generator"
1313
"gopkg.in/yaml.v3"
1414
)
1515

configmanager_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"sort"
88
"testing"
99

10-
"github.com/dnitsch/configmanager"
11-
"github.com/dnitsch/configmanager/internal/config"
12-
"github.com/dnitsch/configmanager/internal/testutils"
13-
"github.com/dnitsch/configmanager/pkg/generator"
10+
"github.com/DevLabFoundry/configmanager"
11+
"github.com/DevLabFoundry/configmanager/internal/config"
12+
"github.com/DevLabFoundry/configmanager/internal/testutils"
13+
"github.com/DevLabFoundry/configmanager/pkg/generator"
1414
"github.com/go-test/deep"
1515
)
1616

@@ -94,13 +94,13 @@ space: preserved
9494
input: `
9595
// TOML
9696
[[somestuff]]
97-
key = "FOO#/test"
97+
key = "FOO#/test"
9898
`,
9999
genvar: &mockGenerator{},
100100
expect: `
101101
// TOML
102102
[[somestuff]]
103-
key = "val1"
103+
key = "val1"
104104
`,
105105
},
106106
"strTomlWithoutQuotes": {
@@ -301,7 +301,7 @@ func Test_YamlRetrieveUnmarshalled(t *testing.T) {
301301
"happy path complex struct complete": {
302302
input: []byte(`foo: AWSSECRETS:///bar/foo
303303
bar: quz
304-
lol:
304+
lol:
305305
bla: booo
306306
another:
307307
number: 1235
@@ -424,18 +424,18 @@ func TestFindTokens(t *testing.T) {
424424
}{
425425
"extract from text correctly": {
426426
`Where does it come from?
427-
Contrary to popular belief,
427+
Contrary to popular belief,
428428
Lorem Ipsum is AWSPARAMSTR:///djsfsdkjvfjkhfdvibdfinjdsfnjvdsflj <= in middle of sentencenot simply random text.
429-
It has roots in a piece of classical Latin literature from 45
429+
It has roots in a piece of classical Latin literature from 45
430430
BC, making it over 2000 years old. Richard McClintock, a Latin professor at
431431
Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, c
432432
onsectetur, from a Lorem Ipsum passage , at the end of line => AWSPARAMSTR:///djsfsdkjvfjkhfdvibdfinjdsfnjvdsflj
433433
and going through the cites of the word in c
434434
lassical literature, discovered the undoubtable source. Lorem Ipsum comes from secti
435435
ons in singles =>'AWSPARAMSTR:///djsfsdkjvfjkhfdvibdfinjdsfnjvdsflj'1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil)
436436
in doubles => "AWSPARAMSTR:///djsfsdkjvfjkhfdvibdfinjdsfnjvdsflj"
437-
by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular
438-
during the :=> embedded in text RenaissanceAWSPARAMSTR:///djsfsdkjvfjkhfdvibdfinjdsfnjvdsflj[] embedded in text <=:
437+
by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular
438+
during the :=> embedded in text RenaissanceAWSPARAMSTR:///djsfsdkjvfjkhfdvibdfinjdsfnjvdsflj[] embedded in text <=:
439439
The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.`,
440440
[]string{
441441
"AWSPARAMSTR:///djsfsdkjvfjkhfdvibdfinjdsfnjvdsflj",

docs/examples.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Examples
1+
# Examples
22

3-
<!--
3+
<!--
44
```go
55
rawStr := `somePAss: AWSPARAMSTR:///int-test/pocketbase/admin-pwd`
66
cm := configmanager.ConfigManager{}
@@ -84,8 +84,8 @@ import (
8484
"context"
8585
"fmt"
8686
87-
"github.com/dnitsch/configmanager/pkg/generator"
88-
"github.com/dnitsch/configmanager"
87+
"github.com/DevLabFoundry/configmanager/pkg/generator"
88+
"github.com/DevLabFoundry/configmanager"
8989
)
9090
9191
func main() {
@@ -128,8 +128,8 @@ import (
128128
"log"
129129
"os"
130130
131-
"github.com/dnitsch/configmanager"
132-
"github.com/dnitsch/configmanager/pkg/generator"
131+
"github.com/DevLabFoundry/configmanager"
132+
"github.com/DevLabFoundry/configmanager/pkg/generator"
133133
)
134134
135135
var (
@@ -163,4 +163,4 @@ func credentialString(ctx context.Context, pwdToken, hostToken string) (string,
163163
164164
return "", fmt.Errorf("unable to find value via token")
165165
}
166-
```
166+
```

docs/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Installation
22

3-
Major platform binaries [here](https://github.com/dnitsch/configmanager/releases)
3+
Major platform binaries [here](https://github.com/DevLabFoundry/configmanager/releases)
44

55
*nix binary
66

77
```bash
8-
curl -L https://github.com/dnitsch/configmanager/releases/latest/download/configmanager-linux -o configmanager
8+
curl -L https://github.com/DevLabFoundry/configmanager/releases/latest/download/configmanager-linux -o configmanager
99
```
1010

1111
MacOS binary
1212

1313
```bash
14-
curl -L https://github.com/dnitsch/configmanager/releases/latest/download/configmanager-darwin -o configmanager
14+
curl -L https://github.com/DevLabFoundry/configmanager/releases/latest/download/configmanager-darwin -o configmanager
1515
```
1616

1717
```bash
@@ -22,5 +22,5 @@ sudo mv configmanager /usr/local/bin
2222
Download specific version:
2323

2424
```bash
25-
curl -L https://github.com/dnitsch/configmanager/releases/download/v0.5.0/configmanager-`uname -s` -o configmanager
25+
curl -L https://github.com/DevLabFoundry/configmanager/releases/download/v0.5.0/configmanager-`uname -s` -o configmanager
2626
```

0 commit comments

Comments
 (0)