INNER CODE UNIT · Java

getPath

spring-cloud/spring-cloud-vault · spring-cloud-vault-config-aws/src/main/java/org/springframework/cloud/vault/config/aws/VaultConfigAwsBootstrapConfiguration.java:117

			public String getPath() {

				String defaultPath = "%s/sts/%s";
				StringJoiner joiner = new StringJoiner("&");

				// ttl for assumed_role or federation_token
				// pass through to let aws take care of min and max validations
				// per the vault role
				if (!this.properties.getTtl().isZero()) {
					joiner.add("ttl=" + this.properties.getTtl().toMillis() + "ms");
				}

				// role_arn for assumed_role for vault role that has multiple role
				// associations.
				if (this.properties.getCredentialType() == AwsCredentialType.ASSUMED_ROLE
						&& StringUtils.hasText(this.properties.getRoleArn())) {
					joiner.add("role_arn=" + this.properties.getRoleArn());
				}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…