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

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

Closed
Kirdock opened this issue Oct 4, 2021 · 0 comments · Fixed by #5631
Assignees
Labels
area:core type:bug Something is not working as intended/documented
Milestone

Comments

@Kirdock
Copy link
Contributor

Kirdock commented Oct 4, 2021

If a secret name or secret key with more than 253 characters is created or updated (POST /secret and PUT /secret), the secret service returns a 500 instead of a 400 status code.

Further endpoints could be affected by the same issue.

@Kirdock Kirdock added type:bug Something is not working as intended/documented area:core ready-for-refinement Issue is relevant for the next backlog refinment labels Oct 4, 2021
@Kirdock Kirdock added this to Ready for refinement in Refinement board Oct 4, 2021
@thisthat thisthat modified the milestones: 0.11.0 (Bridge), 0.11.0 Oct 5, 2021
@johannes-b johannes-b changed the title Secret service should not throw a 500 status code if there are too many characters for the secret name or key secret-service should not throw a 500 status code if there are too many characters for the secret name or key Oct 11, 2021
@thisthat thisthat modified the milestones: 0.11.0, 0.10.0 Oct 12, 2021
RealAnna added a commit that referenced this issue Oct 12, 2021
changed handler so that too big name or key returns httpstatus 400

Signed-off-by: RealAnna <anna.reale@dynatrace.com>
RealAnna added a commit that referenced this issue Oct 12, 2021
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
@johannes-b johannes-b removed the ready-for-refinement Issue is relevant for the next backlog refinment label Oct 12, 2021
RealAnna added a commit that referenced this issue Oct 13, 2021
* fix(secret-service): changed too big key or name status (#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 (#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>
@johannes-b johannes-b removed this from Ready for refinement in Refinement board Nov 3, 2021
carpe-github pushed a commit to carpe-github/keptn that referenced this issue 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
area:core type:bug Something is not working as intended/documented
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants