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 path prefixed gitlab-ce instance #905

Open
wants to merge 15 commits into
base: feature/distributed-demo
Choose a base branch
from

Conversation

aryanpingle
Copy link

@aryanpingle aryanpingle commented Sep 11, 2024

PR to address #892 and #899

Copy link
Contributor

@prasadtalasila prasadtalasila left a comment

Choose a reason for hiding this comment

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

@aryanpingle thanks for the PR. Please check the comments. Given that this compose file is only useful with a properly working OAuth setup, please include those changes in this PR as well.

deploy/config/client/env.js Outdated Show resolved Hide resolved
deploy/services/gitlab/docker-compose.yml Outdated Show resolved Hide resolved
deploy/services/gitlab/.env Outdated Show resolved Hide resolved
deploy/services/gitlab/docker-compose.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@prasadtalasila prasadtalasila left a comment

Choose a reason for hiding this comment

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

@aryanpingle Thanks for the PR. Please see the comments.

deploy/services/gitlab/.env Outdated Show resolved Hide resolved
deploy/services/gitlab/.env Outdated Show resolved Hide resolved
deploy/services/gitlab/docker-compose.yml Outdated Show resolved Hide resolved
deploy/config/client/env.js Outdated Show resolved Hide resolved
deploy/docker/.env.server Outdated Show resolved Hide resolved
* Make https url scheme mandatory for gitlab instance (due to react-oidc)
* Hardcode gitlab image for consistency with tests
@prasadtalasila
Copy link
Contributor

@aryanpingle

Please add INTEGRATION.md detailing the steps required for integrating gitlab with the rest of DTaaS installation. It is a three step process

  1. Bring up DTaaS with unchanged OAUTH information in env.js, .env.server and conf.server.
  2. Bring up and configure /gitlab (the current README.md)
  3. Create OAUTH apps in the new gitlab
  4. Update OAUTH information in env.js, .env.server and conf.server.

@prasadtalasila
Copy link
Contributor

@aryanpingle
Another important explanation is with regards to self-signed / invalid TLS certificates. The OAuth2 server authorization fails if either self-signed or invalid certificates are used. So a clear emphasis needs to be made saying that the gitlab integration is only possible with a valid TLS certificate.
Please do verify the existence of this problem before tomorrow's meeting. Thanks.

@aryanpingle
Copy link
Author

aryanpingle commented Sep 20, 2024

Can confirm, authorization fails with a self-signed/invalid certificate (OAuth2 redirect results in Service unavailable). I'll update the docs to mention this.

@prasadtalasila prasadtalasila added this to the Release v0.6.0 milestone Sep 20, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

@aryanpingle
In step-1, the DTaaS without any valid OAuth applications. In step-3, these OAuth applications are created on https://foo.com/gitlab. This instance is used to create valid OAuth applications. New step-4 configures DTaaS application again with valid OAuth applications.
In addition, the post-install instructions seem wrong. Please check.

Copy link
Author

Choose a reason for hiding this comment

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

Ah right, I'll correct the steps. Which post-install instruction are you referring to sir?

> The section "Add TLS Certificates (Optional)" should be treated as
> mandatory for now, to ensure `react-oidc-context` correctly redirects users
> for authorization.
Copy link

Choose a reason for hiding this comment

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

Blank line inside blockquote

Copy link

codeclimate bot commented Sep 23, 2024

Code Climate has analyzed commit c8b40f6 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Style 1

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

2 participants