diff --git a/Dockerfile b/Dockerfile index 69e9e9f..7d6dc99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,15 +41,15 @@ RUN export GOPATH=$GOPATH RUN go env -w GO111MODULE=auto # Copy source files -COPY cmd $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/cmd +COPY cmd $GOPATH/src/github.com/openchami/remote-console/v2/cmd COPY configs configs COPY scripts scripts -COPY internal $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/internal -COPY go.mod $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/go.mod -COPY go.sum $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/go.sum +COPY internal $GOPATH/src/github.com/openchami/remote-console/v2/internal +COPY go.mod $GOPATH/src/github.com/openchami/remote-console/v2/go.mod +COPY go.sum $GOPATH/src/github.com/openchami/remote-console/v2/go.sum # Build the image -RUN set -ex && go build -C $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/cmd/remote-console -v -o /usr/local/bin/remote-console +RUN set -ex && go build -C $GOPATH/src/github.com/openchami/remote-console/v2/cmd/remote-console -v -o /usr/local/bin/remote-console ### Final Stage ### FROM ubuntu:26.04 AS final diff --git a/Dockerfile.debug b/Dockerfile.debug index 15fa8d9..79c23ca 100644 --- a/Dockerfile.debug +++ b/Dockerfile.debug @@ -7,15 +7,15 @@ RUN go env -w GO111MODULE=auto RUN export CGO_ENABLED=0 # Copy source files -COPY cmd $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/cmd +COPY cmd $GOPATH/src/github.com/openchami/remote-console/v2/cmd COPY configs configs COPY scripts scripts -COPY internal $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/internal -COPY go.mod $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/go.mod -COPY go.sum $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/go.sum +COPY internal $GOPATH/src/github.com/openchami/remote-console/v2/internal +COPY go.mod $GOPATH/src/github.com/openchami/remote-console/v2/go.mod +COPY go.sum $GOPATH/src/github.com/openchami/remote-console/v2/go.sum # Build the image -RUN go build -C $GOPATH/src/github.com/OpenCHAMI/remote-console/v2/cmd/remote-console -v \ +RUN go build -C $GOPATH/src/github.com/openchami/remote-console/v2/cmd/remote-console -v \ -gcflags=all="-N -l" \ -o /usr/local/bin/remote-console diff --git a/cmd/remote-console/config.go b/cmd/remote-console/config.go index 17643c0..8c91416 100644 --- a/cmd/remote-console/config.go +++ b/cmd/remote-console/config.go @@ -9,10 +9,10 @@ import ( "log/slog" "slices" - "github.com/OpenCHAMI/remote-console/internal/conman" - "github.com/OpenCHAMI/remote-console/internal/creds" - "github.com/OpenCHAMI/remote-console/internal/logs" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/conman" + "github.com/openchami/remote-console/internal/creds" + "github.com/openchami/remote-console/internal/logs" + "github.com/openchami/remote-console/internal/ssh" ) type OAuth2Config struct { diff --git a/cmd/remote-console/service.go b/cmd/remote-console/service.go index 8b0a6f4..b0ee593 100644 --- a/cmd/remote-console/service.go +++ b/cmd/remote-console/service.go @@ -16,12 +16,12 @@ import ( "time" compcreds "github.com/Cray-HPE/hms-compcredentials" - "github.com/OpenCHAMI/remote-console/internal/conman" - "github.com/OpenCHAMI/remote-console/internal/console" - "github.com/OpenCHAMI/remote-console/internal/creds" - "github.com/OpenCHAMI/remote-console/internal/logs" - "github.com/OpenCHAMI/remote-console/internal/nodes" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/conman" + "github.com/openchami/remote-console/internal/console" + "github.com/openchami/remote-console/internal/creds" + "github.com/openchami/remote-console/internal/logs" + "github.com/openchami/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/ssh" "golang.org/x/oauth2" "golang.org/x/oauth2/clientcredentials" ) diff --git a/go.mod b/go.mod index fcddaab..4957cc9 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ // // (MIT License) -module github.com/OpenCHAMI/remote-console +module github.com/openchami/remote-console go 1.26.0 diff --git a/internal/conman/conman.go b/internal/conman/conman.go index be20a88..13b5df1 100644 --- a/internal/conman/conman.go +++ b/internal/conman/conman.go @@ -24,7 +24,7 @@ import ( "github.com/Cray-HPE/hms-compcredentials" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) type ConmanService struct { diff --git a/internal/conman/conman_test.go b/internal/conman/conman_test.go index a4bc982..05dfb79 100644 --- a/internal/conman/conman_test.go +++ b/internal/conman/conman_test.go @@ -15,7 +15,7 @@ import ( "github.com/Cray-HPE/hms-compcredentials" "github.com/stretchr/testify/require" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) func TestGenerateBaseConfig(t *testing.T) { diff --git a/internal/console/conman_backend.go b/internal/console/conman_backend.go index b9d4dc6..c1fa8c0 100644 --- a/internal/console/conman_backend.go +++ b/internal/console/conman_backend.go @@ -17,8 +17,8 @@ import ( "syscall" "time" - "github.com/OpenCHAMI/remote-console/internal/nodes" "github.com/creack/pty" + "github.com/openchami/remote-console/internal/nodes" ) const ( diff --git a/internal/console/consoles.go b/internal/console/consoles.go index f2a32dc..5ef4165 100644 --- a/internal/console/consoles.go +++ b/internal/console/consoles.go @@ -7,7 +7,7 @@ package console import ( "net/http" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) type ConsolesResponse struct { diff --git a/internal/console/health.go b/internal/console/health.go index 537dc98..08bb155 100644 --- a/internal/console/health.go +++ b/internal/console/health.go @@ -12,7 +12,7 @@ import ( "log/slog" "net/http" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) // HealthResponse - used to report service health stats diff --git a/internal/console/interactive.go b/internal/console/interactive.go index 8bc4946..ed0f89b 100644 --- a/internal/console/interactive.go +++ b/internal/console/interactive.go @@ -13,10 +13,10 @@ import ( "sync" "time" - "github.com/OpenCHAMI/remote-console/internal/nodes" - "github.com/OpenCHAMI/remote-console/internal/ssh" "github.com/gorilla/websocket" "github.com/nxadm/tail/ratelimiter" + "github.com/openchami/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/ssh" ) // interactiveSessions tracks which nodes currently have an active diff --git a/internal/console/interactive_test.go b/internal/console/interactive_test.go index d4bc58b..a42484f 100644 --- a/internal/console/interactive_test.go +++ b/internal/console/interactive_test.go @@ -17,8 +17,8 @@ import ( "github.com/gorilla/websocket" - "github.com/OpenCHAMI/remote-console/internal/nodes" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/ssh" ) func TestReservationExclusive(t *testing.T) { diff --git a/internal/console/router.go b/internal/console/router.go index 87fe4c5..2437808 100644 --- a/internal/console/router.go +++ b/internal/console/router.go @@ -16,7 +16,7 @@ import ( "github.com/gorilla/websocket" openchami_authenticator "github.com/openchami/chi-middleware/auth" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/ssh" ) const routePrefix = "/remote-console" diff --git a/internal/console/ssh_backend.go b/internal/console/ssh_backend.go index 3c17954..d4cc854 100644 --- a/internal/console/ssh_backend.go +++ b/internal/console/ssh_backend.go @@ -11,7 +11,7 @@ import ( "sync" "sync/atomic" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/ssh" ) // clientIDCounter generates unique client IDs within a process. diff --git a/internal/console/tail.go b/internal/console/tail.go index 9779764..e038b99 100644 --- a/internal/console/tail.go +++ b/internal/console/tail.go @@ -22,7 +22,7 @@ import ( "github.com/nxadm/tail" "github.com/nxadm/tail/ratelimiter" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) type consoleTailSession struct { diff --git a/internal/creds/monitor.go b/internal/creds/monitor.go index c4de51a..85c4d16 100644 --- a/internal/creds/monitor.go +++ b/internal/creds/monitor.go @@ -11,7 +11,7 @@ import ( "log/slog" compcreds "github.com/Cray-HPE/hms-compcredentials" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) type SignalConmanTERM func() diff --git a/internal/logs/aggregation.go b/internal/logs/aggregation.go index 6d6592e..7015e26 100644 --- a/internal/logs/aggregation.go +++ b/internal/logs/aggregation.go @@ -18,7 +18,7 @@ import ( "github.com/nxadm/tail" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) // aggregateFile starts tailing a log file if not already running (idempotent) diff --git a/internal/logs/aggregation_test.go b/internal/logs/aggregation_test.go index 361a3b7..cf7dbcb 100644 --- a/internal/logs/aggregation_test.go +++ b/internal/logs/aggregation_test.go @@ -15,7 +15,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) func TestWriteToAggLog(t *testing.T) { diff --git a/internal/logs/rotation.go b/internal/logs/rotation.go index 2ca7012..a900d9a 100644 --- a/internal/logs/rotation.go +++ b/internal/logs/rotation.go @@ -18,7 +18,7 @@ import ( "strings" "time" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) // LogRotate initializes and starts log rotation diff --git a/internal/logs/rotation_test.go b/internal/logs/rotation_test.go index aabead6..c0db487 100644 --- a/internal/logs/rotation_test.go +++ b/internal/logs/rotation_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" "github.com/stretchr/testify/require" ) diff --git a/internal/ssh/concurrent_test.go b/internal/ssh/concurrent_test.go index 32bc28c..c963761 100644 --- a/internal/ssh/concurrent_test.go +++ b/internal/ssh/concurrent_test.go @@ -17,8 +17,8 @@ import ( compcredentials "github.com/Cray-HPE/hms-compcredentials" gossh "golang.org/x/crypto/ssh" - "github.com/OpenCHAMI/remote-console/internal/nodes" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/ssh" ) // TestSSHConsoleManagerConcurrent exercises concurrent access to SSHConsoleManager diff --git a/internal/ssh/config_test.go b/internal/ssh/config_test.go index 1f57c64..a86fa0b 100644 --- a/internal/ssh/config_test.go +++ b/internal/ssh/config_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/ssh" ) func TestSSHConfigValidate(t *testing.T) { diff --git a/internal/ssh/console.go b/internal/ssh/console.go index a5cacdf..da4f938 100644 --- a/internal/ssh/console.go +++ b/internal/ssh/console.go @@ -19,7 +19,7 @@ import ( compcredentials "github.com/Cray-HPE/hms-compcredentials" gossh "golang.org/x/crypto/ssh" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) // errNoCredentials means no credential entry has reached this node. diff --git a/internal/ssh/console_test.go b/internal/ssh/console_test.go index 24d88fb..0b6f5f1 100644 --- a/internal/ssh/console_test.go +++ b/internal/ssh/console_test.go @@ -14,7 +14,7 @@ import ( gossh "golang.org/x/crypto/ssh" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) // TestSSHConsoleReconnect verifies automatic reconnection and status markers. diff --git a/internal/ssh/manager.go b/internal/ssh/manager.go index d5613d0..caa36e2 100644 --- a/internal/ssh/manager.go +++ b/internal/ssh/manager.go @@ -14,7 +14,7 @@ import ( "github.com/Cray-HPE/hms-compcredentials" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/nodes" ) // ErrNotConnected means a managed node is temporarily disconnected. Write discards input and diff --git a/internal/ssh/manager_test.go b/internal/ssh/manager_test.go index 5274c85..58ba68e 100644 --- a/internal/ssh/manager_test.go +++ b/internal/ssh/manager_test.go @@ -17,8 +17,8 @@ import ( compcredentials "github.com/Cray-HPE/hms-compcredentials" gossh "golang.org/x/crypto/ssh" - "github.com/OpenCHAMI/remote-console/internal/nodes" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/ssh" ) // deadAddr returns an unused local address so connections fail immediately. diff --git a/internal/ssh/scale_test.go b/internal/ssh/scale_test.go index c21284c..3dfa89c 100644 --- a/internal/ssh/scale_test.go +++ b/internal/ssh/scale_test.go @@ -17,8 +17,8 @@ import ( compcredentials "github.com/Cray-HPE/hms-compcredentials" gossh "golang.org/x/crypto/ssh" - "github.com/OpenCHAMI/remote-console/internal/nodes" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/ssh" ) const ( diff --git a/internal/ssh/server_test.go b/internal/ssh/server_test.go index 5b3bb5c..f16f7bb 100644 --- a/internal/ssh/server_test.go +++ b/internal/ssh/server_test.go @@ -19,8 +19,8 @@ import ( "github.com/Cray-HPE/hms-compcredentials" gossh "golang.org/x/crypto/ssh" - "github.com/OpenCHAMI/remote-console/internal/nodes" - "github.com/OpenCHAMI/remote-console/internal/ssh" + "github.com/openchami/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/ssh" ) const ( diff --git a/test/integration_test.go b/test/integration_test.go index 8061547..4e311fd 100644 --- a/test/integration_test.go +++ b/test/integration_test.go @@ -29,8 +29,8 @@ import ( "github.com/testcontainers/testcontainers-go/network" "golang.org/x/crypto/ssh" - "github.com/OpenCHAMI/remote-console/internal/console" - "github.com/OpenCHAMI/remote-console/internal/nodes" + "github.com/openchami/remote-console/internal/console" + "github.com/openchami/remote-console/internal/nodes" ) const (