Repoint base62 import

This commit is contained in:
Jeff Mitchell committed 2021-07-14 17:31:58 -07:00
1 parent 5b7544c81f
commit 140c54e319
21 files changed
+56 -48

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import (
"github.com/hashicorp/boundary/internal/kms"
wrapping "github.com/hashicorp/go-kms-wrapping"
"github.com/hashicorp/go-kms-wrapping/structwrapping"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/mr-tron/base58"
"google.golang.org/protobuf/proto"
)
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/hashicorp/boundary/internal/kms"
"github.com/hashicorp/boundary/internal/target"
"github.com/hashicorp/boundary/internal/types/scope"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
)
func (b *Server) CreateInitialLoginRole(ctx context.Context) (*iam.Role, error) {
+1 -1
View File
@@ -26,7 +26,7 @@ import (
targetspb "github.com/hashicorp/boundary/internal/gen/controller/api/resources/targets"
"github.com/hashicorp/boundary/internal/proxy"
"github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/mitchellh/cli"
"github.com/mr-tron/base58"
"github.com/posener/complete"
+1 -1
View File
@@ -4,8 +4,8 @@ import (
"testing"
"github.com/hashicorp/boundary/internal/db/db_test"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/hashicorp/go-uuid"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/jinzhu/gorm"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -2,7 +2,7 @@
package db_test
import (
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"google.golang.org/protobuf/proto"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"strings"
"github.com/hashicorp/boundary/internal/errors"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"golang.org/x/crypto/blake2b"
)
+1 -1
View File
@@ -16,8 +16,8 @@ import (
"github.com/hashicorp/boundary/internal/oplog"
"github.com/hashicorp/boundary/internal/oplog/store"
wrapping "github.com/hashicorp/go-kms-wrapping"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/hashicorp/go-uuid"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/jinzhu/gorm"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -5,7 +5,7 @@ check(
length(trim(value)) > 10
);
comment on domain wt_public_id is
'Random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'Random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_private_id as text
not null
@@ -13,14 +13,14 @@ check(
length(trim(value)) > 10
);
comment on domain wt_private_id is
'Random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'Random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_scope_id as text
check(
length(trim(value)) > 10 or value = 'global'
);
comment on domain wt_scope_id is
'"global" or random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'"global" or random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_user_id as text
not null
@@ -28,7 +28,7 @@ check(
length(trim(value)) > 10 or value = 'u_anon' or value = 'u_auth' or value = 'u_recovery'
);
comment on domain wt_scope_id is
'"u_anon", "u_auth", or random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'"u_anon", "u_auth", or random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_role_id as text
not null
@@ -36,7 +36,7 @@ check(
length(trim(value)) > 10
);
comment on domain wt_scope_id is
'Random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'Random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_timestamp as
timestamp with time zone
@@ -6,7 +6,7 @@ begin;
length(trim(value)) > 10 or value = 'pi_system'
);
comment on domain wt_plugin_id is
'"pi_system", or random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'"pi_system", or random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create table plugin (
public_id wt_plugin_id primary key
+6 -6
View File
@@ -12,7 +12,7 @@ check(
length(trim(value)) > 10
);
comment on domain wt_public_id is
'Random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'Random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_private_id as text
not null
@@ -20,14 +20,14 @@ check(
length(trim(value)) > 10
);
comment on domain wt_private_id is
'Random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'Random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_scope_id as text
check(
length(trim(value)) > 10 or value = 'global'
);
comment on domain wt_scope_id is
'"global" or random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'"global" or random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_user_id as text
not null
@@ -35,7 +35,7 @@ check(
length(trim(value)) > 10 or value = 'u_anon' or value = 'u_auth' or value = 'u_recovery'
);
comment on domain wt_scope_id is
'"u_anon", "u_auth", or random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'"u_anon", "u_auth", or random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_role_id as text
not null
@@ -43,7 +43,7 @@ check(
length(trim(value)) > 10
);
comment on domain wt_scope_id is
'Random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'Random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create domain wt_timestamp as
timestamp with time zone
@@ -7342,7 +7342,7 @@ create domain wt_plugin_id as text
length(trim(value)) > 10 or value = 'pi_system'
);
comment on domain wt_plugin_id is
'"pi_system", or random ID generated with github.com/hashicorp/shared-secure-libs/base62';
'"pi_system", or random ID generated with github.com/hashicorp/go-secure-stdlib/base62';
create table plugin (
public_id wt_plugin_id primary key
+1 -1
View File
@@ -3,7 +3,7 @@ package event
import (
"fmt"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
)
// This modified newId has been done to stop a circular
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/hashicorp/boundary/internal/kms"
"github.com/hashicorp/boundary/internal/observability/event"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
)
// generatedTraceId returns a boundary generated TraceId or "" if an error occurs when generating
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"github.com/hashicorp/boundary/internal/session"
"github.com/hashicorp/boundary/internal/target"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/hashicorp/shared-secure-libs/mlock"
"github.com/patrickmn/go-cache"
ua "go.uber.org/atomic"
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"github.com/hashicorp/boundary/internal/servers"
"github.com/hashicorp/go-hclog"
wrapping "github.com/hashicorp/go-kms-wrapping"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/hashicorp/shared-secure-libs/strutil"
"github.com/jinzhu/gorm"
)
@@ -19,7 +19,7 @@ import (
"github.com/hashicorp/boundary/internal/cmd/base"
pbs "github.com/hashicorp/boundary/internal/gen/controller/servers/services"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"google.golang.org/grpc"
"google.golang.org/grpc/resolver"
"google.golang.org/protobuf/proto"
+1 -1
View File
@@ -12,7 +12,7 @@ import (
pbs "github.com/hashicorp/boundary/internal/gen/controller/servers/services"
"github.com/hashicorp/go-hclog"
wrapping "github.com/hashicorp/go-kms-wrapping"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
)
// TestWorker wraps a base.Server and Worker to provide a
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/hashicorp/boundary/internal/cmd/config"
"github.com/hashicorp/boundary/internal/servers"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/hashicorp/shared-secure-libs/mlock"
ua "go.uber.org/atomic"
"google.golang.org/grpc/resolver"
+1 -1
View File
@@ -16,8 +16,8 @@ import (
"github.com/hashicorp/boundary/internal/servers"
"github.com/hashicorp/boundary/internal/target"
wrapping "github.com/hashicorp/go-kms-wrapping"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/hashicorp/go-uuid"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/jinzhu/gorm"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/types/known/timestamppb"
@@ -27,7 +27,7 @@ import (
"github.com/hashicorp/dawdle"
"github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/shared-secure-libs/base62"
"github.com/hashicorp/go-secure-stdlib/base62"
"github.com/mr-tron/base58"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"