Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Plugins for flyteadmin server middleware #420

Merged
merged 14 commits into from
May 19, 2022
Merged

Plugins for flyteadmin server middleware #420

merged 14 commits into from
May 19, 2022

Conversation

katrogan
Copy link
Contributor

@katrogan katrogan commented May 6, 2022

TL;DR

Enables flexibility in flyteadmin serving, such as custom authentication/audit logging middleware, authorization hooks and more

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

fixes flyteorg/flyte#2507

Follow-up issue

NA

Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
@codecov
Copy link

codecov bot commented May 6, 2022

Codecov Report

Merging #420 (dec1eaa) into master (b3bce05) will increase coverage by 0.11%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master     #420      +/-   ##
==========================================
+ Coverage   61.18%   61.29%   +0.11%     
==========================================
  Files         154      155       +1     
  Lines       11081    11090       +9     
==========================================
+ Hits         6780     6798      +18     
+ Misses       3597     3588       -9     
  Partials      704      704              
Flag Coverage Δ
unittests 60.22% <77.77%> (+0.09%) ⬆️

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

Impacted Files Coverage Δ
pkg/rpc/adminservice/base.go 4.04% <0.00%> (-0.09%) ⬇️
plugins/registry.go 100.00% <ø> (ø)
auth/interceptor.go 100.00% <100.00%> (ø)
auth/identity_context.go 29.72% <0.00%> (+29.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3bce05...dec1eaa. Read the comment docs.

Signed-off-by: Katrina Rogan <[email protected]>
@katrogan katrogan marked this pull request as draft May 17, 2022 20:46
katrogan added 3 commits May 17, 2022 13:51
Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
@katrogan katrogan changed the title wip/ignore Authz plugin Plugins for flyteadmin server middleware May 18, 2022
Signed-off-by: Katrina Rogan <[email protected]>
@katrogan katrogan marked this pull request as ready for review May 18, 2022 19:47
Copy link
Contributor

@EngHabu EngHabu left a comment

Choose a reason for hiding this comment

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

Awesome timing!!

@evalsocket, this is how you will also be able to plug vendor-specific API Tracing to admin...

@katrogan katrogan merged commit d0bda09 into master May 19, 2022
@katrogan katrogan deleted the authz branch May 19, 2022 02:11
katrogan pushed a commit that referenced this pull request May 19, 2022
katrogan pushed a commit that referenced this pull request May 19, 2022
This reverts commit d0bda09.

Signed-off-by: Katrina Rogan <[email protected]>
katrogan pushed a commit that referenced this pull request May 19, 2022
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Core feature] Plugin mode for flyteadmin server middleware
2 participants