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

fix: generate secret from json string #1088

Merged
merged 2 commits into from Aug 23, 2023

Conversation

FushuWang
Copy link
Contributor

Motivation

The content that decodes from the secret is not correct, because it has backslashes.

"{\"client_id\":\"b097d864-4b4d-0020-a34e-0929dkjslkj29\",\"client_secret\":\"XFXXXXXXX_51ZijnihaoVqGJbbzk\"}"

The correct format should be like this

{"client_id":"b097d864-4b4d-0020-a34e-0929dkjslkj29","client_secret":"XFXXXXXXX_51ZijnihaoVqGJbbzk"}

Modifications

Use the fromYaml first before the toJson.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@FushuWang FushuWang requested review from sijie, addisonj and a team as code owners August 18, 2023 11:16
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Aug 18, 2023
zerbitx
zerbitx previously approved these changes Aug 18, 2023
@ericsyh ericsyh requested a review from a team August 19, 2023 01:50
@ericsyh
Copy link
Member

ericsyh commented Aug 19, 2023

@FushuWang pls help update the slim chart https://github.com/streamnative/charts/blob/master/charts/sn-platform-slim/templates/broker/broker-secret.yaml#L23

@ericsyh
Copy link
Member

ericsyh commented Aug 19, 2023

@tuteng PTAL

@ericsyh ericsyh added this to the sn-platform-1.11 milestone Aug 19, 2023
@FushuWang FushuWang merged commit 62a1df3 into master Aug 23, 2023
4 checks passed
@FushuWang FushuWang deleted the fswang/fix-generate-secret-from-json branch August 23, 2023 07:01
ericsyh pushed a commit that referenced this pull request Aug 24, 2023
* fix: generate secret from json string

* fix: generate secret from json string for sn-platform-slim

(cherry picked from commit 62a1df3)
ericsyh pushed a commit that referenced this pull request Aug 24, 2023
* fix: generate secret from json string

* fix: generate secret from json string for sn-platform-slim

(cherry picked from commit 62a1df3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-need-doc This pr does not need any document release/1.10.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants