Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes # Check for Password to Redis on Cloud #573

Merged
merged 1 commit into from
May 9, 2024

Conversation

amarflybot
Copy link
Contributor

When we connect to Redis on Cloud, we generally do not need password and username. We can just be done with TLS.

We need to pass a dummy username and password, which is anyways not valid but the service starts as the server reject the password and goes ahead with TLS connection.

apiVersion: sources.knative.dev/v1alpha1
kind: RedisStreamSource
metadata:
  name: samplesource
  namespace: user1
spec:
  address: "rediss://default:password@amaaaaaa74akfsaami2pqxkiosy2gsfsv22fszx77pkb5yj2gemfbqj37lwa-p.redis.us-ashburn-1.oci.oraclecloud.com:6379"
  stream: teststream
  sink:
    ref:
      apiVersion: serving.knative.dev/v1
      kind: Service
      name: event-display

Proposed Changes

  • Drop the if condition for mandatory password check in URL.

When we connect to Redis on Cloud, we generally do not need password and username. We can just be done with TLS. 

So with the If check, we need to pass a dummy username and password, which is anyways not valid but the service starts as the server reject the password and goes ahead with TLS connection.

```
apiVersion: sources.knative.dev/v1alpha1
kind: RedisStreamSource
metadata:
  name: samplesource
  namespace: user1
spec:
  address: "rediss://default:password@amaaaaaa74akfsaami2pqxkiosy2gsfsv22fszx77pkb5yj2gemfbqj37lwa-p.redis.us-ashburn-1.oci.oraclecloud.com:6379"
  stream: teststream
  sink:
    ref:
      apiVersion: serving.knative.dev/v1
      kind: Service
      name: event-display
```
@knative-prow knative-prow bot requested review from aliok and Cali0707 May 9, 2024 07:10
Copy link

knative-prow bot commented May 9, 2024

Welcome @amarflybot! It looks like this is your first PR to knative-extensions/eventing-redis 🎉

@knative-prow knative-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 9, 2024
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

/ok-to-test
/lgtm
/approve

@knative-prow knative-prow bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label May 9, 2024
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 9, 2024
Copy link

knative-prow bot commented May 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amarflybot, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 9, 2024
@pierDipi
Copy link
Member

pierDipi commented May 9, 2024

/cherry-pick release-1.14

@knative-prow-robot
Copy link

@pierDipi: once the present PR merges, I will cherry-pick it on top of release-1.14 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.14

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@pierDipi
Copy link
Member

pierDipi commented May 9, 2024

/cherry-pick release-1.13

@knative-prow-robot
Copy link

@pierDipi: once the present PR merges, I will cherry-pick it on top of release-1.13 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.13

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow knative-prow bot merged commit 02dcb8b into knative-extensions:main May 9, 2024
19 checks passed
@knative-prow-robot
Copy link

@pierDipi: new pull request created: #576

In response to this:

/cherry-pick release-1.14

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow-robot
Copy link

@pierDipi: new pull request created: #577

In response to this:

/cherry-pick release-1.13

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants