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

How can I override the Access Control/Groups in Product for upper environments. #431

Closed
vinilka8 opened this issue Dec 4, 2023 · 9 comments
Labels
question Further information is requested

Comments

@vinilka8
Copy link

vinilka8 commented Dec 4, 2023

Please describe the feature.

Hi Guys

How do we override the ACCESS CONTROL in the PRODUCT for the upper environment, from DEV to QA using configuration file?

DEV APIM Instance has a product, that has an access control assigned to Administrators and Developers
image
image

QA APIM Instance should also have a product BUT in this case the one of the roles should be different, instead of Developers we need ITOperations.

Thanks

Copy link

github-actions bot commented Dec 4, 2023

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

@waelkdouh waelkdouh added the question Further information is requested label Dec 4, 2023
@guythetechie
Copy link
Contributor

@vinilka8 - try overriding your QA configuration file like this:

products:
  - name: user
    groups:
      - administrators
      - ITOperations

@waelkdouh waelkdouh changed the title [FEATURE REQ] - I would like to have a capability to override the Access Control in Product for upper environments. How can I override the Access Control/Groups in Product for upper environments. Dec 5, 2023
@vinilka8
Copy link
Author

vinilka8 commented Dec 5, 2023

Hello @guythetechie

I have tried your suggestion it's something I was looking for, but it's not working, unfortunately.
image

in my sample I have used Administrators and Developers, so in a DEV environment I have removed developers, but adding developers into QA environment
image
image

still only administrators in QA,
image

@vinilka8
Copy link
Author

Hi Guys

Any updates?

Thanks

@guythetechie
Copy link
Contributor

guythetechie commented Dec 12, 2023

  1. Can you check that the administrators group already exists in QA? ApiOps will not create groups for you, it will just link products to existing groups.
  2. You can enable debug logging to see which URLs get called by ApiOps. Can you look at your logs and see which calls are made when it processes product groups?

@vinilka8
Copy link
Author

vinilka8 commented Dec 12, 2023

  1. yes, I can confirm that the Administrators group already exists in QA, I have manually assigned administrators and developers to a product access control, BUT the APIOPS pipeline doesn't do that
    image
  2. by default I am running debug logging - in a new case I am trying to assign 'Guests' to my product, but the pipeline still doesn't do the work, I still don't see guests assigned to a product.
    image
    image

Yes, I am aware that APIOps will just link product to existing groups, but it's not the case

@guythetechie
Copy link
Contributor

Can you share your publisher pipeline logs with any sensitive information scrubbed? If you're concerned about posting scrubbed logs here, feel free to create a private Git repo, put your logs there, and invite me.

@vinilka8
Copy link
Author

image
those only debug logs I have obtained, I don't see what payload is passed into rest api

@guythetechie
Copy link
Contributor

You need to enable trace logging to show the payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants