diff --git a/api/event-bus.html b/api/event-bus.html
index 2e39ac7b9c..99aeb0e0cd 100644
--- a/api/event-bus.html
+++ b/api/event-bus.html
@@ -297,38 +297,6 @@
EventBusStatus
-JetStreamAuth
-
-
-(Appears on:
-JetStreamConfig)
-
-
-
-
JetStreamBus
@@ -627,14 +595,16 @@
JetStreamConfig
-auth
+accessSecret
-
-JetStreamAuth
+
+Kubernetes core/v1.SecretKeySelector
|
+(Optional)
+ Secret for auth
|
diff --git a/api/event-bus.md b/api/event-bus.md
index 9834382e57..5fb7358ca6 100644
--- a/api/event-bus.md
+++ b/api/event-bus.md
@@ -300,42 +300,6 @@ Config holds the fininalized configuration of EventBus
-
-JetStreamAuth
-
-
-(Appears on:
-JetStreamConfig)
-
-
-
-
JetStreamBus
@@ -638,10 +602,15 @@ JetStream (Nats) URL
-auth
- JetStreamAuth
+accessSecret
+
+Kubernetes core/v1.SecretKeySelector
|
+(Optional)
+
+Secret for auth
+
|
diff --git a/api/jsonschema/schema.json b/api/jsonschema/schema.json
index e77a189273..2d0e9cdc89 100644
--- a/api/jsonschema/schema.json
+++ b/api/jsonschema/schema.json
@@ -380,15 +380,6 @@
},
"type": "object"
},
- "io.argoproj.eventbus.v1alpha1.JetStreamAuth": {
- "properties": {
- "token": {
- "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector",
- "description": "Secret for auth token"
- }
- },
- "type": "object"
- },
"io.argoproj.eventbus.v1alpha1.JetStreamBus": {
"description": "JetStreamBus holds the JetStream EventBus information",
"properties": {
@@ -484,8 +475,9 @@
},
"io.argoproj.eventbus.v1alpha1.JetStreamConfig": {
"properties": {
- "auth": {
- "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.JetStreamAuth"
+ "accessSecret": {
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector",
+ "description": "Secret for auth"
},
"streamConfig": {
"type": "string"
diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json
index 78838a85a0..d6ffb2e35e 100644
--- a/api/openapi-spec/swagger.json
+++ b/api/openapi-spec/swagger.json
@@ -372,15 +372,6 @@
}
}
},
- "io.argoproj.eventbus.v1alpha1.JetStreamAuth": {
- "type": "object",
- "properties": {
- "token": {
- "description": "Secret for auth token",
- "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
- }
- }
- },
"io.argoproj.eventbus.v1alpha1.JetStreamBus": {
"description": "JetStreamBus holds the JetStream EventBus information",
"type": "object",
@@ -477,8 +468,9 @@
"io.argoproj.eventbus.v1alpha1.JetStreamConfig": {
"type": "object",
"properties": {
- "auth": {
- "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.JetStreamAuth"
+ "accessSecret": {
+ "description": "Secret for auth",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
},
"streamConfig": {
"type": "string"
diff --git a/common/leaderelection/leaderelection.go b/common/leaderelection/leaderelection.go
index 36ea109cef..a4e92d0e53 100644
--- a/common/leaderelection/leaderelection.go
+++ b/common/leaderelection/leaderelection.go
@@ -36,7 +36,7 @@ func NewEventBusElector(ctx context.Context, eventBusConfig eventbusv1alpha1.Bus
eventBusAuth = eventBusConfig.NATS.Auth
case eventBusConfig.JetStream != nil:
eventBusType = apicommon.EventBusJetStream
- eventBusAuth = &eventbusv1alpha1.AuthStrategyToken
+ eventBusAuth = &eventbusv1alpha1.AuthStrategyBasic
default:
return nil, errors.New("invalid event bus")
}
@@ -108,6 +108,9 @@ func (e *natsEventBusElector) RunOrDie(ctx context.Context, callbacks LeaderCall
opts.Url = e.url
if e.auth.Strategy == eventbusv1alpha1.AuthStrategyToken {
opts.Token = e.auth.Crendential.Token
+ } else if e.auth.Strategy == eventbusv1alpha1.AuthStrategyBasic {
+ opts.User = e.auth.Crendential.Username
+ opts.Password = e.auth.Crendential.Password
}
rpc, err := graft.NewNatsRpc(opts)
if err != nil {
diff --git a/controllers/eventbus/installer/assets/jetstream/server-auth.conf b/controllers/eventbus/installer/assets/jetstream/server-auth.conf
index b360722e5c..dedfa06ee9 100644
--- a/controllers/eventbus/installer/assets/jetstream/server-auth.conf
+++ b/controllers/eventbus/installer/assets/jetstream/server-auth.conf
@@ -1,12 +1,15 @@
system_account: sys
-authorization {
- token: "{{.Token}}"
-}
accounts: {
+ "js": {
+ "jetstream": true,
+ "users": [
+ {"user": "{{.JetStreamUser}}", "pass": "{{.JetStreamPassword}}"}
+ ]
+ },
"sys": {
"users": [
- {"user": "sys", "pass":"{{.SysPassword}}"}
+ {"user": "sys", "pass": "{{.SysPassword}}"}
]
}
}
diff --git a/controllers/eventbus/installer/installer_test.go b/controllers/eventbus/installer/installer_test.go
index 9a214e25fe..d7ce53f9fc 100644
--- a/controllers/eventbus/installer/installer_test.go
+++ b/controllers/eventbus/installer/installer_test.go
@@ -187,7 +187,6 @@ func TestInstall(t *testing.T) {
assert.True(t, testObj.Status.IsReady())
assert.NotNil(t, testObj.Status.Config.JetStream)
assert.NotEmpty(t, testObj.Status.Config.JetStream.URL)
- assert.NotNil(t, testObj.Status.Config.JetStream.Auth)
- assert.NotNil(t, testObj.Status.Config.JetStream.Auth.Token)
+ assert.NotNil(t, testObj.Status.Config.JetStream.AccessSecret)
})
}
diff --git a/controllers/eventbus/installer/jetstream.go b/controllers/eventbus/installer/jetstream.go
index 6f5c4eb8ed..65e693b0f2 100644
--- a/controllers/eventbus/installer/jetstream.go
+++ b/controllers/eventbus/installer/jetstream.go
@@ -100,13 +100,11 @@ func (r *jetStreamInstaller) Install(ctx context.Context) (*v1alpha1.BusConfig,
return &v1alpha1.BusConfig{
JetStream: &v1alpha1.JetStreamConfig{
URL: fmt.Sprintf("nats://%s.%s.svc.cluster.local:%s", generateJetStreamServiceName(r.eventBus), r.eventBus.Namespace, strconv.Itoa(int(jsClientPort))),
- Auth: &v1alpha1.JetStreamAuth{
- Token: &corev1.SecretKeySelector{
- LocalObjectReference: corev1.LocalObjectReference{
- Name: generateJetStreamClientAuthSecretName(r.eventBus),
- },
- Key: common.JetStreamClientAuthSecretKey,
+ AccessSecret: &corev1.SecretKeySelector{
+ LocalObjectReference: corev1.LocalObjectReference{
+ Name: generateJetStreamClientAuthSecretName(r.eventBus),
},
+ Key: common.JetStreamClientAuthSecretKey,
},
StreamConfig: string(b),
},
@@ -440,16 +438,19 @@ func (r *jetStreamInstaller) buildStatefulSetSpec(jsVersion *controllers.JetStre
func (r *jetStreamInstaller) createSecrets(ctx context.Context) error {
encryptionKey := common.RandomString(12)
- token := common.RandomString(24)
+ jsUser := common.RandomString(8)
+ jsPass := common.RandomString(16)
sysPassword := common.RandomString(24)
authTpl := template.Must(template.ParseFS(jetStremAssets, "assets/jetstream/server-auth.conf"))
var authTplOutput bytes.Buffer
if err := authTpl.Execute(&authTplOutput, struct {
- Token string
- SysPassword string
+ JetStreamUser string
+ JetStreamPassword string
+ SysPassword string
}{
- Token: token,
- SysPassword: sysPassword,
+ JetStreamUser: jsUser,
+ JetStreamPassword: jsPass,
+ SysPassword: sysPassword,
}); err != nil {
return fmt.Errorf("failed to parse nats auth template, error: %w", err)
}
@@ -481,7 +482,7 @@ func (r *jetStreamInstaller) createSecrets(ctx context.Context) error {
},
Type: corev1.SecretTypeOpaque,
Data: map[string][]byte{
- common.JetStreamClientAuthSecretKey: []byte(fmt.Sprintf("token: \"%s\"", token)),
+ common.JetStreamClientAuthSecretKey: []byte(fmt.Sprintf("username: %s\npassword: %s", jsUser, jsPass)),
},
}
diff --git a/controllers/eventsource/resource.go b/controllers/eventsource/resource.go
index f42572d68f..d6b6853829 100644
--- a/controllers/eventsource/resource.go
+++ b/controllers/eventsource/resource.go
@@ -200,17 +200,14 @@ func buildDeployment(args *AdaptorArgs, eventBus *eventbusv1alpha1.EventBus) (*a
}
encodedBusConfig := base64.StdEncoding.EncodeToString(busConfigBytes)
envVars = append(envVars, corev1.EnvVar{Name: common.EnvVarEventBusConfig, Value: encodedBusConfig})
- var authStrategy *eventbusv1alpha1.AuthStrategy
var accessSecret *corev1.SecretKeySelector
switch {
case eventBus.Status.Config.NATS != nil:
natsConf := eventBus.Status.Config.NATS
- authStrategy = natsConf.Auth
accessSecret = natsConf.AccessSecret
case eventBus.Status.Config.JetStream != nil:
jsConf := eventBus.Status.Config.JetStream
- authStrategy = &eventbusv1alpha1.AuthStrategyToken
- accessSecret = jsConf.Auth.Token
+ accessSecret = jsConf.AccessSecret
default:
return nil, errors.New("unsupported event bus")
}
@@ -223,7 +220,7 @@ func buildDeployment(args *AdaptorArgs, eventBus *eventbusv1alpha1.EventBus) (*a
})
volumeMounts = append(volumeMounts, corev1.VolumeMount{Name: emptyDirVolName, MountPath: "/tmp"})
- if authStrategy != nil && accessSecret != nil {
+ if accessSecret != nil {
// Mount the secret as volume instead of using envFrom to gain the ability
// for the sensor deployment to auto reload when the secret changes
volumes = append(volumes, corev1.Volume{
diff --git a/controllers/sensor/resource.go b/controllers/sensor/resource.go
index 3d11cf7152..dcc6a9f8c8 100644
--- a/controllers/sensor/resource.go
+++ b/controllers/sensor/resource.go
@@ -167,17 +167,14 @@ func buildDeployment(args *AdaptorArgs, eventBus *eventbusv1alpha1.EventBus) (*a
encodedBusConfig := base64.StdEncoding.EncodeToString(busConfigBytes)
envVars = append(envVars, corev1.EnvVar{Name: common.EnvVarEventBusConfig, Value: encodedBusConfig})
- var authStrategy *eventbusv1alpha1.AuthStrategy
var accessSecret *corev1.SecretKeySelector
switch {
case eventBus.Status.Config.NATS != nil:
natsConf := eventBus.Status.Config.NATS
- authStrategy = natsConf.Auth
accessSecret = natsConf.AccessSecret
case eventBus.Status.Config.JetStream != nil:
jsConf := eventBus.Status.Config.JetStream
- authStrategy = &eventbusv1alpha1.AuthStrategyToken
- accessSecret = jsConf.Auth.Token
+ accessSecret = jsConf.AccessSecret
default:
return nil, errors.New("unsupported event bus")
}
@@ -190,7 +187,7 @@ func buildDeployment(args *AdaptorArgs, eventBus *eventbusv1alpha1.EventBus) (*a
})
volumeMounts = append(volumeMounts, corev1.VolumeMount{Name: emptyDirVolName, MountPath: "/tmp"})
- if authStrategy != nil && accessSecret != nil {
+ if accessSecret != nil {
// Mount the secret as volume instead of using envFrom to gain the ability
// for the sensor deployment to auto reload when the secret changes
volumes = append(volumes, corev1.Volume{
diff --git a/eventbus/driver.go b/eventbus/driver.go
index 051820f516..351c38b251 100644
--- a/eventbus/driver.go
+++ b/eventbus/driver.go
@@ -110,7 +110,7 @@ func GetAuth(ctx context.Context, eventBusConfig eventbusv1alpha1.BusConfig) (*e
case eventBusConfig.NATS != nil:
eventBusAuth = eventBusConfig.NATS.Auth
case eventBusConfig.JetStream != nil:
- eventBusAuth = &eventbusv1alpha1.AuthStrategyToken
+ eventBusAuth = &eventbusv1alpha1.AuthStrategyBasic
default:
return nil, errors.New("invalid event bus")
}
diff --git a/eventbus/jetstream/base/jetstream.go b/eventbus/jetstream/base/jetstream.go
index 22795e6215..52bb1b6929 100644
--- a/eventbus/jetstream/base/jetstream.go
+++ b/eventbus/jetstream/base/jetstream.go
@@ -71,6 +71,9 @@ func (stream *Jetstream) MakeConnection() (*JetstreamConnection, error) {
case eventbusv1alpha1.AuthStrategyToken:
log.Info("NATS auth strategy: Token")
opts = append(opts, nats.Token(stream.auth.Crendential.Token))
+ case eventbusv1alpha1.AuthStrategyBasic:
+ log.Info("NATS auth strategy: Basic")
+ opts = append(opts, nats.UserInfo(stream.auth.Crendential.Username, stream.auth.Crendential.Password))
case eventbusv1alpha1.AuthStrategyNone:
log.Info("NATS auth strategy: None")
default:
diff --git a/pkg/apis/eventbus/v1alpha1/generated.pb.go b/pkg/apis/eventbus/v1alpha1/generated.pb.go
index 71a4123f05..4c1cf129e9 100644
--- a/pkg/apis/eventbus/v1alpha1/generated.pb.go
+++ b/pkg/apis/eventbus/v1alpha1/generated.pb.go
@@ -216,38 +216,10 @@ func (m *EventBusStatus) XXX_DiscardUnknown() {
var xxx_messageInfo_EventBusStatus proto.InternalMessageInfo
-func (m *JetStreamAuth) Reset() { *m = JetStreamAuth{} }
-func (*JetStreamAuth) ProtoMessage() {}
-func (*JetStreamAuth) Descriptor() ([]byte, []int) {
- return fileDescriptor_871e47633eb7aad4, []int{6}
-}
-func (m *JetStreamAuth) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *JetStreamAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
-}
-func (m *JetStreamAuth) XXX_Merge(src proto.Message) {
- xxx_messageInfo_JetStreamAuth.Merge(m, src)
-}
-func (m *JetStreamAuth) XXX_Size() int {
- return m.Size()
-}
-func (m *JetStreamAuth) XXX_DiscardUnknown() {
- xxx_messageInfo_JetStreamAuth.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_JetStreamAuth proto.InternalMessageInfo
-
func (m *JetStreamBus) Reset() { *m = JetStreamBus{} }
func (*JetStreamBus) ProtoMessage() {}
func (*JetStreamBus) Descriptor() ([]byte, []int) {
- return fileDescriptor_871e47633eb7aad4, []int{7}
+ return fileDescriptor_871e47633eb7aad4, []int{6}
}
func (m *JetStreamBus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -275,7 +247,7 @@ var xxx_messageInfo_JetStreamBus proto.InternalMessageInfo
func (m *JetStreamConfig) Reset() { *m = JetStreamConfig{} }
func (*JetStreamConfig) ProtoMessage() {}
func (*JetStreamConfig) Descriptor() ([]byte, []int) {
- return fileDescriptor_871e47633eb7aad4, []int{8}
+ return fileDescriptor_871e47633eb7aad4, []int{7}
}
func (m *JetStreamConfig) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -303,7 +275,7 @@ var xxx_messageInfo_JetStreamConfig proto.InternalMessageInfo
func (m *NATSBus) Reset() { *m = NATSBus{} }
func (*NATSBus) ProtoMessage() {}
func (*NATSBus) Descriptor() ([]byte, []int) {
- return fileDescriptor_871e47633eb7aad4, []int{9}
+ return fileDescriptor_871e47633eb7aad4, []int{8}
}
func (m *NATSBus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -331,7 +303,7 @@ var xxx_messageInfo_NATSBus proto.InternalMessageInfo
func (m *NATSConfig) Reset() { *m = NATSConfig{} }
func (*NATSConfig) ProtoMessage() {}
func (*NATSConfig) Descriptor() ([]byte, []int) {
- return fileDescriptor_871e47633eb7aad4, []int{10}
+ return fileDescriptor_871e47633eb7aad4, []int{9}
}
func (m *NATSConfig) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -359,7 +331,7 @@ var xxx_messageInfo_NATSConfig proto.InternalMessageInfo
func (m *NativeStrategy) Reset() { *m = NativeStrategy{} }
func (*NativeStrategy) ProtoMessage() {}
func (*NativeStrategy) Descriptor() ([]byte, []int) {
- return fileDescriptor_871e47633eb7aad4, []int{11}
+ return fileDescriptor_871e47633eb7aad4, []int{10}
}
func (m *NativeStrategy) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -387,7 +359,7 @@ var xxx_messageInfo_NativeStrategy proto.InternalMessageInfo
func (m *PersistenceStrategy) Reset() { *m = PersistenceStrategy{} }
func (*PersistenceStrategy) ProtoMessage() {}
func (*PersistenceStrategy) Descriptor() ([]byte, []int) {
- return fileDescriptor_871e47633eb7aad4, []int{12}
+ return fileDescriptor_871e47633eb7aad4, []int{11}
}
func (m *PersistenceStrategy) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -419,7 +391,6 @@ func init() {
proto.RegisterType((*EventBusList)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.EventBusList")
proto.RegisterType((*EventBusSpec)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.EventBusSpec")
proto.RegisterType((*EventBusStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.EventBusStatus")
- proto.RegisterType((*JetStreamAuth)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.JetStreamAuth")
proto.RegisterType((*JetStreamBus)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.JetStreamBus")
proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.JetStreamBus.NodeSelectorEntry")
proto.RegisterType((*JetStreamConfig)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.JetStreamConfig")
@@ -435,122 +406,120 @@ func init() {
}
var fileDescriptor_871e47633eb7aad4 = []byte{
- // 1839 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xdd, 0x6e, 0x1b, 0xc7,
- 0x15, 0xd6, 0xea, 0x97, 0x1c, 0x52, 0x3f, 0x1c, 0x29, 0xcd, 0x5a, 0x88, 0x49, 0x83, 0x45, 0x0a,
- 0x15, 0xb1, 0x97, 0x75, 0x10, 0xb4, 0x6e, 0x6e, 0x5c, 0xae, 0x22, 0xd7, 0x72, 0x44, 0x47, 0x1d,
- 0x2a, 0x2e, 0x9a, 0x06, 0x75, 0x47, 0xab, 0x11, 0xb5, 0x12, 0x77, 0x87, 0xdd, 0x99, 0x25, 0xc4,
- 0x5e, 0x15, 0x7d, 0x82, 0xa0, 0x28, 0x8a, 0xbe, 0x41, 0x81, 0x3e, 0x40, 0x9f, 0xc1, 0x17, 0xbd,
- 0x08, 0x90, 0x8b, 0xe6, 0x8a, 0x88, 0x19, 0x14, 0x28, 0xd0, 0x37, 0xf0, 0x55, 0x31, 0xb3, 0xb3,
- 0x3f, 0xdc, 0x5d, 0xc6, 0x8a, 0x49, 0xd5, 0xc8, 0x95, 0x38, 0xe7, 0x9c, 0xf9, 0xce, 0xcf, 0x9c,
- 0x3d, 0xf3, 0x8d, 0xc0, 0xa3, 0x8e, 0xcd, 0xcf, 0xfc, 0x63, 0xc3, 0xa2, 0x4e, 0x03, 0x7b, 0x1d,
- 0xda, 0xf3, 0xe8, 0xb9, 0xfc, 0x71, 0x87, 0xf4, 0x89, 0xc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x98, 0xf6, 0x02, 0x8f, 0x24, 0x0e, 0x28, 0x05, 0x09, 0x7f,
+ 0x09, 0xc0, 0x40, 0xe9, 0x3b, 0xee, 0x6f, 0xa2, 0xcb, 0xfd, 0x6b, 0xff, 0x54, 0xb4, 0xa2, 0xbf,
+ 0xad, 0xad, 0x9f, 0x05, 0xd8, 0x17, 0xf2, 0xfd, 0x50, 0xb3, 0xf7, 0x38, 0x46, 0x41, 0x29, 0x44,
+ 0xdb, 0x7a, 0xf6, 0xbc, 0x3e, 0xf7, 0xf9, 0xf3, 0xfa, 0xdc, 0x17, 0xcf, 0xeb, 0x73, 0xbf, 0x1d,
+ 0xd7, 0x8d, 0x67, 0xe3, 0xba, 0xf1, 0xf9, 0xb8, 0x6e, 0x7c, 0x31, 0xae, 0x1b, 0x5f, 0x8e, 0xeb,
+ 0xc6, 0x67, 0x5f, 0xd5, 0xe7, 0x3e, 0x29, 0x47, 0xd7, 0xca, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff,
+ 0x51, 0xbc, 0x0d, 0x68, 0x5b, 0x1a, 0x00, 0x00,
}
func (m *BusConfig) Marshal() (dAtA []byte, err error) {
@@ -840,41 +809,6 @@ func (m *EventBusStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *JetStreamAuth) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
-}
-
-func (m *JetStreamAuth) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *JetStreamAuth) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.Token != nil {
- {
- size, err := m.Token.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintGenerated(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
-}
-
func (m *JetStreamBus) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -1113,9 +1047,9 @@ func (m *JetStreamConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintGenerated(dAtA, i, uint64(len(m.StreamConfig)))
i--
dAtA[i] = 0x1a
- if m.Auth != nil {
+ if m.AccessSecret != nil {
{
- size, err := m.Auth.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.AccessSecret.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -1637,19 +1571,6 @@ func (m *EventBusStatus) Size() (n int) {
return n
}
-func (m *JetStreamAuth) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Token != nil {
- l = m.Token.Size()
- n += 1 + l + sovGenerated(uint64(l))
- }
- return n
-}
-
func (m *JetStreamBus) Size() (n int) {
if m == nil {
return 0
@@ -1741,8 +1662,8 @@ func (m *JetStreamConfig) Size() (n int) {
_ = l
l = len(m.URL)
n += 1 + l + sovGenerated(uint64(l))
- if m.Auth != nil {
- l = m.Auth.Size()
+ if m.AccessSecret != nil {
+ l = m.AccessSecret.Size()
n += 1 + l + sovGenerated(uint64(l))
}
l = len(m.StreamConfig)
@@ -1989,16 +1910,6 @@ func (this *EventBusStatus) String() string {
}, "")
return s
}
-func (this *JetStreamAuth) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&JetStreamAuth{`,
- `Token:` + strings.Replace(fmt.Sprintf("%v", this.Token), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
- `}`,
- }, "")
- return s
-}
func (this *JetStreamBus) String() string {
if this == nil {
return "nil"
@@ -2052,7 +1963,7 @@ func (this *JetStreamConfig) String() string {
}
s := strings.Join([]string{`&JetStreamConfig{`,
`URL:` + fmt.Sprintf("%v", this.URL) + `,`,
- `Auth:` + strings.Replace(this.Auth.String(), "JetStreamAuth", "JetStreamAuth", 1) + `,`,
+ `AccessSecret:` + strings.Replace(fmt.Sprintf("%v", this.AccessSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
`StreamConfig:` + fmt.Sprintf("%v", this.StreamConfig) + `,`,
`}`,
}, "")
@@ -2931,92 +2842,6 @@ func (m *EventBusStatus) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *JetStreamAuth) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowGenerated
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: JetStreamAuth: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: JetStreamAuth: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowGenerated
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthGenerated
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthGenerated
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Token == nil {
- m.Token = &v1.SecretKeySelector{}
- }
- if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipGenerated(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthGenerated
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
func (m *JetStreamBus) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
@@ -3811,7 +3636,7 @@ func (m *JetStreamConfig) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Auth", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field AccessSecret", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -3838,10 +3663,10 @@ func (m *JetStreamConfig) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Auth == nil {
- m.Auth = &JetStreamAuth{}
+ if m.AccessSecret == nil {
+ m.AccessSecret = &v1.SecretKeySelector{}
}
- if err := m.Auth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.AccessSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
diff --git a/pkg/apis/eventbus/v1alpha1/generated.proto b/pkg/apis/eventbus/v1alpha1/generated.proto
index 6dbf07aae1..d1ba710df9 100644
--- a/pkg/apis/eventbus/v1alpha1/generated.proto
+++ b/pkg/apis/eventbus/v1alpha1/generated.proto
@@ -89,12 +89,6 @@ message EventBusStatus {
optional BusConfig config = 2;
}
-message JetStreamAuth {
- // Secret for auth token
- // +optional
- optional k8s.io.api.core.v1.SecretKeySelector token = 1;
-}
-
// JetStreamBus holds the JetStream EventBus information
message JetStreamBus {
// JetStream version, such as "2.7.3"
@@ -195,7 +189,9 @@ message JetStreamConfig {
// JetStream (Nats) URL
optional string url = 1;
- optional JetStreamAuth auth = 2;
+ // Secret for auth
+ // +optional
+ optional k8s.io.api.core.v1.SecretKeySelector accessSecret = 2;
// +optional
optional string streamConfig = 3;
diff --git a/pkg/apis/eventbus/v1alpha1/jetstream_eventbus.go b/pkg/apis/eventbus/v1alpha1/jetstream_eventbus.go
index 8b7d3122e1..81f69a883e 100644
--- a/pkg/apis/eventbus/v1alpha1/jetstream_eventbus.go
+++ b/pkg/apis/eventbus/v1alpha1/jetstream_eventbus.go
@@ -96,14 +96,10 @@ func (j JetStreamBus) GetReplicas() int {
type JetStreamConfig struct {
// JetStream (Nats) URL
- URL string `json:"url,omitempty" protobuf:"bytes,1,opt,name=url"`
- Auth *JetStreamAuth `json:"auth,omitempty" protobuf:"bytes,2,opt,name=auth"`
+ URL string `json:"url,omitempty" protobuf:"bytes,1,opt,name=url"`
+ // Secret for auth
// +optional
- StreamConfig string `json:"streamConfig,omitempty" protobuf:"bytes,3,opt,name=streamConfig"`
-}
-
-type JetStreamAuth struct {
- // Secret for auth token
+ AccessSecret *corev1.SecretKeySelector `json:"accessSecret,omitempty" protobuf:"bytes,2,opt,name=accessSecret"`
// +optional
- Token *corev1.SecretKeySelector `json:"token,omitempty" protobuf:"bytes,1,opt,name=token"`
+ StreamConfig string `json:"streamConfig,omitempty" protobuf:"bytes,3,opt,name=streamConfig"`
}
diff --git a/pkg/apis/eventbus/v1alpha1/nats_eventbus.go b/pkg/apis/eventbus/v1alpha1/nats_eventbus.go
index df0fa70e61..dd557b8dca 100644
--- a/pkg/apis/eventbus/v1alpha1/nats_eventbus.go
+++ b/pkg/apis/eventbus/v1alpha1/nats_eventbus.go
@@ -20,6 +20,7 @@ type AuthStrategy string
var (
AuthStrategyNone AuthStrategy = "none"
AuthStrategyToken AuthStrategy = "token"
+ AuthStrategyBasic AuthStrategy = "basic"
)
// NativeStrategy indicates to install a native NATS service
diff --git a/pkg/apis/eventbus/v1alpha1/openapi_generated.go b/pkg/apis/eventbus/v1alpha1/openapi_generated.go
index 45aeb984a4..b5712d128b 100644
--- a/pkg/apis/eventbus/v1alpha1/openapi_generated.go
+++ b/pkg/apis/eventbus/v1alpha1/openapi_generated.go
@@ -36,7 +36,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
"github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.EventBusList": schema_pkg_apis_eventbus_v1alpha1_EventBusList(ref),
"github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.EventBusSpec": schema_pkg_apis_eventbus_v1alpha1_EventBusSpec(ref),
"github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.EventBusStatus": schema_pkg_apis_eventbus_v1alpha1_EventBusStatus(ref),
- "github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.JetStreamAuth": schema_pkg_apis_eventbus_v1alpha1_JetStreamAuth(ref),
"github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.JetStreamBus": schema_pkg_apis_eventbus_v1alpha1_JetStreamBus(ref),
"github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.JetStreamConfig": schema_pkg_apis_eventbus_v1alpha1_JetStreamConfig(ref),
"github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.NATSBus": schema_pkg_apis_eventbus_v1alpha1_NATSBus(ref),
@@ -268,26 +267,6 @@ func schema_pkg_apis_eventbus_v1alpha1_EventBusStatus(ref common.ReferenceCallba
}
}
-func schema_pkg_apis_eventbus_v1alpha1_JetStreamAuth(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "token": {
- SchemaProps: spec.SchemaProps{
- Description: "Secret for auth token",
- Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
- },
- },
- },
- },
- },
- Dependencies: []string{
- "k8s.io/api/core/v1.SecretKeySelector"},
- }
-}
-
func schema_pkg_apis_eventbus_v1alpha1_JetStreamBus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
@@ -471,9 +450,10 @@ func schema_pkg_apis_eventbus_v1alpha1_JetStreamConfig(ref common.ReferenceCallb
Format: "",
},
},
- "auth": {
+ "accessSecret": {
SchemaProps: spec.SchemaProps{
- Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.JetStreamAuth"),
+ Description: "Secret for auth",
+ Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"streamConfig": {
@@ -486,7 +466,7 @@ func schema_pkg_apis_eventbus_v1alpha1_JetStreamConfig(ref common.ReferenceCallb
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1.JetStreamAuth"},
+ "k8s.io/api/core/v1.SecretKeySelector"},
}
}
diff --git a/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
index cc286bfa11..02aa747ccb 100644
--- a/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
+++ b/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
@@ -180,27 +180,6 @@ func (in *EventBusStatus) DeepCopy() *EventBusStatus {
return out
}
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *JetStreamAuth) DeepCopyInto(out *JetStreamAuth) {
- *out = *in
- if in.Token != nil {
- in, out := &in.Token, &out.Token
- *out = new(v1.SecretKeySelector)
- (*in).DeepCopyInto(*out)
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JetStreamAuth.
-func (in *JetStreamAuth) DeepCopy() *JetStreamAuth {
- if in == nil {
- return nil
- }
- out := new(JetStreamAuth)
- in.DeepCopyInto(out)
- return out
-}
-
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *JetStreamBus) DeepCopyInto(out *JetStreamBus) {
*out = *in
@@ -299,9 +278,9 @@ func (in *JetStreamBus) DeepCopy() *JetStreamBus {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *JetStreamConfig) DeepCopyInto(out *JetStreamConfig) {
*out = *in
- if in.Auth != nil {
- in, out := &in.Auth, &out.Auth
- *out = new(JetStreamAuth)
+ if in.AccessSecret != nil {
+ in, out := &in.AccessSecret, &out.AccessSecret
+ *out = new(v1.SecretKeySelector)
(*in).DeepCopyInto(*out)
}
return