|
| 1 | +--- |
| 2 | +title: Protecting Source |
| 3 | +--- |
| 4 | + |
| 5 | +import { Icon } from '@astrojs/starlight/components'; |
| 6 | +import { CardGrid, Card } from '@astrojs/starlight/components'; |
| 7 | + |
| 8 | +Generally accepted best practice is that developers should not be able to directly change production source. |
| 9 | + |
| 10 | +However, if you operate with *ALLOBJ or other elevated authority, there are a few setting that may protect you against making accidental changes to production source. |
| 11 | + |
| 12 | +Source that is protected from change by these settings is shown with a **Padlock** icon: |
| 13 | +<CardGrid> |
| 14 | +<Card> |
| 15 | + |
| 16 | +</Card><Card> |
| 17 | + |
| 18 | +</Card> |
| 19 | +</CardGrid> |
| 20 | + |
| 21 | +### Code for IBM i Extension Level Protection |
| 22 | + |
| 23 | +By default, clicking on source opens it for editing. Change `Default Open Mode` to `browse` to protect all source in all connections by default. |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +To override `Broswe`, right click and choose `Edit` to open the source and allow changes. |
| 28 | + |
| 29 | +### Connection Level Protection #1 |
| 30 | + |
| 31 | +Protect **all** filters and source in a connection by choosing `Browse` as the `Read only mode` setting, so that by default source will be opened as read-only. |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +To override `Broswe`, right click and choose `Edit` to open the source and allow changes. |
| 36 | + |
| 37 | +### Connection Level Protection #2 |
| 38 | + |
| 39 | +Protect source in specific libraries or IFS directories by making entries in the `Protected paths` setting: |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +Note that this protection cannot be overridden by right clicking on the source. |
| 44 | + |
| 45 | +### Filter Level Protection |
| 46 | + |
| 47 | +Put a checkmark in the `Protected` setting of a filter to protect all source defined in the filter from being changed: |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +There is no way to override this protection other then un-checking this setting in the filter. |
0 commit comments