Skip to content

Commit 09e7b5c

Browse files
committed
Document source protection settings
1 parent a4233c5 commit 09e7b5c

File tree

9 files changed

+59
-1
lines changed

9 files changed

+59
-1
lines changed

.astro/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"_variables": {
3-
"lastUpdateCheck": 1719327976015
3+
"lastUpdateCheck": 1725984102124
44
}
55
}

.astro/types.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,13 @@ declare module 'astro:content' {
374374
collection: "docs";
375375
data: InferEntrySchema<"docs">
376376
} & { render(): Render[".mdx"] };
377+
"tips/protect.mdx": {
378+
id: "tips/protect.mdx";
379+
slug: "tips/protect";
380+
body: string;
381+
collection: "docs";
382+
data: InferEntrySchema<"docs">
383+
} & { render(): Render[".mdx"] };
377384
"tips/setup.mdx": {
378385
id: "tips/setup.mdx";
379386
slug: "tips/setup";

src/assets/protect_01.png

28 KB
Loading

src/assets/protect_02.png

39.4 KB
Loading

src/assets/protect_03.png

60.6 KB
Loading

src/assets/protect_04.png

74.7 KB
Loading

src/assets/protect_05.png

41.6 KB
Loading

src/assets/protect_06.png

41.6 KB
Loading

src/content/docs/tips/protect.mdx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
![Padlock Left](../../../assets/protect_01.png)
16+
</Card><Card>
17+
![Padlock Editor](../../../assets/protect_02.png)
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+
![Extension level protection](../../../assets/protect_04.png)
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+
![Connection protection #1 right click](../../../assets/protect_03.png)
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+
![Connection protection #2](../../../assets/protect_06.png)
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+
![Filter protection](../../../assets/protect_05.png)
50+
51+
There is no way to override this protection other then un-checking this setting in the filter.

0 commit comments

Comments
 (0)