Skip to content

Commit c74fcd5

Browse files
committed
ca-component -> certificates
* fix redundant error check * add README
1 parent d3d1db3 commit c74fcd5

18 files changed

+61
-71
lines changed

Gopkg.lock

+37-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ required = [
3030
"github.com/client9/misspell/cmd/misspell",
3131
"github.com/gordonklaus/ineffassign",
3232
"github.com/tsenart/deadcode",
33-
"github.com/smallstep/go-makefile"
3433
]
3534

3635
[[constraint]]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PKG?=github.com/smallstep/ca-component/cmd/step-ca
1+
PKG?=github.com/smallstep/certificates/cmd/step-ca
22
BINNAME?=step-ca
33

44
# Set V to 1 for verbose output from the Makefile

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## SHHHH, THIS PROJECT HASN'T OFFICIALLY LAUNCHED YET AND THIS REPO IS SUPER SECRET!!!

api/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"github.com/go-chi/chi"
1414
"github.com/pkg/errors"
15-
"github.com/smallstep/ca-component/authority"
15+
"github.com/smallstep/certificates/authority"
1616
"github.com/smallstep/cli/crypto/tlsutil"
1717
)
1818

api/api_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"time"
1818

1919
"github.com/go-chi/chi"
20-
"github.com/smallstep/ca-component/authority"
20+
"github.com/smallstep/certificates/authority"
2121
"github.com/smallstep/cli/crypto/tlsutil"
2222
"github.com/smallstep/cli/jose"
2323
)

api/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"os"
88

99
"github.com/pkg/errors"
10-
"github.com/smallstep/ca-component/logging"
10+
"github.com/smallstep/certificates/logging"
1111
)
1212

1313
// StatusCoder interface is used by errors that returns the HTTP response code.

api/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http"
88

99
"github.com/pkg/errors"
10-
"github.com/smallstep/ca-component/logging"
10+
"github.com/smallstep/certificates/logging"
1111
)
1212

1313
// LogError adds to the response writer the given error if it implements

api/utils_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010

1111
"github.com/pkg/errors"
12-
"github.com/smallstep/ca-component/logging"
12+
"github.com/smallstep/certificates/logging"
1313
)
1414

1515
func TestLogError(t *testing.T) {

authority/config.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,5 @@ func (c *Config) Validate() error {
173173
c.TLS.Renegotiation = c.TLS.Renegotiation || DefaultTLSOptions.Renegotiation
174174
}
175175

176-
if err := c.AuthorityConfig.Validate(); err != nil {
177-
return err
178-
}
179-
180-
return nil
176+
return c.AuthorityConfig.Validate()
181177
}

ca/ca.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77

88
"github.com/go-chi/chi"
99
"github.com/pkg/errors"
10-
"github.com/smallstep/ca-component/api"
11-
"github.com/smallstep/ca-component/authority"
12-
"github.com/smallstep/ca-component/logging"
13-
"github.com/smallstep/ca-component/monitoring"
14-
"github.com/smallstep/ca-component/server"
10+
"github.com/smallstep/certificates/api"
11+
"github.com/smallstep/certificates/authority"
12+
"github.com/smallstep/certificates/logging"
13+
"github.com/smallstep/certificates/monitoring"
14+
"github.com/smallstep/certificates/server"
1515
)
1616

1717
type options struct {

ca/ca_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818

1919
"github.com/pkg/errors"
2020
"github.com/smallstep/assert"
21-
"github.com/smallstep/ca-component/api"
22-
"github.com/smallstep/ca-component/authority"
21+
"github.com/smallstep/certificates/api"
22+
"github.com/smallstep/certificates/authority"
2323
"github.com/smallstep/cli/crypto/keys"
2424
"github.com/smallstep/cli/crypto/pemutil"
2525
"github.com/smallstep/cli/crypto/randutil"

ca/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strings"
2323

2424
"github.com/pkg/errors"
25-
"github.com/smallstep/ca-component/api"
25+
"github.com/smallstep/certificates/api"
2626
"golang.org/x/net/http2"
2727
"gopkg.in/square/go-jose.v2/jwt"
2828
)

ca/client_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"testing"
1313
"time"
1414

15-
"github.com/smallstep/ca-component/api"
16-
"github.com/smallstep/ca-component/authority"
15+
"github.com/smallstep/certificates/api"
16+
"github.com/smallstep/certificates/authority"
1717
)
1818

1919
const (

ca/tls.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"time"
1414

1515
"github.com/pkg/errors"
16-
"github.com/smallstep/ca-component/api"
16+
"github.com/smallstep/certificates/api"
1717
"golang.org/x/net/http2"
1818
)
1919

ca/tls_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"testing"
1717
"time"
1818

19-
"github.com/smallstep/ca-component/api"
20-
"github.com/smallstep/ca-component/authority"
19+
"github.com/smallstep/certificates/api"
20+
"github.com/smallstep/certificates/authority"
2121
"github.com/smallstep/cli/crypto/randutil"
2222
stepJOSE "github.com/smallstep/cli/jose"
2323
"gopkg.in/square/go-jose.v2"

cmd/step-ca/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"unicode"
1212

1313
"github.com/pkg/errors"
14-
"github.com/smallstep/ca-component/authority"
15-
"github.com/smallstep/ca-component/ca"
14+
"github.com/smallstep/certificates/authority"
15+
"github.com/smallstep/certificates/ca"
1616
)
1717

1818
func usage() {

monitoring/monitoring.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
newrelic "github.com/newrelic/go-agent"
1111
"github.com/pkg/errors"
12-
"github.com/smallstep/ca-component/logging"
12+
"github.com/smallstep/certificates/logging"
1313
)
1414

1515
// Middleware is a function returns another http.Handler that wraps the given

0 commit comments

Comments
 (0)