Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: expose environment variables #95

Merged
merged 13 commits into from
Jun 5, 2024
Merged

Conversation

UnicornChance
Copy link
Contributor

@UnicornChance UnicornChance commented Jun 4, 2024

Description

We've been asked by more than a couple people to expose some additional keycloak realm settings. This is that.

Added env vars for the following:

  • Required Actions
    • Terms and Conditions
    • One Time Password ( OTP )
    • Email Verification
  • Password Policy
  • X509 OCSP Fail Open

In updating/testing the changes to the password policy, there was a couple changes necessary for the realms to handle the use of the digits in the passwordPolicy. While not strictly necessary a preemptive change to the cypress tests for user registration and login to update the passwords used was done as well.

There is an additional PR in the uds-core repo for setting the default uds-core variables for these changes.

The uds-core PR will need to be merged and uds-core released before CI jobs here will pass because of the dependency on the default env variables set in uds-core.

Related Issue

Relates to #32

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@UnicornChance UnicornChance requested a review from a team June 4, 2024 17:35
@UnicornChance UnicornChance self-assigned this Jun 4, 2024
@UnicornChance UnicornChance linked an issue Jun 4, 2024 that may be closed by this pull request
src/realm.json Outdated Show resolved Hide resolved
@UnicornChance UnicornChance marked this pull request as ready for review June 5, 2024 15:56
rjferguson21
rjferguson21 previously approved these changes Jun 5, 2024
src/realm.json Outdated Show resolved Hide resolved
@UnicornChance UnicornChance merged commit 21fccd2 into main Jun 5, 2024
6 checks passed
UnicornChance added a commit to defenseunicorns/uds-core that referenced this pull request Jun 6, 2024
## Description
Updating default values for keycloak realm settings, identity-config
realm.json files now use default values in the realm.json so there is no
need for default values to live in uds-core. So removed those default
values and instead added a comment block of values that could be used to
override the default values.

## Related Issue
[Relates to this uds-identity-config
PR](defenseunicorns/uds-identity-config#95)

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request)
followed
rjferguson21 pushed a commit to defenseunicorns/uds-core that referenced this pull request Jul 11, 2024
## Description
Updating default values for keycloak realm settings, identity-config
realm.json files now use default values in the realm.json so there is no
need for default values to live in uds-core. So removed those default
values and instead added a comment block of values that could be used to
override the default values.

## Related Issue
[Relates to this uds-identity-config
PR](defenseunicorns/uds-identity-config#95)

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request)
followed
@UnicornChance UnicornChance deleted the environment-variables branch August 9, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set realm settings as environment variables
3 participants