Commit graph

19 commits

Author SHA1 Message Date
GitLab Bot
5609a96272 Add latest changes from gitlab-org/gitlab@master 2020-05-31 00:08:56 +00:00
GitLab Bot
d43aaf286f Add latest changes from gitlab-org/gitlab@master 2020-03-17 00:09:12 +00:00
GitLab Bot
1ca9950d5f Add latest changes from gitlab-org/gitlab@master 2020-02-11 18:08:58 +00:00
GitLab Bot
72817fd7c0 Add latest changes from gitlab-org/gitlab@master 2020-02-01 00:08:41 +00:00
GitLab Bot
fedf978f9a Add latest changes from gitlab-org/gitlab@master 2020-01-28 15:08:36 +00:00
GitLab Bot
587794b4b8 Add latest changes from gitlab-org/gitlab@master 2019-10-02 00:06:26 +00:00
Vladimir Shushlin
8c3d0703ed Allow to load ECDSA certificates for pages domains
Just replace RSA.new with PKey.read
2019-09-07 00:29:03 +00:00
Thong Kuah
94bb660460 Add frozen_string_literal to spec/factories
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:18:39 +12:00
Vladimir Shushlin
77e2e45364 Validate certificate chain only if it's changed
This validation prevents the domain from being saved from the UI
e.g. when user tries to enable Let's Encrypt integration
2019-07-22 15:38:08 +00:00
Vladimir Shushlin
a7764d0e84 Renew Let's Encrypt certificates
Add index for pages domain ssl auto renewal
Add PagesDomain.needs_ssl_renewal scope
Add cron worker for ssl renewal
Add worker for ssl renewal
Add pages ssl renewal worker queues settings
2019-06-24 20:35:12 +00:00
Vladimir Shushlin
6119d5ad75 Don't show private keys for letsencrypt certs
Adds enum certificate_source to pages_domains table
with default manually_uploaded

Mark certificates as 'gitlab_provided'
if the were obtained through Let's Encrypt

Mark certificates as 'user_provided' if they were uploaded through
controller or api

Only show private key in domain edit form if it is 'user_provided'

Only show LetsEncrypt option if is enabled by application settings
(and feature flag)

Refactor and fix some specs to match new logic

Don't show Let's Encrypt certificates as well
2019-06-21 12:06:12 +00:00
Vladimir Shushlin
ac744fd4fc Remove disabled pages domains
Domain will be removed by verification worker after 1 week
of being disabled
2019-04-30 12:05:54 +00:00
Vladimir Shushlin
d69d29011c Mark unverified pages domains for removal
Set pages_domain.remove_at when disabling it
Add specs for marking pages domain for removal
Notify user that domain is being removed
Add documentation
2019-04-09 17:46:29 +00:00
Rob Watson
9d45951fca Add HTTPS-only pages
Closes #28857
2018-03-22 19:58:36 +01:00
Nick Thomas
ee68bd9771
Add DNS verification to Pages custom domains 2018-02-23 12:22:29 +00:00
Rémy Coutable
4af9d592c5 Replace factory_girl_rails with factory_bot_rails
I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands:

```
grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|"
grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|"
```

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14 15:01:55 +01:00
Kamil Trzcinski
c089f10334 Update comments 2017-01-31 22:53:58 +00:00
Kamil Trzcinski
8f09ec2837 Verify trusted certificate chain 2017-01-31 22:53:58 +00:00
Kamil Trzcinski
d3b8284876 Pages domain model specs 2017-01-31 22:53:57 +00:00