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 a test to ensure FileRemote with client_cert and client_key configured can sync from a protected repository #141

Open
pulpbot opened this issue Jan 4, 2022 · 0 comments
Labels

Comments

@pulpbot
Copy link
Member

pulpbot commented Jan 4, 2022

Author: @bmbouter (bmbouter)

Redmine Issue: 6810, https://pulp.plan.io/issues/6810


It's possible to have a Pulp Remote, e.g. FileRemote sync from a CertGaurd protected repo. This should work with either RHSM or X509 Certificate as long as the header is right.

We need to add a test that does the following:

Setup parts of the test

  1. Create a FileRepository and sync some content into it
  2. Create a Publication from (1) and serve it at a FileDistribution

Test sync when it's unprotected

  1. Create a FileRemote and a second repository and sync the FileDistribution from (2) with it

Test sync fails against protected repo without cert_key and client_key

  1. Protect this content with an X509 certificate
  2. Try to sync the second repo using the FileRemote and assert that it fails with a 403 error (because the FileRemote has no client_cert and client_key)

Test sync works when FileRemote has client_cert and client_key

  1. Add the client_cert and client_key to the FileRemote from (3)
  2. Sync the second repo once more and assert it passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants