Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Adding a Traffic Ops client method to login with a certificate#7645

Merged
zrhoffman merged 9 commits intoapache:masterfrom
srijeet0406:toclient_login_with_cert
Jul 17, 2023
Merged

Adding a Traffic Ops client method to login with a certificate#7645
zrhoffman merged 9 commits intoapache:masterfrom
srijeet0406:toclient_login_with_cert

Conversation

@srijeet0406
Copy link
Copy Markdown
Contributor

This PR is not related to any issue. It adds a Traffic Ops client method to be able to login with certs.


Which Traffic Control components are affected by this PR?

  • Traffic Ops

What is the best way to verify this PR?

Make sure all the tests pass.
Manual testing:
Follow the steps in #7392

If this is a bugfix, which Traffic Control versions contained the bug?

  • master

PR submission checklist

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 12, 2023

Codecov Report

Merging #7645 (e5f6018) into master (08d037f) will decrease coverage by 0.01%.
The diff coverage is 46.15%.

@@             Coverage Diff              @@
##             master    #7645      +/-   ##
============================================
- Coverage     30.12%   30.12%   -0.01%     
  Complexity       98       98              
============================================
  Files           794      794              
  Lines         84077    84086       +9     
  Branches        907      907              
============================================
+ Hits          25332    25334       +2     
- Misses        56615    56620       +5     
- Partials       2130     2132       +2     
Flag Coverage Δ
golib_unit 48.29% <ø> (ø)
grove_unit 4.60% <ø> (ø)
t3c_unit 5.28% <ø> (ø)
traffic_monitor_unit 21.30% <ø> (ø)
traffic_ops_integration 69.39% <50.00%> (-0.03%) ⬇️
traffic_ops_unit 22.95% <42.85%> (-0.01%) ⬇️
traffic_portal_v2 73.78% <ø> (ø)
traffic_stats_unit 10.14% <ø> (ø)
unit_tests 27.25% <42.85%> (-0.01%) ⬇️
v3 57.79% <ø> (ø)
v4 79.18% <ø> (ø)
v5 78.52% <50.00%> (-0.12%) ⬇️

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

Impacted Files Coverage Δ
traffic_ops/traffic_ops_golang/login/login.go 10.86% <0.00%> (-0.03%) ⬇️
traffic_ops/traffic_ops_golang/auth/certificate.go 42.98% <50.00%> (-1.67%) ⬇️
traffic_ops/v5-client/session.go 72.22% <50.00%> (-2.78%) ⬇️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ocket8888 ocket8888 added new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops medium impact impacts a significant portion of a CDN, or has the potential to do so authentication Relating to login, registration, passwords, tokens, etc. labels Jul 13, 2023
Comment thread .github/actions/to-integration-tests/cdn.json
Copy link
Copy Markdown
Member

@zrhoffman zrhoffman left a comment

Choose a reason for hiding this comment

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

Looks good! Just 1 comment about the cert expirations, but they can be addressed in a follow-up PR :)

@@ -0,0 +1,34 @@
-----BEGIN CERTIFICATE-----
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These cert files expire on July 13, 2024, which means they would need to be updated in a year. Instead, how about making them expire July 13, 2124?

@zrhoffman zrhoffman merged commit 3e388a3 into apache:master Jul 17, 2023
jagan-parthiban pushed a commit to jagan-parthiban/trafficcontrol that referenced this pull request Jul 27, 2023
…e#7645)

* Adding a Traffic Ops client method to login with a certificate

* adding changelog, godocs

* adding . in changelog

* try to fix gha

* add sudo

* wip

* adding debug

* adding insecure skip verify option

* remove debug
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

authentication Relating to login, registration, passwords, tokens, etc. medium impact impacts a significant portion of a CDN, or has the potential to do so new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants