Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

fix(secret-service): changed too big key or name status (#5479) #5631

Merged
merged 4 commits into from Oct 13, 2021

Conversation

RealAnna
Copy link
Contributor

Signed-off-by: RealAnna anna.reale@dynatrace.com

This PR

  • changes handler so that too big name or key returns httpstatus 400

Related Issues

Fixes #5479

Notes

Follow-up Tasks

How to test

changed handler so that too big name or key returns httpstatus 400

Signed-off-by: RealAnna <anna.reale@dynatrace.com>
@RealAnna RealAnna requested a review from a team as a code owner October 12, 2021 10:08
@codecov
Copy link

codecov bot commented Oct 12, 2021

Codecov Report

Merging #5631 (d134995) into master (b3cd48f) will decrease coverage by 0.62%.
The diff coverage is 47.61%.

❗ Current head d134995 differs from pull request most recent head a5d9cba. Consider uploading reports for the commit a5d9cba to get more accurate results

@@            Coverage Diff             @@
##           master    #5631      +/-   ##
==========================================
- Coverage   55.12%   54.50%   -0.63%     
==========================================
  Files         322      313       -9     
  Lines       18778    18484     -294     
  Branches      962      973      +11     
==========================================
- Hits        10352    10074     -278     
+ Misses       7519     7514       -5     
+ Partials      907      896      -11     
Impacted Files Coverage Δ
...te-secret-form/ktb-create-secret-form.component.ts 100.00% <ø> (ø)
...nts/ktb-secrets-list/ktb-secrets-list.component.ts 54.54% <ø> (ø)
bridge/client/app/_models/root.ts 5.82% <0.00%> (ø)
bridge/client/app/_models/trace.ts 48.03% <0.00%> (-0.48%) ⬇️
bridge/client/app/_services/data.service.ts 22.38% <0.00%> (-1.12%) ⬇️
bridge/shared/models/service.ts 36.36% <0.00%> (-30.31%) ⬇️
shipyard-controller/handler/projectmanager.go 76.22% <ø> (-0.18%) ⬇️
shipyard-controller/main.go 6.50% <0.00%> (+0.03%) ⬆️
bridge/client/app/_models/project.ts 52.38% <50.00%> (-8.20%) ⬇️
shipyard-controller/handler/sequencedispatcher.go 68.47% <56.25%> (-1.76%) ⬇️
... and 28 more

Signed-off-by: RealAnna <anna.reale@dynatrace.com>
@RealAnna RealAnna self-assigned this Oct 12, 2021
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Oct 13, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2021

Docker Build Report

  • Pushed keptn/secret-service:0.10.0-dev-PR-5631.202110130904 and keptn/secret-service:0.10.0-dev-PR-5631 (Source: secret-service/)

@RealAnna RealAnna merged commit a5c70d5 into master Oct 13, 2021
@RealAnna RealAnna deleted the fix/5479/change-status-code-for-too-long-key branch November 2, 2021 15:03
carpe-github pushed a commit to carpe-github/keptn that referenced this pull request Nov 4, 2021
…eptn#5631)

* fix(secret-service): changed too big key or name status (keptn#5479)

changed handler so that too big name or key returns httpstatus 400

Signed-off-by: RealAnna <anna.reale@dynatrace.com>

* fix(secret-service): meaningful error message (keptn#5479)

Signed-off-by: RealAnna <anna.reale@dynatrace.com>

* fix(secret-service): moved error handling to k8s backend

Signed-off-by: RealAnna <anna.reale@dynatrace.com>

* fix(secret-service): reviewed backend test

Signed-off-by: RealAnna <anna.reale@dynatrace.com>
Signed-off-by: Gevorg Iskandaryan <gevorg.iskandaryan@dynatrace.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

secret-service should not throw a 500 status code if there are too many characters for the secret name or key
2 participants