I have added these configs to my CAS config file:

cas.spring.cloud.aws.secrets-manager.credential-access-key={my aws access 
key}
cas.spring.cloud.aws.secrets-manager.credential-secret-key={my aws secret 
key}
cas.spring.cloud.aws.secrets-manager.endpoint={my aws endpoint}
cas.spring.cloud.aws.secrets-manager.region={my aws region}

But it still can't authenticate with AWS so I added these configs to my 
environment (you can see these below) so that it can authenticate now but I 
got the endpoint error like I said in my post.

AWS_REGION={region}; AWS_ACCESS_KEY_ID={access key}; 
AWS_SECRET_ACCESS_KEY={secret key}; AWS_ENDPOINT={endpoint}



On Monday 18 December 2023 at 12:45:44 UTC+7 Lê Tuấn Diệp Phát wrote:

> Hi,
> On my CAS, I've set to connect AWS Secret Manager following this: CAS - 
> Configuration Server (apereo.github.io) 
> <https://apereo.github.io/cas/6.5.x/configuration/Configuration-Server-Management-SpringCloud-AmazonSecretManager.html>
>
> However I got a problem with the endpoint, you can read the error below: 
>
> ERROR 
> [org.apereo.cas.config.AmazonSecretsManagerCloudConfigBootstrapConfiguration] 
> - <Received an UnknownHostException when attempting to interact with a 
> service. See cause for the exact endpoint that is failing to resolve. If 
> this is happening on an endpoint that previously worked, there may be a 
> network connectivity issue or your DNS cache could be storing endpoints for 
> too long. SdkClientException.java:build:102 
> HelpfulUnknownHostExceptionInterceptor.java:modifyException:59 
> ExecutionInterceptorChain.java:modifyException:202
>
> I tried to set the endpoint like these in my environment but it still did 
> not work. 
>
>    - https://secretsmanager.{region}.amazonaws.com/
>    - Secret manager ARN
>
> Do I miss any step? or configuration for CAS or AWS?
>
> Thanks for reply.
>
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/fbb9fb54-6c73-4c88-8bd8-97bdd54c4587n%40apereo.org.

Reply via email to