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

Ingress Urls User level access Issue #2659

Merged
merged 8 commits into from
Nov 19, 2022
Merged

Ingress Urls User level access Issue #2659

merged 8 commits into from
Nov 19, 2022

Conversation

gireesh-naidu
Copy link
Member

@gireesh-naidu gireesh-naidu commented Nov 19, 2022

Description

Fixed the access denied issue while fetching urls of service and manifest for non super-admins.

Fixes #2660

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
test-cases

  • Tested for non-super admin users

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


@gireesh-naidu gireesh-naidu marked this pull request as ready for review November 19, 2022 08:17
@gireesh-naidu gireesh-naidu requested review from nishant-d and kripanshdevtron and removed request for nishant-d November 19, 2022 08:18
@kripanshdevtron kripanshdevtron changed the title Urls No-access issue Ingress Urls User level access Issue Nov 19, 2022
@kripanshdevtron kripanshdevtron added the bug Something isn't working label Nov 19, 2022
appId, err := strconv.Atoi(appIdParam)
if err != nil {
handler.logger.Errorw("error in parsing appId from request body", "appId", appIdParam, "err", err)
common.WriteJsonResp(w, fmt.Errorf("error in parsing appId : %s must be integer", envIdParam), nil, http.StatusBadRequest)
Copy link
Contributor

Choose a reason for hiding this comment

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

use appIdParam instead of envIdParam

return
}
} else {
object := handler.enforcerUtil.GetAppRBACNameByAppId(appId)
Copy link
Contributor

Choose a reason for hiding this comment

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

do we still need to check again??

@gireesh-naidu gireesh-naidu merged commit c2441cb into main Nov 19, 2022
@gireesh-naidu gireesh-naidu deleted the urls_hot_fix branch November 19, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Urls API is not showing urls even user can see them in the manifests
2 participants