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
path: root/lib
AgeCommit message (Collapse)Author
2018-12-05Merge branch '54886-usage-data-group-clusters' into 'master'Kamil Trzciński
Add UsageData for group/project clusters Closes #54886 See merge request gitlab-org/gitlab-ce!23590
2018-12-05Merge branch '34758-deployment-cluster' into 'master'Kamil Trzciński
Use group clusters when deploying (DeploymentPlatform) See merge request gitlab-org/gitlab-ce!22308
2018-12-05Rename project's pipelines relationFrancisco Javier López
2018-12-05Add UsageData for group/project clustersDylan Griffith
2018-12-05Merge branch 'osw-fix-grouping-by-file-path' into 'master'Nick Thomas
Avoid 500's when serializing legacy diff notes Closes #54793 See merge request gitlab-org/gitlab-ce!23544
2018-12-05Merge branch 'mk/refactor-gitlab-check-rake-tasks-ce' into 'master'Nick Thomas
[Backport] Extract system check rake task logic See merge request gitlab-org/gitlab-ce!23395
2018-12-05Merge branch '54826-use-read_repository-scope-on-read-only-files-endpoints' ↵Grzegorz Bizon
into 'master' Resolve "Use read_repository scope on read-only files endpoints" Closes #54826 See merge request gitlab-org/gitlab-ce!23534
2018-12-05Merge branch 'mr-pipelines-2' into 'master'Kamil Trzciński
Merge request pipelines See merge request gitlab-org/gitlab-ce!23217
2018-12-05Merge branch '53659-use-padded-key-for-gcm-ciphers' into 'master'Rémy Coutable
Use a 32-byte version of db_key_base for web hooks Closes #53659 See merge request gitlab-org/gitlab-ce!23573
2018-12-05Merge branch 'retryable_create_or_update_kubernetes_namespace' into 'master'Kamil Trzciński
Update K8s project namespace and ServiceAccount if exist See merge request gitlab-org/gitlab-ce!23525
2018-12-05Merge branch 'set-kubeconfig-nil-when-token-nil' into 'master'Dmitriy Zaporozhets
Make KUBECONFIG nil if KUBE_TOKEN is nil See merge request gitlab-org/gitlab-ce!23414
2018-12-05Revert "LfsToken uses JSONWebToken::HMACToken by default"🤖 GitLab Bot 🤖
This reverts commit 22954f220231281360377922b709efb904559949
2018-12-05Merge request pipelinesShinya Maeda
2018-12-05LfsToken uses JSONWebToken::HMACToken by defaultAsh McKenzie
LfsToken::HMACToken#token_valid?() will be examined and if false, look in redis via LfsToken::LegacyRedisDeviseToken#token_valid?().
2018-12-05Use user? insteadAsh McKenzie
2018-12-05Use a 32-byte version of db_key_base for web hooksNick Thomas
AES-256-GCM cipher mode requires a key that is exactly 32 bytes long. We already handle the case when the key is too long, by truncating, but the key can also be too short in some installations. Switching to a key that is always exactly the right length (by virtue of right-padding ASCII 0 characters) allows encryption to proceed, without breaking backward compatibility. When the key is too short, encryption fails with an `ArgumentError`, causing the web hooks functionality to be unusable. As a result, zero rows can exist with values encrypted with the too-short key. When the key is too long, it is silently truncated. In this case, the key is unchanged, so values encrypted with the new too-long key will still be successfully decrypted.
2018-12-05Various improvements to hierarchy sortingThong Kuah
- Rename ordered_group_clusters_for_project -> ancestor_clusters_for_clusterable - Improve name of order option. It makes much more sense to have `hierarchy_order: :asc` and `hierarchy_order: :desc` - Allow ancestor_clusters_for_clusterable for group - Re-use code already present in Project
2018-12-05Deploy to clusters for a project's groupsThong Kuah
Look for matching clusters starting from the closest ancestor, then go up the ancestor tree. Then use Ruby to get clusters for each group in order. Not that efficient, considering we will doing up to `NUMBER_OF_ANCESTORS_ALLOWED` number of queries, but it's a finite number Explicitly order query by depth This allows us to control ordering explicitly and also to reverse the order which is useful to allow us to be consistent with Clusters::Cluster.on_environment (EE) which does reverse ordering. Puts querying group clusters behind Feature Flag. Just in case we have issues with performance, we can easily disable this
2018-12-05Modify 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.
2018-12-04Merge branch 'define-default-value-for-only-except-keys' into 'master'Kamil Trzciński
Define the default value for only/except policies See merge request gitlab-org/gitlab-ce!23531
2018-12-04Merge branch 'fix/gb/encrypt-runners-tokens' into 'master'Nick Thomas
Encrypt runners tokens Closes #51232 and #52931 See merge request gitlab-org/gitlab-ce!23412
2018-12-04Avoid 500's when serializing legacy diff notesOswaldo Ferreira
2018-12-04Define the default value for only/except policiesShinya Maeda
Currently, if a job does not have only/except policies, the policy is considered as an unspecified state, and therefore the job is executed regardless of how it's executed and which branch/tags are targetted. Ideally, this should be specified as only: ['branches', 'tags'], as it indicates that unspecified policy jobs are meant to run on any git references.
2018-12-04CE port Refactor Gitlab::Checks::ChangeAccess classFrancisco Javier López
2018-12-04Use read_repository scope on read-only files APIJames Lopez
2018-12-04Add a line before conditional in encrypt columns classGrzegorz Bizon
2018-12-04Merge commit '83f0798e7dc588f0e4cb6816daadeef7dbfc8b81' into ↵Grzegorz Bizon
fix/gb/encrypt-runners-tokens * commit '83f0798e7dc588f0e4cb6816daadeef7dbfc8b81': (101 commits)
2018-12-04Revert "Merge branch 'auto-devops-support-for-group-security-dashboard' into ↵Fabio Busatto
'master'" This reverts merge request !23165
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-12-04Extract system check rake task logicMichael Kozono
These changes make the code more reusable, testable, and most importantly, overrideable.
2018-12-03Lower the tablesample thresholds/targets.Andreas Brandl
The numbers in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22650#note_117645395 are quite promising with that target.
2018-12-03Move strategies in their own filesAndreas Brandl
This improves readability quite a bit.
2018-12-03Fix comment.Andreas Brandl
2018-12-03Refactor estimate queryAndreas Brandl
2018-12-03Fix rubocop offenses.Andreas Brandl
2018-12-03Add feature flag for tablesample counting.Andreas Brandl
2018-12-03Implement TablesampleCountStrategy.Andreas Brandl
A tablesample count executes in two phases: * Estimate table sizes based on reltuples. * Based on the estimate: * If the table is considered 'small', execute an exact relation count. * Otherwise, count on a sample of the table using TABLESAMPLE. The size of the sample is chosen in a way that we always roughly scan the same amount of rows (see TABLESAMPLE_ROW_TARGET).
2018-12-03More specs for fallback testing.Andreas Brandl
2018-12-03Refactor specs to separate concerns.Andreas Brandl
2018-12-03Flexible approximate counts with fallback strategies.Andreas Brandl
2018-12-03Simplify to use models instead of tables.Andreas Brandl
2018-12-03Add ExactCountStrategy.Andreas Brandl
2018-12-03Extract ReltuplesCountStrategy.Andreas Brandl
2018-12-03Use plaintext token when migration is not completeGrzegorz Bizon
2018-12-03Use proper scope when accessting application settingsGrzegorz Bizon
2018-12-03Merge branch 'improve_auto_devops_migration_debug' into 'master'Dmitriy Zaporozhets
Add echo so that we know which branch was taken See merge request gitlab-org/gitlab-ce!23499
2018-12-02Add echo so that we know which branch was takenThong Kuah
This should help debug issues like https://gitlab.com/gitlab-org/gitlab-ce/issues/54760
2018-11-30Merge branch 'if-52811-fix_namespaces_api_routing' into 'master'Nick Thomas
Fix API::Namespaces routing to accept namepaces with dots See merge request gitlab-org/gitlab-ce!22912
2018-11-30Merge branch 'generalize-ci-config' into 'master'Grzegorz Bizon
ci/config: generalize Config validation into Gitlab::Config:: module See merge request gitlab-org/gitlab-ce!23443
2018-11-30Make KUBECONFIG nil if KUBE_TOKEN is nilDylan Griffith
Having an invalid KUBECONFIG without a token in it is not helpful. This only became possible recently now that we are creating a separate namespace and service account (and hence token) to send to the runners. This led to somewhat surprising results when troubleshooting https://gitlab.com/gitlab-org/gitlab-ce/issues/53879 as I found that the KUBECONFIG was still being passed but KUBE_TOKEN was not. These things really should have been linked. Furthermore now that we are also using the [presence of KUBECONFIG to decide whether or not to run build steps in Auto DevOps](https://gitlab.com/gitlab-org/gitlab-ce/blob/294d15be3e9497e7b67e1f9131ce9d5c0d68406c/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml#L164) I think it makes even more sense to ensure that KUBECONFIG is a complete config if passed to a job.