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

enable authentication #2887

Merged
merged 4 commits into from
Dec 11, 2023
Merged

Conversation

Xiaochao8
Copy link
Contributor

@Xiaochao8 Xiaochao8 commented Dec 5, 2023

Authentication is enabled on both V1 and V2 APIs.
The same token should be able to use in Java and Go.
This PR makes some changes in S3 bundles, please make sure S3 bundles work normally.

Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Attention: 63 lines in your changes are missing coverage. Please review.

Comparison is base (9b3eb2c) 79.72% compared to head (899a372) 79.77%.

Files Patch % Lines
api/authentication/authentication.go 65.26% 23 Missing and 10 partials ⚠️
internal/common/cryptutil.go 56.25% 14 Missing and 7 partials ⚠️
api/authentication/handler.go 91.54% 4 Missing and 2 partials ⚠️
modules/translation/dao/s3bundle/s3config.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           g11n-go-service    #2887      +/-   ##
===================================================
+ Coverage            79.72%   79.77%   +0.05%     
===================================================
  Files                   56       59       +3     
  Lines                 3058     3259     +201     
===================================================
+ Hits                  2438     2600     +162     
- Misses                 505      525      +20     
- Partials               115      134      +19     
Flag Coverage Δ
coverage 79.77% <72.36%> (+0.05%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tests/testdata/config/config.yaml Dismissed Show dismissed Hide dismissed
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Revive (reported by Codacy) found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@Xiaochao8 Xiaochao8 force-pushed the g11n-go-service_auth branch from 1da5c36 to d84df22 Compare December 5, 2023 06:34
@Xiaochao8 Xiaochao8 changed the title enale authentication enable authentication Dec 5, 2023
@Xiaochao8 Xiaochao8 enabled auto-merge (squash) December 5, 2023 08:51
@tigershi
Copy link
Contributor

tigershi commented Dec 6, 2023

Because of the PR change a lot, Can you book a short meeting to review the PR

linr211
linr211 previously approved these changes Dec 6, 2023
@Xiaochao8 Xiaochao8 disabled auto-merge December 6, 2023 03:04
}

var GetLDAPConn = func() (ldap.Client, error) {
tlsConfig := tls.Config{MinVersion: tls.VersionTLS13, InsecureSkipVerify: true}

Check warning

Code scanning / Semgrep (reported by Codacy)

Checks for disabling of TLS/SSL certificate verification. Warning

Checks for disabling of TLS/SSL certificate verification.
api/authentication/authentication.go Dismissed Show dismissed Hide dismissed
@Xiaochao8 Xiaochao8 requested a review from linr211 December 8, 2023 05:16
@Xiaochao8 Xiaochao8 merged commit 66f6790 into vmware:g11n-go-service Dec 11, 2023
21 checks passed
@Xiaochao8 Xiaochao8 deleted the g11n-go-service_auth branch December 11, 2023 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants