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

feat(authz-mapping): expose authz mapping endpoint #1006

Merged
merged 4 commits into from
Oct 9, 2019
Merged

Conversation

vpsx
Copy link
Contributor

@vpsx vpsx commented Oct 7, 2019

related Arborist PR here uc-cdis/arborist#110
related Windmill PR here uc-cdis/data-portal#592

New Features

expose arborist's /auth/mapping endpoint (to GET requests only, and without passing the username query param)

@vpsx vpsx force-pushed the feat/authz-mapping branch from 804fc7d to 4e3db19 Compare October 7, 2019 19:56
@vpsx vpsx force-pushed the feat/authz-mapping branch from 4e3db19 to 925dfa2 Compare October 7, 2019 19:59
Copy link
Contributor

@frickjack frickjack left a comment

Choose a reason for hiding this comment

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

I think the nginx proxy mapping is a little off ...


set $upstream http://${arborist_release_name}-service.$namespace.svc.cluster.local;

proxy_pass $upstream/auth/mapping?username=$arg_username;
Copy link
Contributor

Choose a reason for hiding this comment

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

what is $arg_username?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the username query string for the endpoint--if I leave it out then nginx seems to not pass the query args to arborist

Copy link
Contributor

@frickjack frickjack left a comment

Choose a reason for hiding this comment

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

Awesome!

@vpsx vpsx merged commit fba7317 into master Oct 9, 2019
@vpsx vpsx deleted the feat/authz-mapping branch October 9, 2019 20:02
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.

2 participants