Skip to content

Commit

Permalink
Revert back to identity apigroup
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jun 10, 2024
1 parent 19442a4 commit e773b49
Show file tree
Hide file tree
Showing 216 changed files with 14,351 additions and 2,344 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ COMPRESS ?= no
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:crdVersions={v1},allowDangerousTypes=true"
CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.29
API_GROUPS ?= authentication:v1alpha1 cost:v1alpha1 offline:v1alpha1 policy:v1alpha1
API_GROUPS ?= cost:v1alpha1 identity:v1alpha1 offline:v1alpha1 policy:v1alpha1

# Where to push the docker image.
REGISTRY ?= ghcr.io/appscode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package fuzzer

import (
"kubeops.dev/ui-server/apis/authentication/v1alpha1"
"kubeops.dev/ui-server/apis/identity/v1alpha1"

fuzz "github.com/google/gofuzz"
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package install

import (
"kubeops.dev/ui-server/apis/authentication/v1alpha1"
"kubeops.dev/ui-server/apis/identity/v1alpha1"

"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package install
import (
"testing"

"kubeops.dev/ui-server/apis/authentication/fuzzer"
"kubeops.dev/ui-server/apis/identity/fuzzer"

"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ limitations under the License.
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=package
// +k8s:defaulter-gen=TypeMeta
// +groupName=authentication.k8s.appscode.com
package v1alpha1 // import "kubeops.dev/ui-server/apis/authentication/v1alpha1"
// +groupName=identity.k8s.appscode.com
package v1alpha1 // import "kubeops.dev/ui-server/apis/identity/v1alpha1"
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/scheme"
)

const GroupName = "authentication.k8s.appscode.com"
const GroupName = "identity.k8s.appscode.com"

var (
// GroupVersion is group version used to register these objects
Expand Down

Large diffs are not rendered by default.

File renamed without changes.
4 changes: 2 additions & 2 deletions artifacts/scanner/reports/app-report-reponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ response:
S3 Crypto SDK for GoLang versions prior to V2. An attacker with write access
to the targeted bucket can change the encryption algorithm of an object in
the bucket, which can then allow them to change AES-GCM to AES-CTR. Using
this in combination with a decryption oracle can reveal the authentication
key used by AES-GCM as decrypting the GMAC tag leaves the authentication key
this in combination with a decryption oracle can reveal the identity
key used by AES-GCM as decrypting the GMAC tag leaves the identity key
recoverable as an algebraic equation. It is recommended to update your SDK
to V2 or later, and re-encrypt your files.
lastModifiedDate: "2020-08-17T19:31:00Z"
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scanner/reports/cluster-report-response.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ response:
target: registry.k8s.io/kube-proxy:v1.25.3 (debian 11.4)
type: debian
severity: LOW
title: 'openssl: RSA authentication weakness'
title: 'openssl: RSA identity weakness'
vulnerabilityID: CVE-2010-0928
- results:
- image: index.docker.io/kindest/kindnetd:v20221004-44d545d1
Expand Down
6 changes: 3 additions & 3 deletions artifacts/scanner/reports/ns-report-response.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ response:
type: debian
severity: LOW
severitySource: debian
title: 'openssl: RSA authentication weakness'
title: 'openssl: RSA identity weakness'
vulnerabilityID: CVE-2010-0928
- cvss:
nvd:
Expand Down Expand Up @@ -1198,8 +1198,8 @@ response:
S3 Crypto SDK for GoLang versions prior to V2. An attacker with write access
to the targeted bucket can change the encryption algorithm of an object in
the bucket, which can then allow them to change AES-GCM to AES-CTR. Using
this in combination with a decryption oracle can reveal the authentication
key used by AES-GCM as decrypting the GMAC tag leaves the authentication key
this in combination with a decryption oracle can reveal the identity
key used by AES-GCM as decrypting the GMAC tag leaves the identity key
recoverable as an algebraic equation. It is recommended to update your SDK
to V2 or later, and re-encrypt your files.
lastModifiedDate: "2020-08-17T19:31:00Z"
Expand Down
2 changes: 1 addition & 1 deletion artifacts/whoami.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
apiVersion: authentication.k8s.appscode.com/v1alpha1
apiVersion: identity.k8s.appscode.com/v1alpha1
kind: WhoAmI
2 changes: 1 addition & 1 deletion crds/authentication.k8s.appscode.com_clusteridentitys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
creationTimestamp: null
name: clusteridentitys.authentication.k8s.appscode.com
spec:
group: authentication.k8s.appscode.com
group: identity.k8s.appscode.com
names:
kind: ClusterIdentity
listKind: ClusterIdentityList
Expand Down
75 changes: 75 additions & 0 deletions crds/identity.k8s.appscode.com_clusteridentitys.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: clusteridentitys.identity.k8s.appscode.com
spec:
group: identity.k8s.appscode.com
names:
kind: ClusterIdentity
listKind: ClusterIdentityList
plural: clusteridentitys
singular: clusteridentity
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.phase
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
status:
description: ClusterIdentityStatus defines the observed state of ClusterIdentity
properties:
displayName:
type: string
name:
type: string
ownerID:
type: string
ownerType:
type: string
provider:
enum:
- Aws
- Azure
- DigitalOcean
- GoogleCloud
- Linode
- Packet
- Scaleway
- Vultr
- BareMetal
- KIND
- Generic
- Private
type: string
uid:
type: string
required:
- uid
type: object
type: object
served: true
storage: true
subresources:
status: {}
69 changes: 36 additions & 33 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
module kubeops.dev/ui-server

go 1.22.4
go 1.22.1

toolchain go1.22.4

require (
github.com/Masterminds/sprig/v3 v3.2.3
github.com/fluxcd/helm-controller/api v1.0.1
github.com/fluxcd/source-controller/api v1.3.0
github.com/go-logr/logr v1.4.1
github.com/gobuffalo/flect v0.3.0
github.com/go-logr/logr v1.4.2
github.com/gobuffalo/flect v1.0.2
github.com/google/gofuzz v1.2.0
github.com/google/uuid v1.6.0
github.com/gorilla/schema v1.2.0
github.com/gorilla/schema v1.3.0
github.com/graphql-go/graphql v0.8.1
github.com/graphql-go/handler v0.2.3
github.com/open-policy-agent/gatekeeper/v3 v3.16.0
github.com/graphql-go/handler v0.2.4
github.com/open-policy-agent/gatekeeper/v3 v3.0.0-00010101000000-000000000000
github.com/pkg/errors v0.9.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.71.2
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.74.0
github.com/prometheus/client_golang v1.19.1
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
github.com/zeebo/xxh3 v1.0.2
go.bytebuilders.dev/license-verifier v0.14.0
go.bytebuilders.dev/license-verifier v0.14.1
go.openviz.dev/apimachinery v0.0.7
golang.org/x/sync v0.7.0
gomodules.xyz/jsonpath v0.0.2
Expand All @@ -38,22 +40,22 @@ require (
k8s.io/client-go v0.30.1
k8s.io/component-base v0.30.1
k8s.io/klog/v2 v2.120.1
k8s.io/kube-openapi v0.0.0-20240430033511-f0e62f92d13f
k8s.io/kube-state-metrics/v2 v2.7.0
k8s.io/kube-openapi v0.0.0-20240521193020-835d969ad83a
k8s.io/kube-state-metrics/v2 v2.12.0
kmodules.xyz/apiversion v0.2.0
kmodules.xyz/authorizer v0.29.1
kmodules.xyz/client-go v0.30.2
kmodules.xyz/custom-resources v0.29.1
kmodules.xyz/go-containerregistry v0.0.12
kmodules.xyz/monitoring-agent-api v0.29.0
kmodules.xyz/resource-metadata v0.18.7-0.20240608063605-a978f2412d52
kmodules.xyz/resource-metrics v0.30.0
kmodules.xyz/resource-metrics/utils v0.30.0
kmodules.xyz/resource-metadata v0.18.7-0.20240610113343-3a520e33c47a
kmodules.xyz/resource-metrics v0.30.1
kmodules.xyz/resource-metrics/utils v0.30.1
kmodules.xyz/sets v0.29.0
kubeops.dev/falco-ui-server v0.0.3
kubeops.dev/scanner v0.0.17
kubepack.dev/lib-helm v0.29.6
sigs.k8s.io/cli-utils v0.34.0
kubeops.dev/falco-ui-server v0.0.4
kubeops.dev/scanner v0.0.18
kubepack.dev/lib-helm v0.29.10
sigs.k8s.io/cli-utils v0.36.0
sigs.k8s.io/controller-runtime v0.18.4
sigs.k8s.io/yaml v1.4.0
x-helm.dev/apimachinery v0.0.16
Expand All @@ -63,7 +65,7 @@ require (
cloud.google.com/go/compute/metadata v0.3.0 // indirect
cloud.google.com/go/monitoring v1.18.0 // indirect
cloud.google.com/go/trace v1.10.6 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.20.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.44.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.44.0 // indirect
Expand All @@ -75,7 +77,7 @@ require (
github.com/agnivade/levenshtein v1.1.1 // indirect
github.com/alessio/shellescape v1.4.1 // indirect
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/aws/aws-sdk-go v1.47.9 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
Expand All @@ -90,7 +92,7 @@ require (
github.com/docker/cli v25.0.1+incompatible // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker v25.0.5+incompatible // indirect
github.com/docker/docker-credential-helpers v0.7.0 // indirect
github.com/docker/docker-credential-helpers v0.8.0 // indirect
github.com/dominikbraun/graph v0.16.2 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/emicklei/go-restful/v3 v3.12.0 // indirect
Expand All @@ -102,7 +104,7 @@ require (
github.com/fluxcd/pkg/apis/kustomize v1.5.0 // indirect
github.com/fluxcd/pkg/apis/meta v1.5.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-errors/errors v1.5.1 // indirect
github.com/go-ini/ini v1.67.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
Expand All @@ -115,7 +117,7 @@ require (
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/btree v1.1.2 // indirect
github.com/google/cel-go v0.17.8 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/go-containerregistry v0.19.1 // indirect
github.com/google/s2a-go v0.1.7 // indirect
Expand All @@ -125,17 +127,17 @@ require (
github.com/gorilla/mux v1.8.1 // indirect
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jmespath/go-jmespath v0.4.1-0.20220621161143-b0104c826a24 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/jpillora/backoff v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.2 // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
github.com/mailru/easyjson v0.7.7 // indirect
Expand Down Expand Up @@ -166,7 +168,7 @@ require (
github.com/spf13/cast v1.6.0 // indirect
github.com/stoewer/go-strcase v1.2.0 // indirect
github.com/tchap/go-patricia/v2 v2.3.1 // indirect
github.com/vbatts/tar-split v0.11.3 // indirect
github.com/vbatts/tar-split v0.11.5 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
Expand All @@ -185,15 +187,15 @@ require (
go.opentelemetry.io/otel v1.24.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.42.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.22.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.22.0 // indirect
go.opentelemetry.io/otel/exporters/prometheus v0.40.0 // indirect
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
go.opentelemetry.io/otel/sdk v1.22.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.19.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
go.starlark.net v0.0.0-20231121155337-90ade8b19d09 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
Expand All @@ -217,20 +219,21 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240311132316-a219d84964c2 // indirect
google.golang.org/grpc v1.62.1 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/evanphx/json-patch.v5 v5.7.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
helm.sh/helm/v3 v3.14.2 // indirect
helm.sh/helm/v3 v3.14.3 // indirect
k8s.io/cli-runtime v0.30.1 // indirect
k8s.io/component-helpers v0.29.0 // indirect
k8s.io/kms v0.30.1 // indirect
k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 // indirect
kmodules.xyz/offshoot-api v0.29.4 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect
sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 // indirect
sigs.k8s.io/kustomize/api v0.16.0 // indirect
sigs.k8s.io/kustomize/kyaml v0.16.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
)

Expand Down
Loading

0 comments on commit e773b49

Please sign in to comment.