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

Would it support for private repo? #103

Open
xihajun opened this issue May 16, 2024 · 4 comments
Open

Would it support for private repo? #103

xihajun opened this issue May 16, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@xihajun
Copy link

xihajun commented May 16, 2024

Thanks for the lovely tool, I wonder would it support for those private repos?

@tadhglewis
Copy link
Owner

tadhglewis commented May 17, 2024

@xihajun The code you deploy can be private and you could have a separate repo for the REACT_APP_REPOSITORY configuration however this repo must be public.

Can you explain your use case? It shouldn't matter the repo is public as any github issues are publicly being displayed on the status page anyway

@xihajun
Copy link
Author

xihajun commented May 17, 2024

@tadhglewis Thanks for your reply! What is the different between the REACT_APP_REPOSITORY and this one?

If it is for internal status usage, it would be good to have it support for private repo and other people won't know the link for this status anyway. I found we can bypass it given the GitHub token, but should there be a better way?

@tadhglewis
Copy link
Owner

tadhglewis commented May 17, 2024

@xihajun interesting. definitely will consider this as I'm currently overhauling and adding support for so called "custom Providers" which allow you to swap out the underlying data source the frontend uses.

To go into a bit more detail;

REACT_APP_REPOSITORY is essentially the database/source used by the frontend to fetch the components (systems) and incident history. This is done by calling the unauthenticated GitHub API to fetch GitHub issues.

If you have sensitive data in a repo and want it private, it's recommended to create a fresh repo for the database (REACT_APP_REPOSITORY) which only contains the GitHub Issues.

Technically speaking, there can be two repos: one with the source code (e.g. https://github.com/tadhglewis/issue-status) and a separate one for the db/GitHub Issues.

If it is for internal status usage

Is the link publicly accessible? If so I'd say just make a public repo... To be honest, this project isn't currently well designed for private(internal) use cases as everything is unauthenticated.

I found we can bypass it given the GitHub token

Be wary: in the current state, this project is entirely frontend so any tokens you include will be leaked to the frontend

@tadhglewis tadhglewis added the enhancement New feature or request label May 17, 2024
@xihajun
Copy link
Author

xihajun commented May 17, 2024

@tadhglewis Thanks for the details!

Is the link publicly accessible? If so I'd say just make a public repo... To be honest, this project isn't currently well designed for private(internal) use cases as everything is unauthenticated.

Thanks for pointing out! I am not too familiar with front end, but I will try to avoid that when using in production with internal access or add a passwd and restrict by ip address, etc.

Currently I am testing the functionality and it works nicely. Thanks for open source the lovely project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants