Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-23Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-24Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-06Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-24Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-08-21Override hostname when connecting via KubeclientThong Kuah
Kubeclient uses rest-client. We hack into to access the net/http object so that we can patch to connect to the resolved IP + set hostname_override. Add specs for discord. The discord integration also uses rest-client, so since we patched rest-client, spec that the DNS rebinding protection works
2019-08-02Add outbound requests setting for system hooksGeorge Koltsov
This MR adds new application setting to network section `allow_local_requests_from_system_hooks`. Prior to this change system hooks were allowed to do local network requests by default and we are adding an ability for admins to control it.
2019-07-11Give Knative serving permissions to service accountHordur Freyr Yngvason
GitLab uses a kubernetes service account to perform deployments. For serverless deployments to work as expected with externally created clusters with their own knative installations (e.g. via Cloud Run), this account requires additional permissions in the serving.knative.dev API group.
2019-02-21Do not allow local urls in Kubernetes formThong Kuah
Use existing `public_url` validation to block various local urls. Note that this validation will allow local urls if the "Allow requests to the local network from hooks and services" admin setting is enabled. Block KubeClient from using local addresses It will also respect `allow_local_requests_from_hooks_and_services` so if that is enabled KubeClinet will allow local addresses
2019-01-25Use http_max_redirects opt to replace monkeypatchThong Kuah
http_max_redirects was introduced in 4.2.2, so upgrade kubeclient. The monkey-patch was global so we will have to check that all instances of Kubeclient::Client are handled. Spec all methods of KubeClient This should provide better confidence that we are indeed disallowing redirection in all cases
2018-12-04Modify service so that it can be re-runThong Kuah
If the service fails mid-point, then we should be able to re-run this service. So, detect presence of any previously created Kubernetes resource and update or create accordingly. Fix specs accordingly. In the case of finalize_creation_service_spec.rb, I decided to stub out the async worker rather than maintaining individual stubs for various kubeclient calls for that worker. Also add test cases for group clusters
2018-11-15Add knative client to kubeclient libraryChris Baumbauer
2018-10-23Store version within SUPPORTED_API_GROUPS hashThong Kuah
This removes the ability to pass in a different version. We can instead create a new entry in the SUPPORTED_API_GROUPS hash for a different version if need be.
2018-10-23Remove api_groups from KubeClient constructorThong Kuah
We should have access to #core_client, #rbac_client, and #extensions_client without having to pass in an awkward array. Also change api_version to default_api_version, which allows us to use a different version for an individual client. Special case for apis/extensions which only go up to v1beta1 Makes #hashed_client private Removes the #clients and #discover! methods which are un-used
2018-09-14Always create `gitlab` service account and service account token regardless ↵Thong Kuah
of ABAC/RBAC This also solves the async nature of the automatic creation of default service tokens for service accounts. It also makes explicit which service account token we always use. create cluster role binding only if the provider has legacy_abac disabled.
2018-09-14Teach GitLab how to create Secret of type ServiceAccountTokenThong Kuah
Add create_secret to KubeClient
2018-09-06Enable Kubernetes RBAC for GitLab Managed Apps for existing clustersThong Kuah