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

fix: expose private API on private port #9

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

jvallesm
Copy link
Collaborator

@jvallesm jvallesm commented Apr 1, 2024

Because

  • Private gRPC API was being exposed on the public port

This commit

  • Uses the private port to serve the Private Artifact API
  • Removes the exposure of the private port to the docker host.

Notes

Other services listen and serve both the public and the private API through the grpc-gateway. In the case of this service this isn't needed for the private API as it doesn't expose any HTTP endpoints (other services don't need to, either, but it's already exposed). Therefore, the "listen and serve" strategy is a bit different. The gRPC config should already contain the TLS information, if present, so we don't need an if/else block for the private API.

@jvallesm jvallesm self-assigned this Apr 1, 2024
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.05%. Comparing base (61bc325) to head (30aaad3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage   96.05%   96.05%           
=======================================
  Files           2        2           
  Lines          76       76           
=======================================
  Hits           73       73           
  Misses          2        2           
  Partials        1        1           
Flag Coverage Δ
unittests 96.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.

@jvallesm jvallesm marked this pull request as ready for review April 1, 2024 13:23
@jvallesm jvallesm merged commit 9ef4b03 into main Apr 2, 2024
16 checks passed
@jvallesm jvallesm deleted the jvalles/fix-private-api-port branch April 2, 2024 08:06
jvallesm pushed a commit that referenced this pull request Apr 3, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.2.0-alpha](v0.1.0-alpha...v0.2.0-alpha)
(2024-04-02)


### Features

* add CreateRepositoryTag endpoint
([#8](#8))
([61bc325](61bc325))
* aggregate tag list with database info
([#7](#7))
([6cc2d8d](6cc2d8d))
* create artifact database if it does not exist
([#4](#4))
([787a4ad](787a4ad))
* fetch repository tags from registry
([#6](#6))
([3568735](3568735))


### Bug Fixes

* expose private API on private port
([#9](#9))
([9ef4b03](9ef4b03))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
2 participants