Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,19 @@ jobs:
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git fetch origin domain-replacement || true
git checkout -B domain-replacement

# Check if the branch exists remotely
if git ls-remote --exit-code --heads origin domain-replacement; then
echo "Branch 'domain-replacement' exists. Checking it out."
git fetch origin domain-replacement
git checkout domain-replacement
else
echo "Branch 'domain-replacement' does not exist. Creating it."
git checkout -b domain-replacement
fi

# git fetch origin domain-replacement || true
# git checkout -B domain-replacement
git add . ':!./.github/workflows/' ':!./.github/workflows/domain-replacer/'
if git diff --cached --quiet; then
echo "No changes to commit."
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/domain-replacer/replace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -e
echo "Scanning for files to update..."


find . -type f ! -path "./.github/workflows/*" | while read -r file; do
find . -type f ! -name "go.sum" ! -path "./.github/workflows/*" | while read -r file; do
echo "Checking $file"
if grep -q 'github.com/dell/' "$file"; then
echo "Updating $file"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ K3S_SELINUX_VERSION ?= 0.4-1
build:
-mkdir -p ./bin
CGO_ENABLED=0 go build -o ./bin ./cmd/karavictl/
https://github.com/dell/csm-operator
https://eos2git.cec.lab.emc.com/CSM/csm-operator
https://github.com/csm-operator


Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ You may obtain a copy of the License at
---


[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](https://github.com/dell/csm/blob/main/docs/CODE_OF_CONDUCT.md)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](https://eos2git.cec.lab.emc.com/CSM/csm/blob/main/docs/CODE_OF_CONDUCT.md)
[![License](https://img.shields.io/github/license/dell/karavi-authorization)](LICENSE)
[![Go version](https://img.shields.io/github/go-mod/go-version/dell/karavi-authorization)](go.mod)
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/dell/karavi-authorization?include_prereleases&label=latest&style=flat-square)](https://github.com/dell/karavi-authorization/releases/latest)
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/dell/karavi-authorization?include_prereleases&label=latest&style=flat-square)](https://eos2git.cec.lab.emc.com/CSM/karavi-authorization/releases/latest)

CSM for Authorization is part of the [CSM (Container Storage Modules)](https://github.com/dell/csm) open-source suite of Kubernetes storage enablers for Dell products. CSM for Authorization provides storage and Kubernetes administrators the ability to apply RBAC for Dell CSI Drivers. It does this by deploying a proxy between the CSI driver and the storage system to enforce role-based access and usage rules.
CSM for Authorization is part of the [CSM (Container Storage Modules)](https://eos2git.cec.lab.emc.com/CSM/csm) open-source suite of Kubernetes storage enablers for Dell products. CSM for Authorization provides storage and Kubernetes administrators the ability to apply RBAC for Dell CSI Drivers. It does this by deploying a proxy between the CSI driver and the storage system to enforce role-based access and usage rules.

Storage administrators of compatible storage platforms will be able to apply quota and RBAC rules that instantly and automatically restrict cluster tenants usage of storage resources. Users of storage through CSM for Authorization do not need to have storage admin root credentials to access the storage system.

For documentation, please visit [Container Storage Modules documentation](https://dell.github.io/csm-docs/).

## Table of Contents

* [Code of Conduct](https://github.com/dell/csm/blob/main/docs/CODE_OF_CONDUCT.md)
* [Maintainer Guide](https://github.com/dell/csm/blob/main/docs/MAINTAINER_GUIDE.md)
* [Committer Guide](https://github.com/dell/csm/blob/main/docs/COMMITTER_GUIDE.md)
* [Contributing Guide](https://github.com/dell/csm/blob/main/docs/CONTRIBUTING.md)
* [List of Adopters](https://github.com/dell/csm/blob/main/docs/ADOPTERS.md)
* [Code of Conduct](https://eos2git.cec.lab.emc.com/CSM/csm/blob/main/docs/CODE_OF_CONDUCT.md)
* [Maintainer Guide](https://eos2git.cec.lab.emc.com/CSM/csm/blob/main/docs/MAINTAINER_GUIDE.md)
* [Committer Guide](https://eos2git.cec.lab.emc.com/CSM/csm/blob/main/docs/COMMITTER_GUIDE.md)
* [Contributing Guide](https://eos2git.cec.lab.emc.com/CSM/csm/blob/main/docs/CONTRIBUTING.md)
* [List of Adopters](https://eos2git.cec.lab.emc.com/CSM/csm/blob/main/docs/ADOPTERS.md)
* [Dell support](https://www.dell.com/support/incidents-online/en-us/contactus/product/container-storage-modules)
* [Security](https://github.com/dell/csm/blob/main/docs/SECURITY.md)
* [Security](https://eos2git.cec.lab.emc.com/CSM/csm/blob/main/docs/SECURITY.md)
* [Project Structure](./docs/PROJECT_STRUCTURE.md)
* [About](#about)

Expand All @@ -52,7 +52,7 @@ If you wish to clone and build CSM for Authorization, a Linux host is required w

Once all prerequisites are on the Linux host, follow the steps below to clone, build and deploy CSM for Authorization:

1. Clone the repository: `git clone https://github.com/dell/karavi-authorization.git`
1. Clone the repository: `git clone https://eos2git.cec.lab.emc.com/CSM/karavi-authorization.git`
2. In the karavi-authorization directory, run the following to build and deploy: `make build builder dist`

## Testing CSM for Authorization v1
Expand Down
6 changes: 3 additions & 3 deletions cmd/karavictl/cmd/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (
"strings"
"time"

pscale "github.com/dell/goisilon"
pmax "github.com/dell/gopowermax/v2"
"github.com/dell/goscaleio"
pscale "eos2git.cec.lab.emc.com/CSM/goisilon"
pmax "eos2git.cec.lab.emc.com/CSM/gopowermax/v2"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
"github.com/spf13/cobra"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ toolchain go1.24.1

require (
github.com/alicebob/miniredis/v2 v2.34.0
github.com/dell/goisilon v1.19.0
github.com/dell/gopowermax/v2 v2.10.0
github.com/dell/goscaleio v1.20.0
eos2git.cec.lab.emc.com/CSM/goisilon v1.19.0
eos2git.cec.lab.emc.com/CSM/gopowermax/v2 v2.10.0
eos2git.cec.lab.emc.com/CSM/goscaleio v1.20.0
github.com/dustin/go-humanize v1.0.1
github.com/fsnotify/fsnotify v1.9.0
github.com/go-redis/redis v6.15.9+incompatible
Expand Down
2 changes: 1 addition & 1 deletion internal/powerflex/storage_pool_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"sync"

"github.com/dell/goscaleio"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
lru "github.com/hashicorp/golang-lru"
"go.opentelemetry.io/otel/trace"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/powerflex/storage_pool_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"testing"
"time"

"github.com/dell/goscaleio"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/powerflex/token_getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"sync"
"time"

"github.com/dell/goscaleio"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
"github.com/sirupsen/logrus"
"go.opentelemetry.io/otel/trace"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/powerflex/token_getter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"
"time"

"github.com/dell/goscaleio"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
"github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/proxy/powerflex_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import (
"sync"
"time"

types "github.com/dell/goscaleio/types/v1"
types "eos2git.cec.lab.emc.com/CSM/goscaleio/types/v1"

"github.com/dell/goscaleio"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
"github.com/sirupsen/logrus"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
"go.opentelemetry.io/otel/attribute"
Expand Down
2 changes: 1 addition & 1 deletion internal/proxy/powermax_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"strings"
"sync"

pmax "github.com/dell/gopowermax/v2"
pmax "eos2git.cec.lab.emc.com/CSM/gopowermax/v2"

"github.com/julienschmidt/httprouter"
"github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion internal/role-service/validate/powerflex.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

storage "karavi-authorization/cmd/karavictl/cmd"

"github.com/dell/goscaleio"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/role-service/validate/powermax.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
storage "karavi-authorization/cmd/karavictl/cmd"
"net/url"

pmax "github.com/dell/gopowermax/v2"
pmax "eos2git.cec.lab.emc.com/CSM/gopowermax/v2"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/role-service/validate/powerscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
storage "karavi-authorization/cmd/karavictl/cmd"
"net/url"

pscale "github.com/dell/goisilon"
pscale "eos2git.cec.lab.emc.com/CSM/goisilon"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/storage-service/powerflex.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"sync"

"github.com/dell/goscaleio"
types "github.com/dell/goscaleio/types/v1"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
types "eos2git.cec.lab.emc.com/CSM/goscaleio/types/v1"
"golang.org/x/sync/semaphore"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/storage-service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"golang.org/x/sync/errgroup"
"golang.org/x/sync/semaphore"

"github.com/dell/goscaleio"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
"github.com/sirupsen/logrus"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/storage-service/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

storage "karavi-authorization/cmd/karavictl/cmd"

pscale "github.com/dell/goisilon"
pmax "github.com/dell/gopowermax/v2"
"github.com/dell/goscaleio"
pscale "eos2git.cec.lab.emc.com/CSM/goisilon"
pmax "eos2git.cec.lab.emc.com/CSM/gopowermax/v2"
"eos2git.cec.lab.emc.com/CSM/goscaleio"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pb/auth.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";

package gatekeeper;
option go_package = "github.com/dell/karavi-authorization/pb";
option go_package = "eos2git.cec.lab.emc.com/CSM/karavi-authorization/pb";

message LoginRequest {
string Provider = 1;
Expand Down
2 changes: 1 addition & 1 deletion pb/role-service.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";

package karavi;
option go_package = "github.com/dell/karavi-authorization/pb";
option go_package = "eos2git.cec.lab.emc.com/CSM/karavi-authorization/pb";

message RoleCreateRequest {
string name = 1;
Expand Down
2 changes: 1 addition & 1 deletion pb/storage_service.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";

package karavi;
option go_package = "github.com/dell/karavi-authorization/pb";
option go_package = "eos2git.cec.lab.emc.com/CSM/karavi-authorization/pb";


message StorageCreateRequest {
Expand Down
2 changes: 1 addition & 1 deletion pb/tenant_service.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";

package karavi;
option go_package = "github.com/dell/karavi-authorization/pb";
option go_package = "eos2git.cec.lab.emc.com/CSM/karavi-authorization/pb";


message Tenant {
Expand Down