Skip to content

Commit d5985fd

Browse files
authored
Merge pull request #488 from sassoftware/staging
10.3.1 - April 23, 2025
2 parents 82c90f0 + 718803e commit d5985fd

File tree

4 files changed

+56
-14
lines changed

4 files changed

+56
-14
lines changed

CONTRIBUTING.md

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,54 @@ review. Our review process typically involves performing unit tests, development
1515
tests, integration tests, and security scans.
1616

1717
## Pull Request Requirement
18-
All contributions (PRs) must be accompanied by passing unit and/or integration
19-
tests, following our [testing philosophy](./docs/user/TestingPhilosophy.md). If you are unfamiliar with this process,
20-
we are happy to help you navigate it by providing continuous collaboration within the pull request.
21-
All pull requests must also pass our linter analysis checks. Contributions might
22-
be subjected to security scans before they can be accepted.
18+
19+
### Automated Tests
20+
All contributors are expected to include appropriate tests to ensure code quality
21+
and maintainability. This may include unit and/or integration tests as applicable
22+
to the scope of the changes. We have a developed a Golang testing framework using
23+
[Terratest](https://terratest.gruntwork.io/) for unit tests and are in the process
24+
of developing integration tests. Please refer to our [Testing Philosopy](./docs/user/TestingPhilosophy.md)
25+
documentation for more information on our testing framework. If you need additional
26+
help and guidance, we are happy to help you navigate it by providing continuous
27+
collaboration within the pull request.
28+
29+
### Conventional Commits
30+
All pull requests must follow the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/)
31+
standard for commit messages. This helps maintain a consistent and meaningful
32+
commit history. Pull requests with commits that do not follow the Conventional
33+
Commit format will not be merged.
34+
35+
### Developer Certificate of Origin Sign-Off
36+
This project requires all commits to be signed off in accordance with the [Developer Certificate of Origin (DCO)](https://developercertificate.org/).
37+
By signing off your commits, you certify that you have the right to submit the
38+
contribution under the open source license used by this project.
39+
40+
To sign off your commits, use the --signoff flag with git commit:
41+
42+
```bash
43+
git commit --signoff -m "Your commit message"
44+
```
45+
46+
This will add a Signed-off-by line to your commit message, e.g.:
47+
48+
```bash
49+
Signed-off-by: You Name <your.email@example.com>
50+
```
51+
52+
For more information, please refer to https://probot.github.io/apps/dco/
53+
54+
### Linter Analysis Checks
55+
All pull requests must pass our automated analysis checks before they can be
56+
merged. These checks include:
57+
58+
- **Hadolint** – for Dockerfile best practices
59+
- **ShellCheck** – for shell script issues
60+
- **TFLint** – for Terraform code quality
61+
- **Gitleaks** – for detecting hardcoded secrets and sensitive information
2362

2463
## Security Scans
25-
To ensure that all submissions meet our security and quality standards, we perform security
26-
scans using internal SAS infrastructure. Reporting of any Common Vulnerabilities and Exposures
27-
(CVEs) that are detected is not available in this project at this time.
64+
To ensure that all submissions meet our security and quality standards, we perform
65+
security scans using internal SAS infrastructure. Contributions might be subjected
66+
to security scans before they can be accepted. Reporting of any Common Vulnerabilities
67+
and Exposures (CVEs) that are detected is not available in this project at this
68+
time.

docs/CONFIG-VARS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ Each server element, like `foo = {}`, can contain none, some, or all of the para
387387
| server_version | The version of the PostgreSQL Flexible server instance | string | "15" | Refer to the [SAS Viya Platform Administration Guide](https://documentation.sas.com/?cdcId=sasadmincdc&cdcVersion=default&docsetId=itopssr&docsetTarget=p05lfgkwib3zxbn1t6nyihexp12n.htm#p1wq8ouke3c6ixn1la636df9oa1u) for the supported versions of PostgreSQL for the SAS Viya platform. |
388388
| ssl_enforcement_enabled | Enforce SSL on connection to the Azure Database for PostgreSQL Flexible server instance | bool | true | |
389389
| connectivity_method | Network connectivity option to connect to your flexible server. There are two connectivity options available: Public access (allowed IP addresses) and Private access (VNet Integration). Defaults to public access with firewall rules enabled.| string | "public" | Valid options are `public` and `private`. See sample input file [here](../examples/sample-input-postgres.tfvars) and Private access documentation [here](./user/PostgreSQLPrivateAccess.md). For more details see [Networking overview](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-networking) |
390-
| postgresql_configurations | Sets a PostgreSQL Configuration value on a Azure PostgreSQL Flexible Server | list(object) | [{ name : "azure.extensions", value : "PLPGSQL,PGCRYPTO" }] | More details can be found [here](https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/howto-configure-server-parameters-using-cli) |
390+
| postgresql_configurations | Sets a PostgreSQL Configuration value on a Azure PostgreSQL Flexible Server | list(object) | [{ name : "azure.extensions", value : "PGCRYPTO" }] | More details can be found [here](https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/howto-configure-server-parameters-using-cli) |
391391

392392
Multiple SAS offerings require a second PostgreSQL instance referred to as SAS Common Data Store, or CDS PostgreSQL. For more information, see [Common Customizations](https://documentation.sas.com/?cdcId=itopscdc&cdcVersion=default&docsetId=dplyml0phy0dkr&docsetTarget=n08u2yg8tdkb4jn18u8zsi6yfv3d.htm#p0wkxxi9s38zbzn19ukjjaxsc0kl). A list of SAS offerings that require CDS PostgreSQL is provided in [SAS Common Data Store Requirements](https://documentation.sas.com/?cdcId=itopscdc&cdcVersion=default&docsetId=itopssr&docsetTarget=p05lfgkwib3zxbn1t6nyihexp12n.htm#n03wzanutmc6gon1val5fykas9aa). To create and configure an external CDS PostgreSQL instance in addition to the external platform PostgreSQL instance named `default`, specify `cds-postgres` as a second PostgreSQL instance, as shown in the example below.
393393

@@ -400,7 +400,7 @@ postgres_servers = {
400400
postgresql_configurations = [
401401
{
402402
name = "azure.extensions"
403-
value = "PLPGSQL,PGCRYPTO,LTREE"
403+
value = "PGCRYPTO,LTREE"
404404
}
405405
]
406406
},

test/nondefaultplan/rbac_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
package nondefaultplan
55

66
import (
7-
"github.com/stretchr/testify/assert"
87
"test/helpers"
98
"testing"
9+
10+
"github.com/stretchr/testify/assert"
1011
)
1112

1213
func TestPlanRbacEnabledGroupIds(t *testing.T) {
@@ -44,7 +45,7 @@ func TestPlanRbacEnabledGroupIds(t *testing.T) {
4445
helpers.RunTests(t, tests, plan)
4546
}
4647

47-
func TestNonDefaultRbacEnabledWithTenant(t *testing.T) {
48+
func TestPlanRbacEnabledWithTenant(t *testing.T) {
4849
t.Parallel()
4950

5051
const TENANT_ID = "b1c14d5c-3625-45b3-a430-9552373a0c2f"
@@ -87,7 +88,7 @@ func TestNonDefaultRbacEnabledWithTenant(t *testing.T) {
8788
helpers.RunTests(t, tests, plan)
8889
}
8990

90-
func TestNonDefaultAzureRbacEnabledWithTenant(t *testing.T) {
91+
func TestPlanAzureRbacEnabledWithTenant(t *testing.T) {
9192
t.Parallel()
9293

9394
const TENANT_ID = "b1c14d5c-3625-45b3-a430-9552373a0c2f"

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ variable "postgres_server_defaults" {
310310
server_version = "15"
311311
ssl_enforcement_enabled = true
312312
connectivity_method = "public"
313-
postgresql_configurations = [{ name : "azure.extensions", value : "PLPGSQL,PGCRYPTO" }]
313+
postgresql_configurations = [{ name : "azure.extensions", value : "PGCRYPTO" }]
314314
}
315315
}
316316

0 commit comments

Comments
 (0)