Commit Graph

666 Commits

Author SHA1 Message Date
Mohan Madhavan aca93437bb Addresses CDN-1093 ('San certs not created due to tld issues')
Change-Id: I7f2bb23d63da7a7c37e0968fdbcf4ed2beba0dfe
2017-04-07 10:47:23 -05:00
Isaac Mungai e38b0e7727 Filter hostnames that are already activated
When creating a new request to update papi property
hostnames, skip hostnames that we activated in a previous
execution of the akamai_update_papi_property job_type.

Change-Id: I11752ac19035c856c3d2b4ec837493a9dc5f89d5
2016-12-08 10:13:04 -05:00
Isaac Mungai 53ac238b2a Add admin endpoint to patch access urls
Change-Id: I30da22d2a229b346212e53abd7bff50884929ab6
2016-10-03 16:33:02 -04:00
Jenkins 60c0efdc57 Merge "Add admin endpoint enable/disable sni certificate" 2016-10-03 20:26:12 +00:00
Jenkins 368c2d435a Merge "Handle error when getting peer cert on older py27" 2016-10-03 20:25:06 +00:00
Isaac Mungai 30f0332658 Handle error when getting peer cert on older py27
If the create_default_context function is not available
create a context for python version < 2.7.9.

Change-Id: Iec1411a98faf36e2ad5d2deb772d6a20c063e7d2
2016-10-03 12:53:49 -04:00
Isaac Mungai cda9e802b3 Create new context for each recreation of ssl cert
This will make tracking cert creation easier
when searching through logs by request_id.

Change-Id: Ic233f537bbbe3762a2e561677f7e24982e5ab904
2016-10-03 11:40:13 -04:00
Isaac Mungai a2246e0986 Add admin endpoint enable/disable sni certificate
Change-Id: I4bc5d1b88bc46202be9138509e91fb09a048f753
2016-10-03 11:10:36 -04:00
Isaac Mungai 054dd47fd3 Add support akamai DV SNI certificates
Change-Id: I9f1ef35ee5cb3e50ac689b333357d43ef43fb343
2016-09-27 09:34:31 -04:00
Isaac Mungai 0458de585d Check shard is within records limit
Before adding a new record to a domain, check to see
if it's at maximum capacity and skip to the next cert
if necessary.

Change-Id: I7e4c56e27cebc45a9cdddf9659762f29f9c6227c
2016-09-21 14:18:02 -04:00
Jenkins 5232069ad4 Merge "Add admin config sni cert endpoint" 2016-09-19 14:14:10 +00:00
Jenkins d000370263 Merge "Add storage for sni cert info" 2016-09-16 15:31:57 +00:00
Isaac Mungai 24eb952e71 Add admin config sni cert endpoint
Change-Id: I32d3759c932c92fbfd73e925d2c8147e1234bf28
2016-09-15 11:42:04 -04:00
Isaac Mungai 64e749d53a Add storage for sni cert info
Change-Id: I9e10a79dfdef5fae249347400ea5b6b59ec49004
2016-09-12 12:43:22 -04:00
Isaac Mungai a8b472cc95 Add misc unit and functional tests
Change-Id: Iaabe1c90a19ea95a8a3ce87a2a2986d00344fe20
2016-09-09 09:42:08 -04:00
Jenkins 3413adcc06 Merge "Add secret options that shouldn't log plaintext" 2016-09-08 14:04:15 +00:00
Jenkins fcdd97677c Merge "Switching Poppy test to use ostestr (OpenStack Testr)" 2016-09-07 19:14:59 +00:00
Isaac Mungai 401ca7230e Add secret options that shouldn't log plaintext
Change-Id: Ie811098543be43dc0b699392cc0a0aef71c0a81a
2016-09-06 15:45:11 -04:00
Jenkins 12188071bc Merge "Delete old policies when upgrading to HTTPS" 2016-09-06 18:06:50 +00:00
Jenkins 263edba5b3 Merge "Enable skipped test" 2016-09-06 18:06:45 +00:00
Jenkins 78e5cbe917 Merge "cover all service creation logic in provider" 2016-09-06 18:06:39 +00:00
Jenkins 665c57750b Merge "Validate TLD during ssl cert creation" 2016-09-06 15:06:25 +00:00
Isaac Mungai 61bd7ef5e1 cover all service creation logic in provider
Completes all coverage for akamai provider service creation
logic.

Change-Id: Ia5987238ea5665870b28902e9f058d35c8ccfdd3
2016-09-01 10:50:01 -04:00
Mohan Madhavan 67a259e33f Reordering the caching rules
Change-Id: Ic2abcf516f340682056a581d74604aa1c8d76430
2016-08-31 16:07:57 -05:00
Isaac Mungai cc6dbf73e8 Enable skipped test
Also fixes domain claim logic in the mock storage layer,
it should now match the same behavior in cassandra storage.

Change-Id: I84490f9adf17f92f593a06303f63e5d69597711c
2016-08-31 15:43:50 -04:00
Isaac Mungai 76b9121c73 Delete old policies when upgrading to HTTPS
When a domain is upgraded from HTTP to HTTPS, queue
a task that checks if the upgraded domain is deployed
before deleting the old HTTP policy.

Change-Id: I92cd0ced90de81226f1c0873fc01bc0e6df31633
2016-08-31 13:20:15 -04:00
Mohan Madhavan 7e0e0e69eb Validate TLD during ssl cert creation
Change-Id: Id77c9cff8075bbc3f421b832d2d71ea217ef952c

Mocked the underlying network calls that validate the domain

Change-Id: I07146c65518b120d114d62ae38066de08b210b2a

Fixing pep8 issue

Change-Id: Ibf5072288c1fbba086a021e07a56c33a4f7b3fbf
2016-08-31 10:54:39 -05:00
Isaac Mungai 414261ac13 Add last item in links tuple during migration
Change-Id: I0d274be40cc8d3809de648fba93d1d70c3f46345
2016-08-30 14:29:45 -04:00
Jenkins 8c7538078d Merge "Verify domain before requesting property updates" 2016-08-29 19:58:06 +00:00
Isaac Mungai 8c94600fad Verify domain before requesting property updates
Verify that the domain still has a certificate and still
exists on a service. If the domain is found on a service,
verify that it still has the proper protocol and cert type.

Change-Id: If786a91f7a9434468ca5293874b1118f96cf94d6
2016-08-25 10:48:35 -04:00
Jenkins 15f2093d22 Merge "Enforce schema for admin endpoints" 2016-08-25 14:02:04 +00:00
tonytan4ever 2140f6def0 Switching Poppy test to use ostestr (OpenStack Testr)
Change-Id: Iec921d21f3325e92462c7a2b40d748db8f85cdff
2016-08-24 11:39:10 -04:00
Isaac Mungai 00f40d9837 fix: adding domain causes loss of log_delivery
When adding a new domain to a service that already has
log delivery, the log delivery access url was lost.

Change-Id: Ie75f52465d6db3d7a9b8013f4973dbc38ceb24f3
2016-08-22 14:35:20 -04:00
Jenkins 9e5b4000fa Merge "DNS updates for http to https+san upgrade" 2016-08-22 17:51:34 +00:00
Isaac Mungai ef61e853ae Enforce schema for admin endpoints
Prevents misleading 500 status code when schema is not valid.

Change-Id: Ia2c3e34156182c70f4220164725d44270d682072
2016-08-18 15:01:49 -04:00
Isaac Mungai 6fa8a5959a Mark san mapping items to mark progress
Since we have two types of jobs for san mapping queue
mark completion of the first job in order to filter
items for the second job type. The order of execution
for job types matters.

Change-Id: Ifc9e5a24c9359befc5580007940d3aa7b9437426
2016-08-17 10:33:30 -04:00
Isaac Mungai 23fcb0d5f1 DNS updates for http to https+san upgrade
Change-Id: Ic90934e6e27f2f28449a2df4566aaab400a36186
2016-08-16 09:05:46 -04:00
Jenkins 9cf9088569 Merge "bugfix: remove duplicate lines of code" 2016-08-12 19:50:24 +00:00
Isaac Mungai 0a67d6f7cc fix: deserialize details before get cert status
Change-Id: Ia9b897d93b4af05fd131d0d87c36838587f109e9
2016-08-05 13:55:24 -04:00
Isaac Mungai e6d866d79e fix: enqueue failure value must be byte string
encodes item to string before sending it back to the queue.

Change-Id: I2ef1f586bcdaf9a67a7860dcc9b1b2983ad5f4e5
2016-08-04 15:48:01 -04:00
Isaac Mungai 1598779ab7 Make project_id optional for background job
of type akamai_check_and_update_cert_status

Change-Id: I972052c89de17d5c857dd4900d762dfb280c8bc9
2016-08-02 10:39:32 -04:00
Isaac Mungai 99bda8f059 bugfix: delete certificates on service deletion
Previously the flow would fail because of a failed
get query attempting to retrieve an already deleted service.
Fixes the kwargs sent to the certificate delete flow when
deleting a service.

Change-Id: Ic548762d6dfecbfab66158a6efb6631e6bc411dd
2016-07-29 11:31:50 -04:00
Isaac Mungai 9d6bfd188e bugfix: hostname fix for call to ssl cert utils
Change-Id: I56e7cb56c6c94459fce7b549f445db151c5f07c0
2016-07-26 20:49:54 -04:00
Jenkins 53b0bb30bd Merge "Enforce san cert hostname limit on cert create" 2016-07-22 18:33:58 +00:00
Isaac Mungai 33b104b11f Enforce san cert hostname limit on cert create
Add settings to cert_info_storage
Add settings admin endpoints
Add limit check log to taskflow and provider layers

Change-Id: Ie0db8f962363590a70bc387ca9387e2fb22829b1
2016-07-21 14:27:15 -04:00
Isaac Mungai 6521d4d34f Add missing hostname separator
Change-Id: I9ec8444f49892a59b8686004c5a8946c9599a07e
2016-07-20 16:13:11 -04:00
Isaac Mungai 7379cf5ecc bugfix: remove duplicate lines of code
Change-Id: I50336cb99ede2c7a0530664c8160eee4aa6163c1
2016-07-20 11:06:07 -04:00
Isaac Mungai 534b928bd4 Fix sans lookup by adding access url suffix
Change-Id: I63eb4ed137b6268930a4afd43e2fd1bafb566b5e
2016-07-18 09:09:06 -04:00
Jenkins 0948c854e4 Merge "Add unit tests for manager default background jobs" 2016-07-14 15:13:48 +00:00
Jenkins 1921c8b6ed Merge "Trim user inputs as whitespaces causes discrepencies in caching rules" 2016-07-13 19:51:24 +00:00