Skip to content

Conversation

@rahmatrhd
Copy link
Member

Changes:

swallowstalker and others added 4 commits February 16, 2023 10:05
* feat(idtoken-auth): add auth validator using google idtoken

* docs: add idtoken validation on sample config.yaml

* feat: add auth config to replace idtoken validator config, and refactor default auth header key

* refactor: move auth interceptor to pkg/auth

* chore: delete idtoken validator mock

* feat: keep config.AuthenticatedUserHeaderKey for backward-compatibility

* chore: re-order import

* refactor: change sample config.yaml for auth config

* chore: make auth user header key sample and default config consistent

* chore: re-order import on oidc test

* fix: change oidc initialism

* fix: oidc validator mocks renaming

* fix: avoid using params with pointer, as it will lead to panic if params is nil

* fix: detect old auth user header key using empty string instead of default tag

* refactor: move OIDCAuth to pkg/auth

* refactor: move oidc validator mocks into pkg/auth/mocks

* chore: add deprecation notes on AuthenticatedUserHeaderKey

* refactor: make default auth email context key back to unexported, use different context key for oidc email

* refactor: do not use default header key on oidc auth, use its own header (it's only used for logrus)

* refactor: move logrus context custom fields to new interceptor and retrieve its value from context

* refactor: auth email context key mapping for default and oidc used for grpc server

* test: change ways of getting user email from request header to context

* refactor: use auth.OIDCAuth instead of OIDCValidatorParams
* feat(gcs): support import grants for gcs provider

* refactor(gcs): use projectID value from struct field and remove from GetBuckets' param

* refactor(gcs): refactor repeated logic to retrieve gcs client

* refactor(gcs): improve code readability
* refactor(gcs): use account type whitelisting

* fix(gcs): exclude deleted principals
@rahmatrhd rahmatrhd requested a review from haveiss February 20, 2023 05:05
@rahmatrhd rahmatrhd self-assigned this Feb 20, 2023
@rahmatrhd rahmatrhd changed the title v0.6.0 feat: v0.6.0 Feb 20, 2023
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4220238386

  • 80 of 133 (60.15%) changed or added relevant lines in 4 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 75.061%

Changes Missing Coverage Covered Lines Changed/Added Lines %
api/handler/v1beta1/grpc.go 13 14 92.86%
plugins/providers/gcs/provider.go 16 18 88.89%
plugins/providers/gcs/client.go 0 50 0.0%
Files with Coverage Reduction New Missed Lines %
api/handler/v1beta1/grpc.go 1 90.91%
Totals Coverage Status
Change from base Build 4174814353: -0.2%
Covered Lines: 7714
Relevant Lines: 10277

💛 - Coveralls

@rahmatrhd
Copy link
Member Author

@ravisuhag can we enable the option for not squashing PR?

context: for this PR, I was experimenting to implement git-flow

@rahmatrhd rahmatrhd merged commit a4052f4 into main Feb 20, 2023
@rahmatrhd rahmatrhd deleted the 0.6.x branch February 20, 2023 10:29
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.

5 participants