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

Add auth subgroups #108

Merged
merged 11 commits into from
May 19, 2022
Merged

Add auth subgroups #108

merged 11 commits into from
May 19, 2022

Conversation

runefa
Copy link
Collaborator

@runefa runefa commented May 19, 2022


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

@runefa runefa changed the title Authconfig Add auth subgroups May 19, 2022
@runefa runefa marked this pull request as ready for review May 19, 2022 20:36
Copy link
Collaborator

@StrawnSC StrawnSC left a comment

Choose a reason for hiding this comment

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

Haven't tested it yet, but I have a few initial thoughts based on reading the code.

Don't forget to follow the linter prompts (like adding help text etc.)

Thanks for making this change; it looks very tedious :(

src/containerapp/azext_containerapp/commands.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/custom.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/custom.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/custom.py Outdated Show resolved Hide resolved
@@ -38,7 +38,8 @@

# TODO: Add any additional SDK dependencies here
DEPENDENCIES = [
'azure-cli-core'
'azure-cli-core',
'azure-mgmt-appcontainers==1.0.0'
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice

Copy link
Collaborator

Choose a reason for hiding this comment

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

any reason we are adding the SDK here? this will install the SDK - the idea was to do this when we move to core-cli & make changes to use SDK

Copy link
Collaborator

Choose a reason for hiding this comment

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

@StrawnSC I see you already merged this - please remove the SDK pkg added to the dependency. I see my above comment got ignored since this was marked resolved originally

src/containerapp/azext_containerapp/custom.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/custom.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/_params.py Outdated Show resolved Hide resolved
src/containerapp/azext_containerapp/_constants.py Outdated Show resolved Hide resolved
@StrawnSC
Copy link
Collaborator

could you also add info on this feature to the history.rst entry?

Haroon Feisal added 2 commits May 19, 2022 18:31
…ods. Added comments to separate auth params, ignored disable_max_length on secrets. Use stable_api_version for client instead of hardcoding. Remove is_preview from containerapp main command group. Added flag to disable max secret length. Removed pylint disable unused-argument comments. Refactored some code.
with self.command_group('containerapp auth openid-connect', client_factory=auth_config_client_factory) as g:
g.custom_show_command('show', 'get_openid_connect_provider_settings')
g.custom_command('add', 'add_openid_connect_provider_settings', exception_handler=ex_handler_factory())
g.custom_command('update', 'update_openid_connect_provider_settings', exception_handler=ex_handler_factory())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Curious any reason this sub-group alone has add & remove?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All the other providers are unique (one per CA) except for providers, so there is no way of updating them if the provider name changes, since that will be considered a different identity provider. That's my understanding of it anyways, I tried to follow the webapp spec as much as possible.

Copy link
Collaborator

@panchagnula panchagnula left a comment

Choose a reason for hiding this comment

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

A few comments to address

@StrawnSC StrawnSC merged commit 8d31890 into calvinsID:containerapp-0.3.5 May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants