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

chore: logdoc #158

Merged
merged 3 commits into from
Aug 17, 2022
Merged

chore: logdoc #158

merged 3 commits into from
Aug 17, 2022

Conversation

thegentlemanphysicist
Copy link
Contributor

This documents how to turn the relevant logging a request dumping on.


## Troubleshooting

If we are loging a specific intergration or service provider. It is nessary to ensure the SPID is correct in the keycloak deployment. (Check <realm of interest>/Identity Providers/<idp of interest>/Service Provider Entity ID).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPID is only applicable for SAML IDP type.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, modified this

</subsystem>
```

This configuration will output the requests and responses in the format:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this log stored in the log files created in /var/log/eap?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, not sure I was reading them directly from the raw output of the pod logs. If it's in the raw ouput wouldn't that mean it was stored with the others? (I can check by rsh into the pod and pulling those files down locally)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the saved logs, the output doesn't seem to be saved to the
/var/log/eap folder


The keycloak configuration can be located in the [configuration folder](../docker/keycloak/configuration). Presently it is part of the image we deploy, meaning the image needs to be rebuilt before the logging change can take effect. For testing purposes, there is a keycloak deployment that allows users to edit the config in openshift and preview the effect by restarting the keycloak pod. Without the need to rebuild the image.

The test instance config is `sso-keycloak-4-sso-config` found in the `b861c7-test` namespace and is the associated with the `sso-keycloak-4` deployment. Making changes to the config will only be reflected in the `sso-keycloak-4` app after restarting the `sso-keyclaok-4` pod.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm.. since the configuration changes can be also applied for other instances, wonder if this is too specific info for this testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to rebuild those images before we can do that? It might be worth making an ops/dev ticket to convert the rest of the keycloak images, just so we have a consistent pattern.

Modified the troubleshooting tip
@thegentlemanphysicist thegentlemanphysicist merged commit e317f25 into dev Aug 17, 2022
@thegentlemanphysicist thegentlemanphysicist deleted the logDocumentation branch August 17, 2022 20:07
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.

2 participants