You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for SSL verification and local migration flag
- Introduced `verify_ssl` option in remote settings to control SSL certificate verification.
- Updated `migrate_remote` method to accept `force_local` flag, allowing local migration to be forced.
- Enhanced documentation for using HTTPS with self-signed certificates.
- Added tests for the new `force-local` migration functionality.
Copy file name to clipboardExpand all lines: docs/getting-started/register-component.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -338,6 +338,7 @@ The dictionary has the following structure:
338
338
-`namespace`: The namespace for the connection (optional, default is "USER")
339
339
-`remote_folder`: The folder where the components are stored (optional, default is the routine database folder)
340
340
-`package`: The package name for the components (optional, default is "python")
341
+
-`verify_ssl`: Whether to verify SSL certificates (optional, default is True). Set to False for self-signed certificates
341
342
342
343
Example:
343
344
```python
@@ -355,4 +356,30 @@ CLASSES = {
355
356
}
356
357
```
357
358
358
-
This will import `FileOperation` from the `bo` module and register it under the key `'Python.FileOperation'` in the `CLASSES` dictionary.
359
+
This will import `FileOperation` from the `bo` module and register it under the key `'Python.FileOperation'` in the `CLASSES` dictionary.
360
+
361
+
#### Using HTTPS with Self-Signed Certificates
362
+
363
+
If your remote IRIS instance uses HTTPS with a self-signed certificate, you need to disable SSL verification:
364
+
365
+
```python
366
+
REMOTE_SETTINGS= {
367
+
"url": "https://localhost:8443",
368
+
"username": "SuperUser",
369
+
"password": "SYS",
370
+
"namespace": "IRISAPP",
371
+
"verify_ssl": False# Disable SSL verification for self-signed certificates
372
+
}
373
+
```
374
+
375
+
**Note:** Disabling SSL verification should only be used in development or trusted environments, as it makes the connection vulnerable to man-in-the-middle attacks.
376
+
377
+
#### Force Local Migration
378
+
379
+
You can force local migration (skip remote migration even if `REMOTE_SETTINGS` is present) by using the `--force-local` flag:
380
+
381
+
```bash
382
+
iop -m /path/to/settings.py --force-local
383
+
```
384
+
385
+
This is useful when you want to test local migration while keeping your `REMOTE_SETTINGS` configuration in the settings file.
0 commit comments