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

feat: protect the metadata - basic auth #111

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

aramovic79
Copy link
Member

No description provided.

@aramovic79
Copy link
Member Author

@jurijat: Please have a look. Thanks!

@aramovic79 aramovic79 changed the title feat: protect the metadata in case of basic and ucl-mtls authentication feat: protect the metadata - basic auth Jan 30, 2025
@Fannon
Copy link
Contributor

Fannon commented Feb 11, 2025

Sorry, I also currently cannot find to do extensive code PR reviews, I can only give feedback / answers on overall questions that come it. It would be good if the code review is handled by the people who currently work actively on the codebase. I trust you'll do that right :)

@aramovic79
Copy link
Member Author

aramovic79 commented Feb 11, 2025 via email

Copy link
Contributor

@RoshniNaveenaS RoshniNaveenaS left a comment

Choose a reason for hiding this comment

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

Can we add an instruction in readme/changelog ( or some relevant place) regarding the change in adding the basic auth details and this change

aramovic79 and others added 3 commits February 18, 2025 11:59
@aramovic79
Copy link
Member Author

Can we add an instruction in readme/changelog ( or some relevant place) regarding the change in adding the basic auth details and this change

It is done here: https://github.com/cap-js/ord/blob/feat/52-protection-of-metadata/README.md#Authentication

@RoshniNaveenaS RoshniNaveenaS self-requested a review February 18, 2025 13:13
Copy link
Contributor

@RoshniNaveenaS RoshniNaveenaS left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link

@jurijat jurijat left a comment

Choose a reason for hiding this comment

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

Minor things I found, but all in all it looks good.

@@ -58,4 +58,4 @@ For testing an example app is available in the `xmpl` folder:
npm install -g @sap/cds-dk
cds w xmpl
```
After the CAP app has started, open this link in your browser: http://localhost:4004/open-resource-discovery/v1/documents/1
After the CAP app has started, open this link in your browser: http://localhost:4004/ord/v1/documents/ord-document
Copy link

Choose a reason for hiding this comment

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

I would change the entrypoint from http://localhost:4004/ord/v1/documents/ord-document to http://localhost:4004/.well-known/open-resource-discovery

Copy link
Member Author

@aramovic79 aramovic79 Feb 21, 2025

Choose a reason for hiding this comment

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

I don't know if it was previously intended to take the contributor directly to the ORD document rather than first to the ORD .well-known configuration.
@Fannon @swennemers @zongqichen : What would be you opinion - to leave ORD document endpoint url or to replace it with the .well-known configuration url?

Copy link
Contributor

Choose a reason for hiding this comment

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

Your call, ORD discovery starts with the configuration endpoint, but the more interesting part are the ord documents.

Choose a reason for hiding this comment

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

I agree with Juri. I think we should point to ORD Configuration endpoint in the documentation as an entry point. We also give ORD Configuration endpoint to our aggregators, not direct links to ORD Documents. Lets be consistent.

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.

6 participants