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 attribute admin username for authproxy #14583

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

reasonerjt
Copy link
Contributor

This commit adds the attribute "http_authproxy_admin_usernames", which
is string that contains usernames separated by comma, when a user logs
in and the username in the tokenreview status matches the setting of
this attribute, the user will have administrator permission.

Signed-off-by: Daniel Jiang jiangd@vmware.com

@codecov
Copy link

codecov bot commented Apr 7, 2021

Codecov Report

Merging #14583 (ad8eee8) into master (85c08d6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14583   +/-   ##
=======================================
  Coverage   65.62%   65.63%           
=======================================
  Files         923      923           
  Lines       69402    69407    +5     
  Branches     2101     2101           
=======================================
+ Hits        45547    45556    +9     
+ Misses      19906    19899    -7     
- Partials     3949     3952    +3     
Flag Coverage Δ
unittests 65.63% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/common/models/config.go 100.00% <ø> (ø)
src/core/auth/authproxy/auth.go 46.84% <100.00%> (ø)
src/core/config/config.go 78.35% <100.00%> (+0.11%) ⬆️
src/pkg/authproxy/http.go 78.33% <100.00%> (+1.54%) ⬆️
src/server/middleware/security/auth_proxy.go 34.69% <100.00%> (ø)
src/jobservice/worker/cworker/c_worker.go 66.50% <0.00%> (-1.92%) ⬇️
src/portal/src/app/shared/units/shared.utils.ts 23.07% <0.00%> (-1.29%) ⬇️
src/controller/event/topic.go 10.81% <0.00%> (+1.80%) ⬆️
...es/vulnerability/vulnerability-config.component.ts 52.99% <0.00%> (+5.98%) ⬆️

@reasonerjt reasonerjt force-pushed the authproxy-admin-username branch from 5764eb2 to 4f528fd Compare April 7, 2021 07:00
This commit adds the attribute "http_authproxy_admin_usernames", which
is string that contains usernames separated by comma, when a user logs
in and the username in the tokenreview status matches the setting of
this attribute, the user will have administrator permission.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
@reasonerjt reasonerjt force-pushed the authproxy-admin-username branch from 4f528fd to ad8eee8 Compare April 7, 2021 10:15
@stonezdj stonezdj merged commit 8d6f4dd into goharbor:master Apr 8, 2021
@reasonerjt reasonerjt deleted the authproxy-admin-username branch September 21, 2021 11:11
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